kab Posted March 11, 2016 Share Posted March 11, 2016 ** SOLVED ** Hi, I can see that the "Delivery" tab in "Orders" has a fair bit of useful information about the shipping of the product such as - tracking url, delivery date etc. How can I include this information in the "Order Complete" email which is sent to the customer? Currently the email has only limited information viz. Hi XYZ, We are pleased to say that order number 160218-173222-5577 is complete. If you have ordered physical goods they should arrive shortly. I want to add one more line below the standard content which says - Your order has been shipped on [Dispatch Date] by [Shipping Product]. Your tracking number is [Delivery tracking], and you can track your order here - [Shipping Method]. Reference fields below: Dispatch Date: Mar 11 2016 Shipping Method: www.Trackoncouriers.com Shipping Product: TrackOn Couriers Pvt. Ltd Delivery Tracking: 41120116 Gateway: Print_Order_Form Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 11, 2016 Share Posted March 11, 2016 Here's the Source Code of mine. It should help you with most of what you want. <p> Hi {$DATA.first_name},</p> <p> Your order number {$DATA.cart_order_id} has been completed with a shipping date of {$DATA.ship_date}.</p> <p> USPS Delivery Confirmation Number / Customs Number: {$DATA.ship_tracking}</p> <p> To check the delivery status of your package at any time please visit:</p> <p> https://www.endicia.com/Status/?PIC={$DATA.ship_tracking}</p> I do think Bsmither had to make a code change in a class file so the ship date was human readable, and obviously the tracking link would be different for you. Quote Link to comment Share on other sites More sharing options...
kab Posted March 11, 2016 Author Share Posted March 11, 2016 22 minutes ago, Dirty Butter said: Here's the Source Code of mine. It should help you with most of what you want. <p> Hi {$DATA.first_name},</p> <p> Your order number {$DATA.cart_order_id} has been completed with a shipping date of {$DATA.ship_date}.</p> <p> USPS Delivery Confirmation Number / Customs Number: {$DATA.ship_tracking}</p> <p> To check the delivery status of your package at any time please visit:</p> <p> https://www.endicia.com/Status/?PIC={$DATA.ship_tracking}</p> I do think Bsmither had to make a code change in a class file so the ship date was human readable, and obviously the tracking link would be different for you. Thanks a lot! It solves many issues for me. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 11, 2016 Share Posted March 11, 2016 Glad I could help out! You should be able to find the correct code for Shipping Method, etc., from the admin/skins/default/templates/orders.print.php. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted March 11, 2016 Share Posted March 11, 2016 I found the code in order.class.php to make date human readable: //BSMITHER GET READABLE DATE ON EMAILS case self::ORDER_FAILED: // Email the customer to explain their order failed fraud review $mailer->ClearBCCs(); $mailer->AddBCC($this->_notifyAdmins()); $content = $mailer->loadContent('cart.payment_fraud', $order_summary['lang'], $this->_order_summary); if( ($content = $mailer->loadContent('cart.payment_fraud', $order_summary['lang'])) !== false ) $this->assignOrderDetails(); break; break; //END BSMITHER GET READABLE DATE ON EMAILS Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.