Add Track Button: Wordpress or WooCommerce

1. Insert Track Button to a New Page

a) Add New Page or Post

a. Login to your Wordpress admin panel
b. Click  Pages or Postsat the left navigation
c. Select  Add new to add a new page or post
d. Click  text to add content in HTML mode

b) Insert Track Button Code

a. Insert the following code under HTML edit mode or copy from your  AfterShip account (for specific couriers and custom style)
b. Click  Publishat the right panel (please note that the code cannot be saved if you switch back to non-html mode)

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

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

2. Insert Track Button to Order History Page

Go to settings >>AfterShip >> Check "Use Track Button" box and save settings.

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