modules/CSI/MultipleQty/templates/web/customer/modules/CSI/MultipleQty/product/quantity_box.twig line 1

Open in your IDE?
  1. {##
  2.  # Multiple Quantity
  3.  #
  4.  # @category  X-Cart_5_Module
  5.  # @package   MultipleQty
  6.  # @author    CFL Systems, Inc. <support@cflsystems.com>
  7.  # @copyright 2023 CFL Systems, Inc. All rights reserved.
  8.  # @license   License Agreement https://www.cflsystems.com/software-license-agreement.html
  9.  # @link      https://www.cflsystems.com/
  10.  #
  11.  # @ListChild (list="product.quantity-box", weight="20")
  12.  #}
  13. {% if this.isMultiple() %}
  14.   <select
  15.     id="{{ this.getBoxId() }}"
  16.     name="{{ this.getBoxName() }}"
  17.     title="{{ t(this.getBoxTitle()) }}"
  18.     class="{{ this.getClass() }}"
  19.     onclick="this.focus();"/>
  20.   >
  21.     {% for multiplier in 1..10 %}
  22.       {% set qty = multiplier * this.getProduct().getCsiMultiple() %}
  23.       <option value="{{ qty }}"{% if qty == this.getBoxValue() %} selected{% endif%}>{{ qty }}</option>
  24.     {% endfor %}
  25.   </select>
  26.   <span class="wheel-mark">&nbsp;</span>
  27. {% else %}
  28.   {% include 'product/quantity_box/parts/quantity_box.twig' %}
  29. {% endif %}