{% set grand_total=0 %} {% set currency='' %} {% block shopping_cart_row_heading_block %} {% if shopping_cart_list|length > 0 %} {% set is_complete_flag=1 %}
{# shopping_cart_list |printr #} {% for data in shopping_cart_list %} {% if data.is_complete==0 %} {% set is_complete_flag=0 %} {% endif %} {% set colorArrayBox = []%} {% set sizeArrayBox = null %} {% if data.split is defined %} {% set colorNameBox = '' %} {% set newQry = 0 %} {% set total_qty=0 %} {% for index,splitData in data.split %} {% if splitData.variation_master is defined %} {% for variationInformation in splitData.variation_master %} {% set colorNameBox = variationInformation.attribute_value_color %} {% if variationInformation.variation_detail is defined %} {% set sizeArrayBox = variationInformation %} {% endif %} {% if colorArrayBox[colorNameBox] is not defined %} {% set colorQtyBox = 0 %} {% if variationInformation.variation_detail is defined %} {% for dataarray in variationInformation.variation_detail %} {% for qty in dataarray %} {% set total_qty=total_qty+qty.quantity %} {% set colorQtyBox = qty.quantity %} {% set lineAmount = qty.quantity * data.unit_price %} {% endfor %} {% endfor %} {%else%} {% for qty in variationInformation.variation_quantity %} {% set colorQtyBox = qty.quantity %} {%endfor%} {% endif %} {% set colorArrayBox = colorArrayBox|merge({(colorNameBox):(colorQtyBox)})%} {% else %} {% for key,value in colorArrayBox%} {% if colorNameBox == key %} {% if variationInformation.variation_detail is defined %} {% for dataarray in variationInformation.variation_detail %} {% for qty in dataarray %} {% set total_qty=total_qty+qty.quantity %} {% set colorQtyBox = qty.quantity %} {% set newQry = value +colorQtyBox %} {% set lineAmount = qty.quantity * data.unit_price %} {% endfor %} {% endfor %} {%else%} {% for qty in variationInformation.variation_quantity %} {% set colorQtyBox = qty.quantity %} {% set newQry = value +colorQtyBox %} {%endfor%} {% endif %} {% set colorArrayBox = colorArrayBox|merge({(colorNameBox):(newQry)})%} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %} {% set lineItmeTotal=0 %} {% set charge_total=0 %} {% set currency=data.currency_symbol %}
{{ data.product_name|raw }}
SKU: {{ data.sku_code }}
Color: {% if data.extra_color is defined and data.extra_color.mainColor is not defined and data.extra_color|length > 0 %} {% for color_type,color_name in data.extra_color %} {{ color_name.color_type }} : {{ color_name.name }}
{% endfor %} {% else %} {% for key,value in colorArrayBox %} {{ key }}
{% endfor %} {% endif %}
{% if data.active == 1 %} EDIT {% endif %} {% if data.active != 1 and data.is_deleted==1 %} EDIT {% endif %} Remove
{% if sizeArrayBox!=null or sizeArrayBox|length>0 %} {% for skey,svalue in sizeArrayBox.variation_detail %} {% if svalue[0].quantity!="" %} {% set qtyValue = sizeArrayBox.variation_quantity[skey] %} {% set lineItmeTotal = lineItmeTotal + qtyValue.quantity * qtyValue.unit_price %} {% endif %} {% endfor %} {% else %} {% set lineItmeTotal = lineItmeTotal + data.amount %} {% endif %}
Size Qty Unit Price Total
{{ (svalue[0].attribute_id==11) ? svalue[0].size_attr_val : '-' }} {{ qtyValue.quantity}} {{ data.currency_symbol|upper }}{{ qtyValue.unit_price|currency }} {{ data.currency_symbol|upper }}{{ (qtyValue.quantity * qtyValue.unit_price)|currency }}
- {{ data.total_qty}} {{ data.currency_symbol|upper }} {{ data.unit_price|currency }} {{ data.currency_symbol|upper }}{{ data.amount|currency }}
{% if data.imprint|length > 0 %}
Customization
{% for imprintInformation in data.imprint %} {% endfor %} {% set lineItmeTotal = lineItmeTotal+charge_total %}
Location Method Colors Charges Total
{% if data.imprint_position_and_methods[imprintInformation.imprint_area_id].position_area is defined %} {{ data.imprint_position_and_methods[imprintInformation.imprint_area_id].position_area }} {% endif %} {% if data.imprint_position_and_methods[imprintInformation.imprint_area_id].imprint_method[imprintInformation.imprint_method_id] is defined %} {{ data.imprint_position_and_methods[imprintInformation.imprint_area_id].imprint_method[imprintInformation.imprint_method_id] }} {% endif %} {% if imprintInformation. no_of_color != '' %} {% for index in imprintInformation.imprint_color %} {% if index.is_pms==1 %}
{{ index.pms_color.pms_color_code }}
{% endif %} {% endfor %} {% endif %}
{% set chargeLineTotal = 0 %} {% if imprintInformation.charges is defined and imprintInformation.charges|length != 0 %} {% for charge in imprintInformation.charges %} {% set chargeLineTotal = chargeLineTotal + charge.charges_amount %}
{{ charge.charges_type }}: {{ data.currency_symbol|upper }}{{ charge.charges_amount|currency }}
{% endfor %} {% endif %} {% set charge_total = charge_total+chargeLineTotal %}
{{ data.currency_symbol|upper }}{{chargeLineTotal|currency}}
{% endif %}
Item Total {{ data.currency_symbol|upper }}{{lineItmeTotal|currency}}
{% set grand_total = grand_total+lineItmeTotal %} {% endfor %}
{% endif %}
Subtotal {{ currency|upper }}{{grand_total|currency}}
Shipping Calculated at next step
Tax Calculated at next step
Order Total {{ currency|upper }}{{grand_total|currency}}
{% set disabledCheckout = false %} {% for data in shopping_cart_list %} {% if data.active == '' %} {% set disabledCheckout = true %} {% endif %} {% endfor %} {% if disabledCheckout == true %} {{ 'header_transaction.cart.cart_list.proceed_to_checkout'|trans({},'goldstar') }} {% else %} {% if app.user!=NULL %} Proceed to Checkout {% else %} {# Proceed to Checkout#} Proceed to Checkout {% endif %} {% endif %}
{% endblock shopping_cart_row_heading_block %} {% block shopping_cart_checkout_block %}{% endblock shopping_cart_checkout_block %}