Advertisement
Guest User

Untitled

a guest
May 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.43 KB | None | 0 0
  1. {% if section.settings.show_quantity_selector %}
  2.               <div class="product-form__item product-form__item--quantity">
  3.                 <label for="Quantity:">{{ 'products.product.quantity' | t }}</label>
  4.                 <input type="number" id="Quantity:" name="quantity:" value="1" min="1" class="product-form__input" pattern="[0-9]*">
  5.               </div>
  6.             {% endif %}
  7.             <div class="product-form__item product-form__item--submit{% if section.settings.enable_payment_button %} product-form__item--payment-button{% endif %}{% if product.has_only_default_variant %} product-form__item--no-variants{% endif %}">
  8.               <button type="submit" name="add" id="AddToCart-{{ section.id }}" {% unless current_variant.available %}disabled="disabled"{% endunless %} class="btn product-form__cart-submit{% if section.settings.enable_payment_button %} btn--secondary-accent{% endif %}">
  9.                 <span id="AddToCartText-{{ section.id }}">
  10.                   {% unless current_variant.available %}
  11.                     {{ 'products.product.sold_out' | t }}
  12.                   {% else %}
  13.                     {{ 'products.product.add_to_cart' | t }}
  14.                   {% endunless %}
  15.                 </span>
  16.               </button>
  17.               {% if section.settings.enable_payment_button %}
  18.                 {{ form | payment_button }}
  19.               {% endif %}
  20.             </div>
  21.           {% endform %}
  22.            </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement