{% extends '::baseAjax.html.twig' %} {% block ajax_body %} {% set currency='' %} {% set sub_total=0 %} {% for index,product in data %} {% if product.basic_information is defined %} {% set sub_charge_total=0 %} {% set sub_shipping_charge= 0 %} {% set sub_grand_total=0 %} {% set total=0 %} {% set total_product_tax_shipping_wise=0 %} {% set price_unit = (product.price_unit is defined and product.price_unit!='') ? product.price_unit : 'each' %} {% set currency=order.orderItemLine[index].currencySymbol|upper %} {% set sub_total=sub_total+order.orderItemLine[index].itemLineAmount %} {% set tax_shipping_wise_total = 0 %} {% set colorArrayBox = [] %}

{{ product.basic_information.title }}

{{ 'header_transaction.cart.cart_list.item_code'|trans({},"goldstar") }} : {{ product.basic_information.sku_number }}
{% if order.orderItemLine[index].orderProduct|length>0 %} {% set colorNameBox = '' %} {% set newQry = 0 %} {% for i, prod in order.orderItemLine[index].orderProduct %} {% if product.attributes is defined %} {% set colorValue= '' %} {% for attr in product.attributes %} {% if attr.id=="10" %} {% set colorValue= attr.values %} {% endif %} {% endfor %} {% endif %} {% if prod.orderVariationMaster|length>0 %} {% for varMaster in prod.orderVariationMaster %} {% if colorValue[varMaster.attributeValueId] is defined %} {% set colorNameBox = colorValue[varMaster.attributeValueId] %} {% endif %} {% if colorArrayBox[colorNameBox] is not defined %} {% set colorQtyBox = 0 %} {% if varMaster.orderVariationMapping.orderVariationQuantity|length>0 %} {% for varQty in varMaster.orderVariationMapping.orderVariationQuantity %} {% set colorQtyBox = varQty.quantity %} {% endfor %} {% endif %} {% set colorArrayBox = colorArrayBox|merge({(colorNameBox):(colorQtyBox)})%} {% else %} {% for key,value in colorArrayBox%} {% if colorNameBox == key %} {% for varQty in varMaster.orderVariationMapping.orderVariationQuantity %} {% set colorQtyBox = varQty.quantity %} {% set newQry = value +colorQtyBox %} {% endfor %} {% set colorArrayBox = colorArrayBox|merge({(colorNameBox):(newQry)})%} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {#}{% if order.orderItemLine[index].orderProduct|length>0 %} {% for i, prod in order.orderItemLine[index].orderProduct %} {% if product.attributes is defined %} {% set colorValue= '' %} {% for attr in product.attributes %} {% if attr.id=="10" %} {% set colorValue= attr.values %} {% endif %} {% endfor %} {% endif %} {% if prod.orderVariationMaster|length>0 %} {% for varMaster in prod.orderVariationMaster %} {% if varMaster.orderVariationMapping|length>0 %} {% if varMaster.orderVariationMapping.orderVariationQuantity|length>0 %} {% for varQty in varMaster.orderVariationMapping.orderVariationQuantity %}

{{ varQty.quantity }}

{% endfor %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %}{#} {% if order.orderItemLine[index].extraColor != '' %} {% set extra_color_ary = order.orderItemLine[index].extraColor|displayOtherColor(product.attributes) %} {% for eca in extra_color_ary %} {{ eca }}
{% endfor %} {% else %} {% for key,value in colorArrayBox %} {{ key }}
{% endfor %} {% endif %} {# {% for key,value in colorArrayBox %} {{ value }}
{% endfor %} #} {% set totalSelectedQty = 0 %} {% if order.orderItemLine[index].orderProduct|length>0 %} {% for i, prod in order.orderItemLine[index].orderProduct %} {% if product.attributes is defined %} {% set colorValue= '' %} {% for attr in product.attributes %} {% if attr.id=="10" %} {% set colorValue= attr.values %} {% endif %} {% endfor %} {% endif %} {% if prod.orderVariationMaster|length>0 %} {% for varMaster in prod.orderVariationMaster %} {% if varMaster.orderVariationMapping|length>0 %} {% if varMaster.orderVariationMapping.orderVariationQuantity|length>0 %} {% for varQty in varMaster.orderVariationMapping.orderVariationQuantity %} {% set totalSelectedQty = totalSelectedQty+ varQty.quantity %} {#

{{ varQty.quantity }}

#} {% endfor %} {% endif %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {{ totalSelectedQty }} {% endif %} {% endfor %} {% endblock ajax_body %}