{% extends '::adminBaseAjax.html.twig' %} {% block ajax_body %} {% set ColorAttributeAry = product_attributes[config.color_attribute_id] %} {% if product_attributes[config.size_attribute_id] is defined %} {% set SizeAttributeAry = product_attributes[config.size_attribute_id] %} {% else %} {% set SizeAttributeAry = null %} {% endif %} {% set TotalQty = 0 %} {% for qty in Qty.quantity %} {% set TotalQty = TotalQty + qty %} {% endfor %} {% if readOnlyText is not defined %} {% set readOnlyText = '' %} {% if config.shipping_type != 'split' %} {% set readOnlyText = 'readonly=readonly' %} {% endif %} {% endif %} {% if darkGray is not defined %} {% set darkGray = '' %} {% if config.shipping_type != 'split' %} {% set darkGray = 'disabled' %} {% endif %} {% endif %}
{{ (ColorAttributeAry.values[colorId] is defined) ? ColorAttributeAry.values[colorId] : '' }} {{ 'request_quote.shipping_type.selected_quantity'|trans }}: {{ TotalQty }}
{% if Qty.size is defined and config.allow_size == 1 and Qty.size|length>0 and Qty.size[0] > 0 %} {% for qIndex,qty in Qty.quantity %} {% set thisSizeId = Qty.size[qIndex] %}
{{ SizeAttributeAry.values[thisSizeId] }} : {{ qty }} {#
#}
{% endfor %} {% else %} {% for qIndex,qty in Qty.quantity %}
{{ 'request_quote.quantity'|trans }} : {{ qty }} {#
#}
{% endfor %} {% endif %}
{% endblock ajax_body %}