We have setup a webshop in uCommerce with de iDeal - ING payment provider and set the confirmation mails as described in the manual. The sequence works as follows:
Payment Succes -> Status New Order -> Order Confirmation mail -> Set the Order Status manually to Completed -> Payment Confirmation mail
But we would want it to be like:
Status New Order -> Order Confirmation mail -> Payment Succes -> Status Paid -> Payment Confirmation mail
I have looked into the pipelines but couldn't find a solution. I've tested sending mail from the basked pipeline, but that didn't work and thought of setting the next Order Status from a pipeline but couldn't find a task for it.
The second I guess is what uCommerce already does with the order confirmation? You can easily add a second e-mail to the checkout pipeline. Just copy the task registration for "SendEmail", rename it, and specify a different email template string.
As for sending an e-mail before passing the customer to payment it's doable but there isn't a pipeline executed right at that point. You can hook into the template and do the code you want there or do a custom pipeline there as an alternative if you expect to need to execute more code.
Running through the scenario, however, I can't help but think that the customer may receive multiple order confirmations in the case where the customer is sent off to pay, but then returns to site without paying (by using a cancel link or simply navigating back to the store URL). The customer can then initiate the payment process again and would then receive another order confirmation.
Yes, that is what I'm gonna do. But I need to create a new pipeline, because I don't want the payment confirmation mail send with all the payment providers, like by Invoice.
It's no problem sending more then one order confirmation when doing more attempts.
Task sequence for mail and payments
We have setup a webshop in uCommerce with de iDeal - ING payment provider and set the confirmation mails as described in the manual. The sequence works as follows:
Payment Succes -> Status New Order -> Order Confirmation mail -> Set the Order Status manually to Completed -> Payment Confirmation mail
But we would want it to be like:
Status New Order -> Order Confirmation mail -> Payment Succes -> Status Paid -> Payment Confirmation mail
I have looked into the pipelines but couldn't find a solution. I've tested sending mail from the basked pipeline, but that didn't work and thought of setting the next Order Status from a pipeline but couldn't find a task for it.
Any ideas would be appreciated.
Hi Wietze,
Are you looking to change the order processing flow in the backend? Or just to have the order show up in a different order status after checkout?
You can use the folliowing code to change order status:
Hi Søren,
thank you for the quick response.
No I would like to do this without any coding. In basic I want two things:
Gotcha.
The second I guess is what uCommerce already does with the order confirmation? You can easily add a second e-mail to the checkout pipeline. Just copy the task registration for "SendEmail", rename it, and specify a different email template string.
As for sending an e-mail before passing the customer to payment it's doable but there isn't a pipeline executed right at that point. You can hook into the template and do the code you want there or do a custom pipeline there as an alternative if you expect to need to execute more code.
Running through the scenario, however, I can't help but think that the customer may receive multiple order confirmations in the case where the customer is sent off to pay, but then returns to site without paying (by using a cancel link or simply navigating back to the store URL). The customer can then initiate the payment process again and would then receive another order confirmation.
Yes, that is what I'm gonna do. But I need to create a new pipeline, because I don't want the payment confirmation mail send with all the payment providers, like by Invoice.
It's no problem sending more then one order confirmation when doing more attempts.
Thanks for the help.
is working on a reply...