Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use email notification in order and payments
Michal Ociepkacb9b7bb508ed
diff --git a/checkout/steps.py b/checkout/steps.pyindex 6f9705ba9c..d8cec8a227 100644--- a/checkout/steps.py+++ b/checkout/steps.py@@ -223,6 +223,7 @@ class SummaryStep(BaseCheckoutStep):response = super(SummaryStep, self).process(extra_context)if not response:order = self.checkout.create_order()+ order.send_confirmation_email()return redirect('order:payment:index', token=order.token)return responsediff --git a/payment/__init__.py b/payment/__init__.pyindex adde1e042e..865b3deb9f 100644--- a/payment/__init__.py+++ b/payment/__init__.py@@ -7,4 +7,5 @@ def order_status_change(sender, instance, **kwargs):order = instance.orderif order.is_full_paid():order.status = 'complete'+ instance.send_confirmation_email()order.save()