templates/default/components/molecules/quantity-input/quantity-input.html.twig line 1

Open in your IDE?
  1. <div class="quantity-input js-quantity-input {{ class|default }}">
  2. <input type="button" value="" class="quantity-input__minus js-quantity-input__minus" {% if value|default <= 1 %} disabled {% endif %}>
  3. <input type="number" step="1" min="1" max="{{ max|default }}" data-max="{{ max|default }}" value="{{ value|default(1) }}"
  4. name="{{ name }}" class="quantity-input__field js-quantity-input__field" data-gtm-cp-pdp-minus="" aria-label="{{ 'line_item_header_quantity'|trans}}">
  5. <input type="button" value="" class="quantity-input__plus js-quantity-input__plus" data-gtm-cp-pdp-plus="" {% if value|default >= max %} disabled {% endif %}>
  6. </div>