*Will Pay for Help* E-commerce - Customizing product color variant

Willing to hire someone who can help

Hello Webflowers!

I’m am looking to see if it’s possible to customize the color variant display on the product page of this e-commerce I’m working on. I’ve seen older posts on the forum that suggested creating a different product item for each of the different colors, but I’m wondering if there’s a better way since the update.

Here is the preview link: Webflow - P I N E

Ideally, I would like it to look like this

But I could settle for something like this:

I’m wondering if there is a simple code like this:

[data-option-text="blue"] { background-color: blue; }

Any help is greatly appreciated! TIA

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Do you need help anymore?

Hey! Yes, I do! I can get in contact with you?

Can you share a new Read-Only Link?

Right now, I got it to show 1 color per circle. Now, I’m looking to see if I can make it show 2 colors per circle.

Let me know if you can help!


Published site: P I N E


I will take a look at at in 1-2 days :wink:

1 Like

Instead of this:

    [data-option-label="Black"] {
    background-color: dimgrey!important;

Go with this:

    [data-option-label="Black"] {
    background: linear-gradient(to bottom, #1F4E79 0%, #1F4E79 50%, #ddd 50%, #ddd 100%);

#1F4E79 0%, #1F4E79 50%, is your top color

#ddd 50%, #ddd 100% is your bottom color

Would this help?

You can add dynamic fields inside your code.
Maybe you can use it for your list of color so that you insert the values dynamically and there is no need to list all color-variants.

1 Like

Wow! This is perfect, that did it! Thank you so much for taking the time to look into it! :pray:t5: :sparkles:

1 Like

Does this still work? I managed to recreate everything in Webflow (create the cms collection for colors, add the code and the color fields for the product) with single color circles but I can’t seem to make it work. The circle when pressed goes black.

Is there any code that I have to use at the backend ?

read only link:

1 Like

I’m having the same issue. Is there any way you could share the code to get this to work?

Thanks in advance!

Hi Chloe! You can find the code on my read_only link, on the products template page (head & body): Webflow - SOSA E-STORE

Sharing the whole code here will break its functionality so I suggest checking out how it is applied on the products template page with the added fields.

Also do checkout my other post on this issue: Linking CMS colors to product variant buttons (creating swatches)