Dirty Butter Posted July 27, 2012 Share Posted July 27, 2012 I'd like to be able to have the tracking/Custom number automatically be included in the Order Complete email, since we record it on the Delivery tab on the Order Summary. It seems to me this should have been a default CC action. Would it be hard to do? Quote Link to comment Share on other sites More sharing options...
Guest dgsmra Posted July 28, 2012 Share Posted July 28, 2012 I was able to get the tracking number to show up in my Order Complete emails by adding this line to the email template: USPS Delivery Confirmation Number: {$DATA.ship_tracking} I hope that helps. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted July 28, 2012 Author Share Posted July 28, 2012 Thanks, dgsmra!! That worked beautifully. I did tweak it a bit, since we use Endicia's Dazzle program to create our shipping labels. My Order Complete email now has this: Your order number {$DATA.cart_order_id} has been shipped. USPS Delivery Confirmation Number / Customs Number: {$DATA.ship_tracking} To check the delivery status of your package at any time please visit: https://www.endicia.com/Status/?PIC={$DATA.ship_tracking} Quote Link to comment Share on other sites More sharing options...
fabianw Posted September 5, 2012 Share Posted September 5, 2012 Thanks for it. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 5, 2012 Author Share Posted September 5, 2012 Glad this helped you, fabianw. Please update your sig. Quote Link to comment Share on other sites More sharing options...
palex71 Posted May 27, 2013 Share Posted May 27, 2013 Which is the email template? Â Is it content.reciept.php? Â Here is what I see: Â Â Â Â Â {if $DELIVERY} Â Â Â Â Â Â Â Â <h2>{$LANG.common.delivery}</h2> Â Â Â Â Â Â Â Â {if !empty($DELIVERY.date)}<p>{$LANG.orders.shipping_date}: {$DELIVERY.date}</p>{/if} Â Â Â Â Â Â Â Â {if isset($DELIVERY.url)} Â Â Â Â Â Â Â Â Â Â Â Â <p>{$LANG.basket.track}: <a href="{$DELIVERY.url}" target="_blank">{$DELIVERY.method}</a></p> Â Â Â Â Â Â Â Â {else} Â Â Â Â Â Â Â Â Â Â Â Â <p>{$DELIVERY.method} - {$LANG.orders.shipping_tracking}: {$DELIVERY.tracking} Â Â Â Â Â Â Â Â {/if} Â Â Â Â {/if} Â Â Â Should the suggested line go within this section? Â Also, in the control panel under orders --> delivery, there is the corresponding field to input the tracking information? Â Does this automatically get sent to the customer when it is saved? Â Thanks! Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 27, 2013 Author Share Posted May 27, 2013 The email templates are accessed via Admin/Filemanager/Email Templates. You will want to edit the Cart: Order Complete template. When the tracking code section is added to the template the customer gets the link in their shipping confirmation email when you mark the order as Completed. Quote Link to comment Share on other sites More sharing options...
palex71 Posted May 27, 2013 Share Posted May 27, 2013 Thanks.  This is what I am seeing.  From within the control panel:  File Manager --> Email Templates  Under the Email Contents tab, I can see the Cart: Order Complete listing, although there is no way to edit it. Under the Email Templates tab, I can see and edit the Default Emails template (under the HTML Content tab).  If I try to add that line within the code, CubeCart freezes when I try to mark an order complete.  I also cannot locate where in the directory structure these php tags are defined (I would also like to modify the email content).   Thanks again! Quote Link to comment Share on other sites More sharing options...
bsmither Posted May 27, 2013 Share Posted May 27, 2013 "I can see the Cart: Order Complete listing, although there is no way to edit it." Â Click on the flag of the language you want to edit. You will then see three tabs, the HTML and Plain content tabs will list the "tags" that are available. Quote Link to comment Share on other sites More sharing options...
palex71 Posted May 27, 2013 Share Posted May 27, 2013 Ah, ok... thanks, bsmither. I added that line to the the Order Complete template, and I am still getting the freezing issue when I mark the order as complete and click 'save'. Â Would it possibly not be recognizing the new .php tag? Â There is a tracking number specified within the Courier Tracking Code under the order information. Â Thanks again. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 27, 2013 Author Share Posted May 27, 2013 The Default Email holds the info that will be included in EVERY email, such as your logo. closing and signature. It HAS to have {$EMAIL_CONTENT} in it - that becomes the content of each of your version of all the Admin and Cart templates. Did you perhaps get something messed up there while experimenting? Â Just in case, here's mine: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <style type="text/css"> html, body, table { font-family: Arial; font-size: 14px; } </style> <title>Default HTML Template - (Powered by CubeCart)</title> </head> <body bgcolor="#f7f7f7"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td align="center"> <table bgcolor="#ffffff" border="0" cellpadding="15" cellspacing="0" width="580"> <tbody> <tr> <td> <a href="http://dirtybutter.com/plushcatalog/images/logos/plushanimalshopbarn600.jpg"><img alt="{$DATA.storeName}" src="http://dirtybutter.com/plushcatalog/images/logos/plushanimalshopbarn600.jpg" style="border-width: 0pt; border-style: solid;" /></a></td> </tr> <tr> <td> {$EMAIL_CONTENT}</td> </tr> <tr> <td> <p> We appreciate your business,</p> <p> Rosemary</p> <p> {$DATA.storeName}<br /> <a href="{$DATA.storeURL}">{$DATA.storeURL}</a></p> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <p> </p> </body> </html> Quote Link to comment Share on other sites More sharing options...
palex71 Posted May 27, 2013 Share Posted May 27, 2013 I just figured it out.  I had pasted the new line  USPS Delivery Confirmation Number: {$DATA.ship_tracking}  With the formatted red / yellow text.  That is problematic.   Thanks for everyone's help. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 27, 2013 Author Share Posted May 27, 2013 What does your formatting look like in the Source Code? ALL of {$DATA.ship_tracking} would need to be formatted OUTSIDE the { }. Quote Link to comment Share on other sites More sharing options...
palex71 Posted May 27, 2013 Share Posted May 27, 2013 I'm not sure. Â I just retyped it without formatting. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 27, 2013 Author Share Posted May 27, 2013 Does it work correctly without the formatting? Wouldn't hurt to clear cache in CC and browser before testing an email again. Quote Link to comment Share on other sites More sharing options...
palex71 Posted May 27, 2013 Share Posted May 27, 2013 Yes, I sent a couple test order completions and the email is sent with the tracking number. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted May 27, 2013 Author Share Posted May 27, 2013 Great! 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.