Skip to content

Instantly share code, notes, and snippets.

@radjivF
Last active July 11, 2018 12:38
Show Gist options
  • Save radjivF/9795c242a17fbe7827b2712c87228987 to your computer and use it in GitHub Desktop.
Save radjivF/9795c242a17fbe7827b2712c87228987 to your computer and use it in GitHub Desktop.
hide quantity if collection.title something
{% comment %}
replace ligne 265 to 270
and 'something' by the name of the collection
{% endcomment %}
{% if section.settings.show_quantity_selector and collection.title != 'something'%}
<div class="product-form__item product-form__item--quantity">
<label for="Quantity">{{ 'products.product.quantity' | t }}</label>
<input type="number" id="Quantity" name="quantity" value="1" min="1" class="product-form__input" pattern="[0-9]*">
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment