How can I add the "Track Order" option on the top nav menu or page?
Log into Shopify admin>Online Store>Themes>Customize (on right).
Code to be used inside a page to enable tracking of orders:
- <div style="text-align: center;"></div>
- <div style="text-align: center;"></div>
- <div style="text-align: center;">Can't wait for your order to arrive? We've got you covered! Use the Tracking Code we have sent you in the shipment confirmation email (which you should receive a few days after placing your order) and find out exactly how close you are to receiving your new, awesome product!</div>
- <hr style="width: 100%; margin: 15px 0 15px 0;" />
- <div style="text-align: center;">Enter your tracking code below and press the "TRACK" button.</div>
- <br />
- <div style="text-align: center;"><!--Tracking number input box.--> <input style="width: 350px; margin-bottom: 10px;" type="text" id="YQNum" maxlength="30" /></div>
- <div style="text-align: center;"><!--The button is used to call script method.--></div>
- <div style="text-align: center;"></div>
- <div style="text-align: center;"><input type="button" style="text-align: center; width: 220px; height: 60px; background-color: #f2a345; color: white; border-radius: 10px;" value="TRACK" onclick="doTrack()" /> <!--Container to display the tracking result.--></div>
- <div id="YQContainer"></div>
- <!--Script code can be put in the bottom of the page, wait until the page is loaded then execute.-->
- <script type="text/javascript" src="//www.17track.net/externalcall.js"></script>
- <script type="text/javascript">// <![CDATA[
- function doTrack() {
- var num = document.getElementById("YQNum").value;
- if(num===""){
- alert("Enter your number.");
- return;
- }
- YQV5.trackSingle({
- //Required, Specify the container ID of the carrier content.
- YQ_ContainerId:"YQContainer",
- //Optional, specify tracking result height, max height 800px, default is 560px.
- YQ_Height:560,
- //Optional, select carrier, default to auto identify.
- YQ_Fc:"0",
- //Optional, specify UI language, default language is automatically detected based on the browser settings.
- YQ_Lang:"en",
- //Required, specify the number needed to be tracked.
- YQ_Num:num
- });
- }
- // ]]></script>
- <hr style="width: 100%; margin: 1px 0 15px 0;" />
- <div style="padding: 3%; text-align: center;">If you encounter any issue with your order do not hesitate to <a href="#contact-us"><stong style="color: #f2a345;">contact us</stong></a> and we will resolve any issue immediately.</div>
- <div style="padding: 3%; text-align: center;">Keep in mind that order tracking status may take up to 2 working days to update, so don't panic!</div>
---
To create the tracking page follow the below steps:
Online Store -> Pages -> Add Page -> Give a name like “Track Order” or similar -> click on “Show HTML” button and paste the Above code within content box as it is and finally Save the Page.
Once the page created successfully, now you
have to create the navigation and connect the above page with the navigation.
Follow the below steps to create navigation for “Track Order”:
Online Store -> Navigation -> Main Menu -> Add Menu Item -> click
within Link search box -> select Pages from drop-down list -> select
“Track Order” page form the drop-down list, it will link the page and take the
name automatically -> now, click on “Add” -> finally, save navigation
changes. Now refresh the front-end of your
store.
It will look like the below screenshot on
front end.
Related Articles
How to set up the Mega menu?
Follow the steps below to add Mega menu: 1. From Shopify admin > Online store >Themes> Theme settings> Logos and Mega Menu. 2. You see the Mega Menu options to enable and save the changes. 3. Go back to Sections. 4. Open any mega menu from sections ...
Discount code not working. Can you help?
When the customer enters a discount code, the discount is not applied directly to the cart but it is applied in the checkout page automatically. What you need to do is to enter the discount and continue to checkout. You will be able to see the ...
How to add custom content in tabs on Products Page for specific products
In the theme Customiser -> select the Product Page Here you scroll the option down and you will see checkboxes to enable disable tabs The tabs will look like this: The content can be simple HTML formatting which you can use the code ...
How do I add a collection to my homepage? I would also like to showcase the products in home page.
To Create collections, you can follow the instructions in this article: https://help.shopify.com/en/manual/products/collections/manual-shopify-collection#create-a-manual-collection --- Please follow the steps to showcase the products in home page: ...
How do I add products from Rito's Vault to my store?
Install "Oberlo - Aliexpress.com Product Importer" (https://chrome.google.com/webstore/detail/oberlo-aliexpresscom-prod/hmanipjnbjnhoicdnooapcnfonebefel?hl=en) Google Chrome Extensions. Then follow the below steps to get products from AliExpress to ...