Top

When the App's Code is Installed a Variant ID is Appended to the End of the Product URL

This is the result of the interaction between the way the app works with variants and Shopify's new variant image functionality that is now built into themes. The only way to have the app's code not to append that information to the URL is to disable the variant image functionality in the store.

To do this you'd need to find the following function in your theme's files (this is usually in the product.liquid, theme.liquid or one of the themes .js files):

jQuery(function($) {
new Shopify.OptionSelectors('productSelect', {
product: {{ product | json }},
onVariantSelected: selectCallback,
enableHistoryState: true
});

Once you find this code, you'd need to change enableHistoryState from "true" to "false", as in the code below:

jQuery(function($) {
new Shopify.OptionSelectors('productSelect', {
product: {{ product | json }},
onVariantSelected: selectCallback,
enableHistoryState: false
});
Have more questions? Submit a request