Developer forum

Forum » Ecommerce - Standard features » How to get notification after a completed order (not paid!)

How to get notification after a completed order (not paid!)

Ton Martens
Reply

Customer on 8.4.0.17.

We want to get a notification once a order has been placed, wether or not it has been paid. That would be status "New" in the order-flow. However, documentation states:

"We do not recommend that you use order states to notify the customer of completed orders meaning that an e-mail notification should not be set on the "New" state. Instead use the notification functionality which is available under the paragraph settings for the Shopping Cart module (see Notification e-mails section).".

So I set a notification in the shopping-cart-module. This doesn't give me a notification once the order has been completed. I don't known when it does work. So I went back to the order-flow and set a notification there. That gives me a notification once something has been put in the shopping cart. Not what we intended.

So the question is: What do I have to do in order to get a notification once an order has been placed, before the payment process.

 

Thanks.

Ton


Replies

 
Morten Bengtson
Reply

Weird. It should work by using the settings on the cart.

Have you checked the order log? Maybe some error has occured.

http://manual.dynamicweb-cms.com/Dynamicweb-eCommerce/Orders/View-order.aspx

Or check the log files here...

/Files/System/Log/eCom/CartV2/Errors

/Files/Files/MailLog/.NET

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Ton

Just setup a notification email to your self in the cart setup. See screen.

Nicolai

Capture.PNG
Votes for this answer: 1
 
Ton Martens
Reply

Ah, Thanks! Got it working.

 
Ton Martens
Reply

Unfortunately, it doesn't work completely:

 

I configured the Cart Module to e-mail.

 

When ordering with payment 'money transfer' (so, no direct payment, order status 'NEW'), the e-mail notification goes out;

When ordering with payment 'iDeal' (direct internet payment COMPLETED), NO e-mail;

When ordering with payment 'iDeal' (direct internet payment CANCELLED (by customer) ), the e-mail notification goes out;

 

Can someone explain to me the rules of getting an e-mail or getting no e-mail?

 

Thanks,.

Ton

 

 
Nicolai Høeg Pedersen
Reply

Hi Ton

Could be iDeal not calling back as required. I've asked a dev to take a look at the code and see if they can explain what might be the issue.

 
Ton Martens
Reply

Hi Nicolai, 

Thanks for your help. I'm really puzzled about this. Please note that a "canceled iDeal payment" does generate an e-mail (!)

 

What also puzzles me is the relationship between the order flow and the ordering in the shop. In the flow, several steps are available. Does DW fill the default flow with a default set of steps? If so, when I add a step into the flow, how does DW know what to do with that step?

Thanks again,

Ton 

 
Nicolai Høeg Pedersen
Reply

Hi Ton

There are orderflows and cartflows. Cart flows are defined on the cart page and handles the steps in the checkout. The orderflows handles the progress of finished orders in the backend.

The cart have whatever number of steps you configure. What happens in that step is defined by your template - all data is collected whenever you change step. There is one step, the checkout step, that is different. It will run a checkouthandler (usually a payment gateway) and that checkout handler will return with true or false if an order can be created. If so, the cart changes status from cart to order. It is the checkouthandler that takes care of telling if a cart is ready to be completed and make the conversion to order. When it happens, the confirmation is sent.

My best bet is, that the iDeal implementation or your template is missing some information.

BR and have a nice weekend, Nicolai

 
Ton Martens
Reply

Hi Nicolai,

Thanks for your time. We will investigate it further.

Have a nice weekend.

 

Ton

 
Vladimir
Reply

Hi Ton,

May you clarify please, what checkout handler do you use (iDeal option is allowed in both DIBS and Buckaroo)

And there was a bug in DIBS 8.4.0 which could cause that situation. However the bug was fixed in 8.4.1

 

Best regards,

Vladimir

 
Ton Martens
Reply

Hi Vladimir,

I will ask our deverlopers. Thanks.

 

You must be logged in to post in the forum