skip to Main Content

Shopify if statement in for loop

I have some variants I'm looping over and then assigning the whole thing to a variable {% if settings.limit_quantity or settings.display_inventory_left %} {% assign variantInventory = data-variant-inventory:'[ {% for v in product.variants %} { "id":{{ v.id }}, "inventory_quantity":{{v.inventory_quantity}}, "inventory_management":"{{- v.inventory_management…

VIEW QUESTION

Hide specific fieldset class with css

image <variant-radios id="variant-radios-template--17912133255436__main" class="no-js-hidden" data-section="template--17912133255436__main" data-url="y"> <fieldset class="js product-form__input"> <legend class="form__label">A</legend> </fieldset> <fieldset class="js product-form__input"> <legend class="form__label">B</legend> </fieldset> <fieldset class="js product-form__input"> <legend class="form__label">C</legend> </fieldset> </variant-radios> I want to hide 2 of these 3 fieldset classes via css. F.e. hide "A"…

VIEW QUESTION
Back To Top
Search