Hey,
I have a small problem that needs to be solved. As I added different variants to my products, My page started containing product variant numbers like: https://www.decorglance.com/products/butterfly-shape-wood-wall-shelf-book-shelf-oak-wood?variant=43320402739437
Hi @KartikKumar ,
Those are parameters that Shopify uses to identify which variant is currently selected. They can’t be removed from the URL. The only alternative would be to split the variants into individual products.
Hope this help
Yo not sure does it work on your theme but I had the same issue and this is how I got around it. Go to edit code find folder: global.js in that folder search for:
updateURL() { if (!this.currentVariant || this.dataset.updateUrl === ‘false’) return; window.history.replaceState({}, ‘’, ${this.dataset.url}?variant=${this.currentVariant.id}
); }
Replace with:
updateURL() {
if (!this.currentVariant || this.dataset.updateUrl === ‘false’) return;
}
Hey,
check this out
https://vitridesignstudio.com/product/rdj-fan-art/
This is the best option for most store owners as it doesn’t require coding and handles all the technical details for you.
-
Go to your Shopify Admin > Apps > Visit the Shopify App Store.
-
Search for apps like:
-
Install a well-rated app. Popular options include:
-
SEO Manager by Plug in SEO
-
EasyRedirects by Bithound
-
Variant Image URL by Station
-
Configure the app according to its instructions. Most will work automatically after installation.
Pros: Easy, no coding, often includes other beneficial SEO features.
You can’t remove that, that is how Shopify sends your customer to that particular variant.