Liquid, JavaScript, themes, sales channels
We sell a food product that comes in multiple flavours. The customer facing side of this is a product page that lists all the product variants where a customer chooses the flavours they want.
Due to certain integrations (e.g. Klaviyo, Facebook) we need to have these flavour variants exist as actual standalone products too. Shopify ends up creating a page for each of these standalone flavours when we don't want them, and never want a customer being able to view them.
On woocommerce we just 301'd these to the flavour-list page with the variants, but Shopify won't let us 301 a page that exists. We found this possible workaround -> https://diginauts.io/setting-up-redirects-in-shopify-for-pages-that-exist/
Is there a better, more manageable, way of doing this, or is that link our best bet? Thanks.
That is nothing to do with my query.
The javascript method will give you a redirect, but not a 301. For 301's, you can manage your NS records through a third-party like Cloudflare and set up redirects at the DNS level.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024