Add order lookup widget code to your store

You can create a new page on your store, or just choose one of the existing pages to add the AfterShip order lookup widget. 

Add the widget to your store 

  1. Go to your store > Select a page to add track button
  2. (a) Copy and paste the below-mentioned code after the <body> tag

    <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>
  3. Copy and paste the below-mentioned code between <body> and </body> tags. The button will appear wherever you place it. 
    <div class="as-track-button" data-size="large" data-domain=""></div>
  4. Save changes
Was this article helpful?
0 out of 1 found this helpful