We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: How to hide specific product variants with only one option

Solved

How to hide specific product variants with only one option

yuvinater
Tourist
4 0 1

Can anyone tell me or help me in hiding a specific varaint option sice it only has one variant and if i delet that then the whole product gets deleted.I tried something by changing the code but it did not work. Please someone help.

Screenshot 2024-08-03 161010.png

Accepted Solution (1)
niraj_patel
Shopify Partner
2391 516 516

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  #variant-radios-template--16399601729614__main .product-form__input:nth-child(3) {
       display: none !important;
  }
</style>

niraj_patel_0-1722753909198.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 6 (6)

niraj_patel
Shopify Partner
2391 516 516

Hello @yuvinater 

would you like to share your store URL and password if any please.
so i can check and provide you possible solution for your question.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
yuvinater
Tourist
4 0 1

Here is the link and the password

Link:https://c238cd-67.myshopify.com/password

Password:1234

niraj_patel
Shopify Partner
2391 516 516

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
  #variant-radios-template--16399601729614__main .product-form__input:nth-child(3) {
       display: none !important;
  }
</style>

niraj_patel_0-1722753909198.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
yuvinater
Tourist
4 0 1

Thank you, it worked.

suyash1
Shopify Partner
11112 1367 1751

@yuvinater  can you please share this product page link?

To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com
yuvinater
Tourist
4 0 1

Here is the link and the password

Link:https://c238cd-67.myshopify.com/password

Password: 1234