Jump to content

[Resolved] Delivery & Notes section visible to customers


ve2nw

Recommended Posts

How do I make the delivery section which shows the shipping date and the track number visible to customers when they check their order history? Same for the comments section. I know they get an e-mail when I add a comment that customers can see but once that e-mail is gone / deleted by the customer they can no longer see it. If it is visible in the order history section it is there for life. Any help is greatly appreciated.

Link to comment
Share on other sites

Welcome to the forums, @ve2nw.

What CubeCart version are you running and what skin are you using? Are they stock code or modified?

I'm on 6.1.5 with modified Foundation skin, and I DO see shipping date, tracking number (edited to be an actual link), and notes from us TO the customer.

58aa053fa88fa_vieworder.jpg.295bde8bfac5235b7d4ea0457f9fa039.jpg

 

I made this edit to content.receipt.php to get a tracking link using USPS:

{elseif !empty($DELIVERY.tracking)}
<div class="row">
  <div class="small-6 medium-3 columns">{$LANG.catalogue.delivery_method}:</div>
  <div class="small-6 medium-9 columns">{$DELIVERY.method}{if !empty($DELIVERY.product)} ({$DELIVERY.product}){/if}</div>
</div>
<div class="row">
  <div class="small-6 medium-3 columns">{$LANG.orders.shipping_tracking}:</div>
{* MODIFIED TO ACTUALLY LINK TO TRACKING CODE ON USPS *}
  <div class="small-6 medium-9 columns"><a href="https://tools.usps.com/go/TrackConfirmAction?tLabels={$DELIVERY.tracking}"  target="_blank">{$DELIVERY.tracking}</a></div>
</div>
{/if}

 

Link to comment
Share on other sites

Thank you. I am running 6.1.5 (latest version) and my skins are as follows;

Default front end skin Kurouto

Default admin skin default

 

This is what my customers see;

 

Your Order: #170216-212952-9715 - Order Complete

Order History

Customer Information

Billing Address
Cxxxxxx Cxxx
xxxx xxxxx Pl # 000
xxxx
Florida, 34683
United States

Delivery Address
Cxxxxx Cxxx
xxxx xxxxx Pl # 000
xxxx
Florida, 34683
United States

Delivery

Dispatch Date: Feb 17 2017

Track: All In One Shipping

Order Summary

Price Quantity Product

$37.00 1 Atlas Air B 767-300 - GJGTI1223 ($37.00)

 

$37.00 Subtotal

$12.00 Shipping

$0.00Total Tax

$49.00
Link to comment
Share on other sites

I see nothing really wrong with the Delivery section. However, you may want to make the following edit which could give you slightly different results.

In the Kurouto template content.receipt.php, near line 36:

Find:
		{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}

Change to:
		{if !empty($DELIVERY.url)}
			<p>{$LANG.orders.shipping_tracking}: <a href="{$DELIVERY.url}" target="_blank">{$DELIVERY.method}{if !empty($DELIVERY.product)} ({$DELIVERY.product}){/if}</a></p>
		{elseif !empty($DELIVERY.tracking)}
			<p>{$LANG.catalogue.delivery_method}: {$DELIVERY.method}{if !empty($DELIVERY.product)} ({$DELIVERY.product}){/if}</p>
			<p>{$LANG.orders.shipping_tracking}: {$DELIVERY.tracking}</p>
		{/if}

The comments the customer made should appear just above Delivery, if there are any. If you are referring to notes you have made for the customer to read, then you can add the following:

Find:

  {if !empty($SUM.customer_comments)}
  <h2>{$LANG.common.comments}</h2>
  <p>&quot;{$SUM.customer_comments}&quot;</p>
  {/if}

Add AFTER:

  {if !empty($SUM.note_to_customer)}
  <h2>{$LANG.common.notes}</h2>
  <p>{$SUM.note_to_customer}</p>
  {/if}

 

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