By default, the ShowTime theme shows the variant ID as part of the URL on the product pages in your store.  This allows you to link directly to specific variants on your product page, which many customers find useful.  Others would prefer to disable this feature, so instead of seeing a URL like this:

https://cooktime.myshopify.com/collections/kitchen-decor/products/flat-color-table-cloth?variant=795393967

You will see a URL like this:

https://cooktime.myshopify.com/collections/kitchen-decor/products/flat-color-table-cloth

In order to make this change, you will need to make a change to one of your theme files.  To do so, please follow these steps:

  • From your Shopify dashboard, click Online Store > Themes and look for ShowTime.
  • Click the Actions button and choose Edit Code from the drop-down menu
  • Navigate to the Assets folder and locate the file called scripts.js.liquid
  • Click on it to open the file in the editor
  • Scroll down to approximately line 1633 and look for:
if(variant && changeUrl){        var newurl = window.location.protocol + '//' + window.location.host + window.location.pathname + '?variant=' + variant.id;
  window.history.replaceState({path: newurl}, '', newurl);
}

  • Remove this code and save the file.
Done!  Now the variant ID will not show at the end of the URL on your product pages.