Christopher Short Posted March 1, 2019 Share Posted March 1, 2019 How would I add the shipping method and tracking info to the order complete email? I can enter them into the delivery section when completing an order process but I would like those fields to be added to the email. Link to comment Share on other sites More sharing options...
bsmither Posted March 1, 2019 Share Posted March 1, 2019 The way CubeCart processes an admin-updated order when having moved it to any order status is to update the database, then to query the database to load variables used by the email templates. So, there should be no issues with using {$DATA.ship_tracking} and {$DATA.ship_method} in the template contents. Link to comment Share on other sites More sharing options...
Christopher Short Posted March 1, 2019 Author Share Posted March 1, 2019 48 minutes ago, bsmither said: The way CubeCart processes an admin-updated order when having moved it to any order status is to update the database, then to query the database to load variables used by the email templates. So, there should be no issues with using {$DATA.ship_tracking} and {$DATA.ship_method} in the template contents. Thanks, I got it working now Link to comment Share on other sites More sharing options...
robertbell Posted March 27, 2019 Share Posted March 27, 2019 How would I add Tracking number: {$DATA.ship_tracking} to a template only if {$DATA.ship_tracking} exists? Thanks? Link to comment Share on other sites More sharing options...
bsmither Posted March 27, 2019 Share Posted March 27, 2019 {if $DATA.ship_tracking}Tracking number: {$DATA.ship_tracking}<br />{/if} Link to comment Share on other sites More sharing options...
robertbell Posted March 27, 2019 Share Posted March 27, 2019 Thanks. Should I put the whole thing in <p> tags, or just the Tracking number: {$DATA.ship_tracking} part? Link to comment Share on other sites More sharing options...
bsmither Posted March 27, 2019 Share Posted March 27, 2019 Put the whole line, paragraph, whatever HTML you do not want to show if the tracking number is not available, between the {if} and {/if}. So, probably: {if $DATA.ship_tracking}<p>Tracking number: {$DATA.ship_tracking}</p>{/if} Link to comment Share on other sites More sharing options...
robertbell Posted March 27, 2019 Share Posted March 27, 2019 Great. Thanks again. Link to comment Share on other sites More sharing options...
Mike101za Posted January 27, 2020 Share Posted January 27, 2020 I would like to do the same by adding tracking number and website to the "Order Complete" email. How would I go about it and where would I enter the required info. Not that good with coding. Link to comment Share on other sites More sharing options...
bsmither Posted January 27, 2020 Share Posted January 27, 2020 In admin, Email Templates, click the flag of the language you wish to change for Cart: Order Complete. On the next page, the HTML Content and Plain Text Content tabs will have the means to add this new code. (For the HTML tab, you should switch the editor to Source mode.) Then, when finished with this admin session, be sure to first clear the cache. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.