Variant

Topic summary

Goal: make scent options act as clickable “variants” that link to separate product pages while keeping a unified selector.

Clarification: the reference site uses separate products grouped as linked variations, not true variants. Themes like Prestige support this. True variants can be deep-linked via URL parameter ?variant=ID.

Theme context: Palo Alto may not natively support linked products. A custom solution was implemented using metafields (e.g., Fragrance) and code changes in snippets/product.liquid to cross-link products.

Actions completed:

  • Store access granted; products configured with metafields per item.
  • Working examples provided for two products (caell.nl URLs and admin product IDs).
  • Code adjusted to render and link “variant” options.

Styling updates: text set to white and margin added between variant selector and Add to Cart; colors can be edited in snippets/product.liquid.

Enhancement: selected Fragrance displays underlined via metafield-driven logic.

Outcome and next steps: solution is live and functioning. Extending the same approach to different sizes for scents is feasible by implementing the same pattern. Discussion resolved with guidance for further customization.

Summarized with AI on December 26. AI used: gpt-5.

Hello :grin:

I would like to know if there’s a solution for the possibility of placing an internal link behind a variant.

For example. I have a product page for Body Wash which has two scents

  1. No.12 Objets d’Amsterdam
  2. No.10 Rock Roses

I’m curious if, upon selecting the Rock Roses variant, it would be possible to navigate to a different product page while still displaying the Objets d’Amsterdam variant option. Please take a look at the following website.

https://marie-stella-maris.com/products/body-wash-rock-roses-300-ml

Here you can see that the variants are clickable. How can I set up it like this way?

Hopefully you can help me out! :blush:

In your example those are not variants, but separate products. Several themes allow to combine them like this, so that on each product page it shows links to other products from this “group”. (example – documentation for Prestige theme https://prestige-theme.helpscoutdocs.com/article/426-product-variations-linked-products)

If you’re talking about actual variants of the same product, then

https://theme-dawn-demo.myshopify.com/products/helix-denim?variant=39577013223513 links to “multicolor” variant and
https://theme-dawn-demo.myshopify.com/products/helix-denim?variant=39577013256281 links to “denim”

Most themes should support this ?variant=variantID URL parameter.

Dear Tim,

Thank you for your quick response.

Good to know, then I mean the seperate products ‘variant’. How to set this up? I installed Palo Alto as theme.

Hi @caellofficial ,

You can refer this post https://community.shopify.com/post/1918556

I helped to setup this site https://www.woodpanelco.co.uk/products/classic-oak

1 Like

It’s beyond baseline Shopify requirements to themes, so Palo Alto may not have it. Look around https://palo-alto.presidiocreative.com/products/palo-alto-product-pages to know more.

If I am not mistaken, some Apps allow adding this functionality, or try following @EBOOST solution if comfortable.

Great! That exactly what I was looking for.

Do you think I can do this on my own? Or do I need developer for this?

I’ve already followed the steps which mentioned in the shared link.

  1. Created the metafields (color = fragrance) and products.

Add the code to product.liquid. Unfortunately don’t see any changes. Could you take a look at my shop? If necessary I can give you access :blush:

Hi,

You need go to each product to add products to metafield.

If you can’t setup. You can invite me to access your store. I will help to check for you.

1 Like

I send you an invite (eboost10@gmail.com)

Hi,

Could you share your store url? I will sent a resquest to you to access store.

Hey!

www.caellofficial.myshopify.com

Hi,

I helped to add it.

You can refer 2 products below:

https://www.caell.nl/products/body-cream-rock-roses-200-ml

https://www.caell.nl/products/body-scrub-objets-damsterdam-200-ml

https://admin.shopify.com/store/caellofficial/products/9373806133591

https://admin.shopify.com/store/caellofficial/products/9350288408919

I adjusted code in snippets/product.liquid

Amazing work! Thank you for helping out.

Now I’m wondering how to style this. For example (background color of fragance and text white)
Is it also possible to but more spacing between the ‘variants’ and the add to cart button?

Hi,

I helped to adjust color to white and add a margin.

If you want to change other color then you can go to snippets/product.liquid to change other color

You are the best!

Is it also possible to add a metafield with variant type “Fragrance” and the selected “Fragrance” is unlined?

For example

Hi,

Added

1 Like

Amazing work! Is this also possible with different sizes for the scents? :smiley:

Hi,

Yes. It is possible. You only need to implement the same.