Jump to content

Recommended Posts

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
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.

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

Link to post
Share on other sites
  • 4 weeks later...

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 post
Share on other sites
  • 9 months later...

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 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.

×
×
  • Create New...