Shipping communication event

116 views
Skip to first unread message

Alexandre Provencio

unread,
Mar 7, 2016, 5:58:40 AM3/7/16
to django-oscar
Hello guys,
what I need is to make oscar send an email to the customer whenever I change the shipping status to "Shipped" from the dashboard. For that I created an "order.shippingeventtype" with code "SHIPPING_PLACED" and associated it with the code field on a created "customer.communicationeventtype". This does not seem to be sufficient, so what am I missing?

- Alexandre

Web Architect

unread,
Mar 9, 2016, 4:04:06 AM3/9/16
to django-oscar
In order/processing.py, inherit EventHandler and override handle_shipping_event to send the mail. 

Cheers.

Alexandre Provencio

unread,
Mar 11, 2016, 9:32:42 PM3/11/16
to django-oscar
That's correct I got it. Just for the record I used Dispatch class there to send the email.

Cheers!
Reply all
Reply to author
Forward
0 new messages