Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Wietze Strik 27 posts 131 karma points
    Apr 11, 2013 @ 11:02
    Wietze Strik
    0

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 11, 2013 @ 12:38
    Søren Spelling Lund
    0

    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:

    var orderService = ObjectFactory.Instance.Resolve<IOrderService>();
    orderService.ChangeOrderStatus(order, orderStatus); 
  • Wietze Strik 27 posts 131 karma points
    Apr 11, 2013 @ 12:46
    Wietze Strik
    0

    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:

    1. Send a order confirmation mail before payment starts
    2. Send a payment confirmation automatically when payment was succes
    I think the second could be done with a custom pipeline. But how can I send a mail before the payment starts?
  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 11, 2013 @ 14:42
    Søren Spelling Lund
    0

    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. 

  • Wietze Strik 27 posts 131 karma points
    Apr 12, 2013 @ 11:11
    Wietze Strik
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft