Add Track Button to 3dcart store


With the AfterShip Track Button code, tracking functionality can be easily enabled on any of the web pages and/or the Order History Page.

🔧 Add a new Web Page

  1. Log in to your 3dcart store > Content > Site content > Footer Extra Pages > Edit
  2. Add a new page by clicking the “+” button > Enter required details
  3. Save changes

🔧 Insert Track Button 

  1. Log in to your 3dcart store > Content > Site content > Footer extra pages > Edit
  2. Select the page to add Track Button > Settings action button > Content > View source code 
  3. Click “<>” action button to edit code (under page-content)
  4. Copy the below-mentioned code and paste in the editor
<div id="as-root"></div><script>(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;r=e.createElement(t);;r.src="//";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")</script> <div data-domain="" data-size="large" class="as-track-button"></div>

5. Save changes

You can also replace data-domain="" with AfterShip username or custom domain and apply your carrier settings.

🔧  Insert Track Button to Order History Page

  1. Log in to your 3dcart store > Settings > Design > Themes & Styles > More
  2. Edit template (HTML) > Settings action button 
  3. Go to folder templates/common-core > Edit order-history-view.html 
  4. Search for the below-mentioned code
<a href="shiptracking.asp?trackingnumber=[trackingcode]" target="new">[trackingcode]</a>

Replace it with the below code snippet

<div id="as-root"></div><script>(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;r=e.createElement(t);;r.src="//";i.parentNode.insertBefore(r,i)})(document,"script","aftership-jssdk")</script> <div data-domain="" data-size="small"data-tracking-number="[trackingcode]" class="as-track-button"></div>

5. Save changes

Was this article helpful?
0 out of 2 found this helpful