How do you hide the not used variants on the product page?

How do you hide the not used variants on the product page?

smallpenguin
New Member
4 0 0

Hi there

I have 2 variants: artwork type, and size.

Not all artwork types are available in all sizes - for example, framed prints are only available in 5 sizes, and paper prints are only available in 4 (different) sizes, yet when "framed  prints" is selected, then you go to size and all the sizes for all the variants are listed (total 16) even though for framed prints there are only 5 you can choose.

https://redbusprints.com/products/abstract-coloured-lion-galaxy-background-framed-canvas-wall-art-pi...

Is there any way to fix this?

Thanks

Replies 4 (4)

LuffyOnePiece
Shopify Partner
643 93 116

Hi @smallpenguin ,

 

Please follow the below steps:

 

1. Go to the admin dashboard

2. Go to products and select the product you want to edit

3. Go to the variants as in screenshot and delete the variants which is not used. As variant is combination of different option, you can delete from the dashboard.

SandeepPangeni_0-1711084756621.png

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,

Sandeep Pangeni

 

 

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184
smallpenguin
New Member
4 0 0

Hi, thanks but i did that - but please see the link, that is how it appears afterwards. I need the greyed out / unavailable one to not be visible.

 

Thanks

LuffyOnePiece
Shopify Partner
643 93 116

Hi @smallpenguin ,

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>

 

div#shopify-section-product-template button.btn.hero__btn.btn3.btn--secondary-accent {
    display: none;
}

 

 

Result:

SandeepPangeni_0-1711163351589.png

 

If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

 

Best Regards,

Sandeep

Sandeep Pangeni
Need help with your store? sandeeppangeni17@gmail.com
For quick response, Contact In WhatsApp +9779867521184
smallpenguin
New Member
4 0 0

hi, unfortunately that didnt work. What it needs to look like is:

gallery wrapped canvas -> 7 size (60x40 to 12x8)

all frames -> 5 sizes (A0+ to A4+)

paper print -> 5 sizes (A0 to A4)

I need all the other sizes to disappear.

 

Thanks