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!