I am using the theme Venue and also using an app which requires products to change their URL when selecting different variants. My store only has one URL for all variants, it doesn’t change when selecting different variants. However, I know other stores using this theme which change their URL when switching between variants.
If you’re talking about going from “/products/item-one” to “/products/item-two” then these are technically not variants, they are different products. Yes, many stores have this set up so that variants load entirely new urls , but as far as Shopify is concerned they are completely different products . A full page refresh will typically – not always – accompany these types of “variants” since an entirely new product is being loaded (not actually a variant).
If you want your products to work this way that is fine, but be aware of a couple things.
You have to set up new products for each variant. For example, one product for “blue-shirt” an entirely new product for “red-shirt” and a third product for “yellow-shirt”.
I’m not aware of a theme that handles “variants” this way out of the box. Which means you most likely have to get a custom solution implemented.
My advise is to let the variants load on the same page. This is the best way to handle variant options. Loading entirely new pages is a clunky user experience and the backend management of setting up your products in that way is not ideal.
So unless you have a compelling reason to do so, I would recommend using variants as they are intended on Shopify.
Thank you for your reply! What I need is the first method, deep linking. Could you maybe help with the code please? I don’t have experience with coding and don’t want to mess anything up. Thank you once again for your reply!