Hi all,
I would like to ask how I can automatically hide the product options on the product page if there is only one variant for each product option in Dawn 7.0 theme. Big appreciation for your kind assistance.
Best regards
Hi all,
I would like to ask how I can automatically hide the product options on the product page if there is only one variant for each product option in Dawn 7.0 theme. Big appreciation for your kind assistance.
Best regards
Hello @mustard-seed ,
Use
{{ product.variants.size }}
Next use an if condition and check if variant size is greater than 1 render the code else do nothing.
Thanks
Hello @Guleria ,
Thank you very much for replying to my thread and offering your solutions. I am not good with the programming language so I have been trying to google how to write it out, but I fail to find the clues. Would you mind teaching me how to write the codes and where to insert it in the liquid file please? Thank you very much.