<select class="mall-selectbox-sm js-mall-quantity form-select-sm form-select" data-id="{{ product.hashId }}" name="quantity">
    {% set min = product.data.quantity_min | default(__SELF__.defaultMinQuantity) %}
    {% set max = product.data.quantity_max | default(__SELF__.defaultMaxQuantity) %}
    {% for i in range(min, max) %}
        <option value="{{ i }}" {{ i == product.quantity ? 'selected="selected"' : '' }}>{{ i }}</option>
    {% endfor %}
</select>