custom/plugins/zenitPlatformStratus/src/Resources/views/storefront/page/checkout/checkout-item.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}
  2. {% block page_checkout_item_quantity_label %}
  3.     <div class="col-6 col-sm-12 cart-item-quantity-label">
  4.         {{ "checkout.cartHeaderQuantity"|trans|sw_sanitize }}
  5.     </div>
  6. {% endblock %}
  7. {% block page_checkout_item_quantity_select %}
  8.     <div class="col-6 col-sm-12">
  9.         {{ block('page_checkout_item_quantity_form') }}
  10.     </div>
  11. {% endblock %}
  12. {% block page_product_detail_buy_quantity %}
  13.     {% set selectQuantityThresholdExceeded = quantityInformation.maxPurchase /  lineItem.quantityInformation.purchaseSteps > selectQuantityThreshold %}
  14.     {% if theme_config('zen-buy-quantity-style') is same as ('input') or (theme_config('zen-buy-quantity-style') is same as ('select') and selectQuantityThresholdExceeded) %}
  15.         {% block zen_page_product_detail_buy_quantity_zenit_input %}
  16.             {% sw_include '@zenitPlatformStratus/storefront/component/buy-widget/zen-buy-widget-quantity.html.twig' with {
  17.                 id:  lineItem.id,
  18.                 minPurchase: lineItem.quantityInformation.minPurchase,
  19.                 maxPurchase: maxQuantity,
  20.                 step: lineItem.quantityInformation.purchaseSteps,
  21.                 autoChange: 'submit',
  22.                 value: lineItem.quantity,
  23.                 name: 'quantity',
  24.                 quantityClasses: 'checkout-item-quantity-input js-offcanvas-cart-change-quantity'
  25.             } %}
  26.         {% endblock %}
  27.     {% else %}
  28.         {{ parent() }}
  29.     {% endif %}
  30. {% endblock %}