Jump to content

Resolved - Add Tracking Code to Customer Email?


Dirty Butter

Recommended Posts

Guest dgsmra

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.

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

  • 1 month later...
  • 8 months later...

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>
			&nbsp;</p>
	</body>
</html>

Link to comment
Share on other sites

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.

Link to comment
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...