Shipping an order through code doesn't fire email trigger
Posted: Mon Jan 18, 2010 11:31 am
I've got a project where I've automated shipment postings through code.
As a result, the code manages the shipment record just like the Able code does including a call to _OrderShipment.Ship(); at the end.
However the client is reporting my shipment code works flawlessly but the order-shipment email never fires. Manually shipping an order does fire the email off, but not if my code ships the order.
The order status goes to shipped as it should. The shipment record and tracking records are setup like they should. Any thoughts on what would cause this scenario?
As a result, the code manages the shipment record just like the Able code does including a call to _OrderShipment.Ship(); at the end.
However the client is reporting my shipment code works flawlessly but the order-shipment email never fires. Manually shipping an order does fire the email off, but not if my code ships the order.
The order status goes to shipped as it should. The shipment record and tracking records are setup like they should. Any thoughts on what would cause this scenario?