{% extends (app.request.isXmlHttpRequest) ? "::baseAjax.html.twig" : "OfficeBrainCustomBundleThemeBundle:IdmeTheme:User/myAccountFullPageLayout.html.twig" %} {% block bread_crumb_after_home %}
Order placed{{ order.createdAt| dateFormat }} |
Order total{{currency}} {{ order.price|currency }} |
{# #}
{# status#} {# -#} {# | #}
order id{{ order.orderNo }} |
|
|---|---|---|---|---|
| Billing & Payment | ||||
|
Billing Address
{{ order.OrderBillingDetail.name }}
{% if order.OrderBillingDetail.email !='' %}
|
Payment Method
{% if order.customerNumber is defined and order.customerNumber != '' %}
{{ 'goldstar_theme.order_invoice.customer_number'|trans({},'goldstar') }} : {{ order.customerNumber }} |
|
{% set currency='' %}
{% set grand_total=0 %}
{% set sub_total= 0 %}
{% set shipping_total=0 %}
{% set totalDiscountAmount = 0 %}
{% for index,product in data %}
{% set colorValue= '' %}
{% set sizeArrValue= '' %}
{% if product.attributes is defined %}
{% for attr in product.attributes %}
{% if attr.id=="11" and attr.values is defined %}
{% set sizeArrValue= attr.values %}
{% endif %}
{% if attr.id=="10" %}
{% set colorValue= attr.values %}
{% endif %}
{% endfor %}
{% endif %}
{% set productConfiguration= order.orderItemLine[index].productDetailConfiguration %}
{% set currency=order.orderItemLine[index].currencySymbol|upper %}
{% if order.orderItemLine[index].orderProduct|length>0 %}
{% set colorArrayBox = [] %}
{% for i, prod in order.orderItemLine[index].orderProduct %}
{% set shipping_total = shipping_total+prod.orderShippingDetail.shippingCharge %}
{% set lineItmeTotal=0 %}
{% set charge_total=0 %}
{% set totQty=0 %}
{% set total_quantity_for_tax_calculate=0 %}
{% set colorNameBox = '' %}
{% set newQry = 0 %}
{% set colorQtyBox = 0 %}
{% 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 colorArrayBox = colorArrayBox|merge({(colorNameBox):(colorQtyBox)})%}
{% else %}
{% for key,value in colorArrayBox%}
{% if colorNameBox == key %}
{% for varQty in varMaster.orderVariationMapping.orderVariationQuantity %}
{% set newQry = value +colorQtyBox %}
{% endfor %}
{% set colorArrayBox = colorArrayBox|merge({(colorNameBox):(newQry)})%}
{% endif %}
{% endfor %}
{% 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 colorQtyBox = colorQtyBox+ varQty.quantity %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{{ product.basic_information.title|raw }}
SKU: {{ product.basic_information.sku_number }} Color: {% 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 %}
Shipping Type {{(prod.orderShippingDetail.shippingType!='null' and prod.orderShippingDetail.shippingType!='') ? prod.orderShippingDetail.shippingType|capitalize : '-' }}
Shipping Carrier {{(prod.orderShippingDetail.carrierType!='null' and prod.orderShippingDetail.carrierType!='') ? prod.orderShippingDetail.carrierType|capitalize : '-' }} Shipping Service {{(prod.orderShippingDetail.serviceType!='null' and prod.orderShippingDetail.serviceType!='') ? prod.orderShippingDetail.serviceType|capitalize : '-' }} Shipping Charge {{currency}} {{(prod.orderShippingDetail.serviceType!='null' and prod.orderShippingDetail.serviceType!='') ? prod.orderShippingDetail.shippingCharge|currency : '0.00' }}
Shipping Address
{{ prod.orderShippingDetail.name }} {{ (prod.orderShippingDetail.email!='')?(prod.orderShippingDetail.email)|raw:'' }} {{ (prod.orderShippingDetail.street1!='')?(prod.orderShippingDetail.street1)|raw:'' }}, {{ (prod.orderShippingDetail.street2!='')?(prod.orderShippingDetail.street2 )|raw:'' }} {{ (prod.orderShippingDetail.cityName!='')?(prod.orderShippingDetail.cityName~',')|raw:'' }} {{ (prod.orderShippingDetail.stateName!='')? (prod.orderShippingDetail.stateName~',')|raw:'' }} {{ (prod.orderShippingDetail.countryName!='')?(prod.orderShippingDetail.countryName):'' }} {{ (prod.orderShippingDetail.zipCode!='')?(prod.orderShippingDetail.zipCode ):'' }} {% if prod.orderShippingDetail.phone !='' %} T : {{ prod.orderShippingDetail.phone }} {% endif %} {% if prod.orderShippingDetail.extension !='' %} EXT : {{ prod.orderShippingDetail.extension }} {% endif %} {% if prod.orderShippingDetail.fax !='' %} F : {{ prod.orderShippingDetail.fax }} {% endif %} {% if prod.orderShippingDetail.mobile !='' %} M : {{ prod.orderShippingDetail.mobile }} {% endif %} {% if prod.orderShippingDetail.website is defined and prod.orderShippingDetail.website !='' %} Web : {{ prod.orderShippingDetail.website }} {% endif %}
Customization
{% set grand_total = sub_total+shipping_total+order.taxTotal %}
|