{% extends (app.request.isXmlHttpRequest) ? "::baseAjax.html.twig" : "OfficeBrainCustomBundleThemeBundle:IdmeTheme:User/myAccountFullPageLayout.html.twig" %} {% block bread_crumb_after_home %}
  • {{ 'my_account'| trans({},"app") }}
  • {{ "my_order_list.sub_bread_crumb1"|trans({},'goldstar') }}
  • Order Details
  • {% endblock bread_crumb_after_home %} {% block page_main_content %}
    Back To My Orders

    My Orders

    {% endblock page_main_content %} {% block bottom_page_content %} {% set currency= (data.0.currency.symbol is defined) ? data.0.currency.symbol|upper : '$' %} {% set ob_city_dropdown = ob_project_setting['configuration_rule']['site_management']['option']['address']['option']['city']['option']['dropdown']['status'] %} {% set ob_city_textbox = ob_project_setting['configuration_rule']['site_management']['option']['address']['option']['city']['option']['textbox']['status'] %} {% set ob_state_dropdown = ob_project_setting['configuration_rule']['site_management']['option']['address']['option']['state']['option']['dropdown']['status'] %} {% set ob_state_textbox = ob_project_setting['configuration_rule']['site_management']['option']['address']['option']['state']['option']['textbox']['status'] %} {% set ob_country_dropdown = ob_project_setting['configuration_rule']['site_management']['option']['address']['option']['country']['option']['dropdown']['status'] %} {% set ob_country_textbox = ob_project_setting['configuration_rule']['site_management']['option']['address']['option']['country']['option']['textbox']['status'] %}
    {# #}

    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 !='' %}
    {{ order.OrderBillingDetail.email }} {% endif %}
    {{ order.OrderBillingDetail.street1 }}, {% if order.OrderBillingDetail.street2 !='' %} {{ order.OrderBillingDetail.street2 }} {% endif %} {% if ob_city_dropdown %} {% if order.OrderBillingDetail.cityId !='' %}
    {{ order.OrderBillingDetail.cityId|city }}, {% endif %} {% endif %} {% if ob_city_textbox %} {% if order.OrderBillingDetail.cityName != '' %}
    {{ order.OrderBillingDetail.cityName }}, {% endif %} {% endif %} {% if ob_state_textbox %} {% if order.OrderBillingDetail.stateName is defined and order.OrderBillingDetail.stateName != '' %} {{ order.OrderBillingDetail.stateName }}, {% endif %} {% elseif ob_state_dropdown %} {% if order.OrderBillingDetail.stateId !='' %} {{ order.OrderBillingDetail.stateId|state }}, {% endif %} {% endif %} {% if ob_country_textbox %} {% if order.OrderBillingDetail.countryName is defined and order.OrderBillingDetail.countryName != '' %} {{ order.OrderBillingDetail.countryName }} {% endif %} {% elseif ob_country_dropdown %} {% if order.OrderBillingDetail.countryId !='' %} {{ order.OrderBillingDetail.countryId|country }} {% endif %} {% endif %} {% if order.OrderBillingDetail.zipCode !='' %}
    {{ order.OrderBillingDetail.zipCode}} {% endif %}

      {% if order.OrderBillingDetail.phone !='' %}
    • T : {{ order.OrderBillingDetail.phone }}
    • {% endif %} {% if order.OrderBillingDetail.extension != '' %}
    • Ext : {{ order.OrderBillingDetail.extension }}
    • {% endif %} {% if order.OrderBillingDetail.mobile !='' %}
    • M : {{ order.OrderBillingDetail.mobile }}
    • {% endif %} {% if order.OrderBillingDetail.fax !='' %}
    • Fax: {{ order.OrderBillingDetail.fax }}
    • {% endif %} {% if order.OrderBillingDetail.email !='' %}
    • Email: {{ order.OrderBillingDetail.email }}
    • {% endif %}
    Payment Method

    {% if order.customerNumber is defined and order.customerNumber != '' %} {{ 'goldstar_theme.order_invoice.customer_number'|trans({},'goldstar') }} : {{ order.customerNumber }}
    {% endif %} {% if order.poNumber is defined and order.poNumber != '' %} {{ 'order_status.po_number'|trans({},'goldstar') }} : {{ order.poNumber }}

    {% endif %} {{ 'goldstar_theme.order_invoice.amount'|trans({},'goldstar') }} : {{currency}} {{ order.price|currency }}

    {% 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 %}
    {% if productConfiguration.color|length>0 %} {% for prodColorSize in productConfiguration.color %} {% for indx, qty in prodColorSize.quantity %} {% if qty!="" %} {% if(prodColorSize.size is defined) %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %} {% endif%}
    Size Qty Unit Price Total
    {{sizeArrValue[prodColorSize.size[indx]]}}-{{qty}} {{ currency }} {{ order.orderItemLine[index].unitPrice|currency }} {% set qtyItemlineTotal = order.orderItemLine[index].unitPrice * qty %} {% set lineItmeTotal = lineItmeTotal + qtyItemlineTotal %} {{ currency }} {{qtyItemlineTotal|currency}}
    {% if order.orderItemLine[index].orderProductImprintArea|length>0 %}
    Customization
    {% for imprintArea in order.orderItemLine[index].orderProductImprintArea %} {% endfor %} {% set lineItmeTotal = lineItmeTotal+charge_total %}
    Location Method Colors Charges Total
    {% if product.imprint_position_and_methods[imprintArea.imprintAreaId].position_area is defined %} {{ product.imprint_position_and_methods[imprintArea.imprintAreaId].position_area }} {% endif %} {% if product.imprint_position_and_methods[imprintArea.imprintAreaId].imprint_method[imprintArea.imprintAreaMethodId] is defined %} {{ product.imprint_position_and_methods[imprintArea.imprintAreaId].imprint_method[imprintArea.imprintAreaMethodId] }} {% endif %} {% if imprintArea.orderProductImprintColor|length>0 %} {% for index,imprintcolor in imprintArea.orderProductImprintColor %} {% if imprintcolor.isPmsColor==1 %}
    {{ imprintcolor.colorName }}
    {% endif %} {% endfor %} {% endif %}
    {% set chargeLineTotal = 0 %} {% if order.orderItemLine[index].orderProductCharges|length != 0 %} {% for charge in order.orderItemLine[index].orderProductCharges %} {% set chargeLineTotal = chargeLineTotal + charge.chargesAmount %}
    {{ charge.chargesType }}: {{ currency }}{{ charge.chargesAmount|currency }}
    {% endfor %} {% endif %} {% set charge_total = charge_total+chargeLineTotal %}
    {{ currency }}{{chargeLineTotal|currency}}
    {% endif %}
    Item Total {{currency}}{{lineItmeTotal|currency}}
    {% set sub_total = sub_total+lineItmeTotal %} {% endfor %} {% endif %} {% endfor %}
    {% set grand_total = sub_total+shipping_total+order.taxTotal %}
    Subtotal {{ currency }}{{sub_total|currency}}
    Shipping {{ currency }}{{shipping_total|currency}}
    Tax {{ currency }}{{order.taxTotal|currency}}
    Order Total {{ currency }}{{grand_total|currency}}
    {% endblock bottom_page_content %}