0

Our shipment confirmation email is being sent twice.

They email templates look the same except one email includes tracking while the other does not. This only happens with shipment confirmations, and not with new order notification emails.

Ship confirm email being sent twice: enter image description here

Magento Sales Emails Settings: enter image description here

How do I prevent 2 shipment email confirmations from being sent? I've been trying for several days but I'm having a hard time.

Magento ver. 1.7.0.2

Thank you in advance.

1 Answer 1

0

The data that is used to determine whether the customer has been notified is stored in sales_flat_shipment_comment, in the is_customer_notified field. The code that controls sending the email is in Mage_Sales_Model_Order_Shipment->sendEmail(). I suggest overriding that class and method, and then querying the shipment comment collection to see if the customer has been notified.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.