Hello, I’m using the Sense theme. I need to hide one of the variants (which has a single option) of the product from the store. I just need to hide it, I cannot remove it because it is needed at the backend with the fulfiller.
Thank you for your help!
Hello @hassanshahid ,
You have to make it conditional.
First check how many options a variant have.
Once get the result then use it within the if condition e.g.
{% if option.values.size == 1%}
// do nothing
{% else %}
// default code
{% endif %}
Thanks
Where can I find/edit this code?
Thank you for your answer!
Hi @hassanshahid ,
If you would like to hide certain variants in your collection while displaying only the ones you prefer, I can recommend the Stamp – Variants on Collection app. With the app, you can easily split your products into their variants and choose which ones to show or hide all without using any code.