I'm creating shipment and tracking number by calling APIs i.e. sales_order_shipment.create and sales_order_shipment.addTrack. APIs are running fine, they are creating shipment and generating tracking number, But when I try to send tracking number in shipment email through the following code (in shipment email template):

Tracking Number: {{block type='core/template' area='frontend' template='email/order/shipment/track.phtml' shipment=$shipment order=$order}}

the shipment email comes empty and when I remove this code the email comes fine but without tracking number, Everything runs fine when I create shipment from Admin i.e. the shipment email comes fine along with the tracking number. What's causing the problem? Is there any other way to send tracking number in shipment email?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.