andrewlakomski
Forum Replies Created
-
Hi,
That’s my trigger settings (it’s default, for one product):
“My email ;)” is indeed because it’s public forum, all settings are correct and we’re sending other mailings to our subscribers and all woocommerce emails through mailpoet.
Using the order status trigger, the first email which is termed as transaction will be sent irrespective of the subscriber status.
But it’s not – check the code ?? It’s always checking subscriber status ??
I think you miss the point. It’s not about sending emails to my subscribers, but transactional email -> https://kb.mailpoet.com/article/397-how-to-set-up-an-automation#order-status-change
Where you guys said that “If you are adding an action to send an email immediately following the order status change trigger, then this email will be considered “Transactional”, meaning that it will be sent to all subscribers regardless of whether they are in “Subscribed” status or not.”
My automation looks like this:
So in this case email SHOULD BE SENT no matter what status is for subscriber. And it’s not.
Transactional emails should not depend on what status subscriber is in.
- This reply was modified 1 year ago by andrewlakomski.
I’m sure that it was working before because we have mailing with discount code after purchasing one of our products set with this automation and it was working well ??
I don’t think that this is configuration problem – maybe it’s because a customer is not added to proper segment while placing an order – I’ve found it and (for now, because we’ve halted newsletters) suppressed errors by simply overwriting getSubscriber method in SendEmailAction like that:
private function getSubscriber(StepRunArgs $args): SubscriberEntity { // hack for transactional email fail $subscriberId = $args->getSinglePayloadByClass(SubscriberPayload::class)->getId(); $subscriber = $this->subscribersRepository->findOneById($subscriberId); if (!$subscriber) { throw InvalidStateException::create(); } return $subscriber; }
I’m pretty sure that the problem is when customer places an order his address is not added to “WooCommerce Customers” list. Then the check by segments will fail.