How to add Track Button to CS-Cart store?

IN THIS ARTICLE

1. Add New Page

a. Login to your CS-Cart
b. Click  Website >  Content
c. Click  + >  Add page

2. Insert Track Button Code


a. Input  Track Button Code 

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

b. Remember to login to your AfterShip account >  apps > Track Button for custom style. You can also replace data-domain="track.aftership.com" with your AfterShip username or custom domain to display tracking results, and apply your carrier settings. 

c. Click  Save

d. Save the  page_idwhich you will use later

e. Click  Blocks

3. Insert Track Button Code

a. Edit the Block that you want to insert the Track Page
b. Insert the Track Order Page
<li><a href="{"pages.view?page_id=41"|fn_url}">Track Order Status</a></li>
				
c. Click  Use this content for all the block instances


Still need help? Contact Us Contact Us