All things Shopify and commerce
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=433...
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 Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024