Jump to content
Sign in to follow this  
Christopher Short

Order complete email

Recommended Posts

Posted (edited)

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. 

Edited by Christopher Short

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

How would I add

 Tracking number: {$DATA.ship_tracking}

to a template only if {$DATA.ship_tracking} exists?

Thanks?

Share this post


Link to post
Share on other sites
{if $DATA.ship_tracking}Tracking number: {$DATA.ship_tracking}<br />{/if}

 

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks. Should I put the whole thing in <p> tags, or just the

Tracking number: {$DATA.ship_tracking}

part?

Edited by robertbell
adding a question

Share this post


Link to post
Share on other sites

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}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...