{if $PrintableInvoiceCompanyLogoAlignment|strtoupper != 'NO' && $logo_image} {/if}

{$CompanyName|gs}

{trans key="orders.order_id"}: {$order.order_num}

{trans key="orders.billing_information"}
{if $order.payment_gateway_id != 'paypalec'} {$user.fname|gs} {$user.lname|gs}
{if $user.company != ''}{$user.company|gs}
{/if} {$user.address1|gs}
{if $user.address2 != ''}{$user.address2|gs}
{/if} {$user.city|gs}, {if $user.province} {$user.province|gs}, {/if} {$user.zip|gs}
{$user.country_name|gs}
{trans key="orders.email"}: {$user.email|gs}
{trans key="orders.phone"}: {$user.phone|gs}
{else} {$user.fname|gs} {$user.lname|gs} {trans key="orders.email"}: {$user.email|gs} {trans key="orders.paypal_ec_order"} {/if} {if $cf_billing}
{foreach from=$cf_billing item="field"} {$field.field_name}: {$field.value_translated}
{/foreach} {/if}

{trans key="orders.shipping_information"}
{if $order.shipping_required} {if $order.shipping_split} {trans key="orders.split_shipping_order"} {else} {$order.shipping_name|gs} ({$order.shipping_address_type|gs})
{if $order.shipping_company}{$order.shipping_company|gs}
{/if} {$order.shipping_address1|gs}
{if $order.shipping_address2}{$order.shipping_address2|gs}
{/if} {$order.shipping_city|gs}, {if $order.shipping_province} {$order.shipping_province|gs}, {/if} {$order.shipping_zip|gs}
{$order.country_name}
{if $cf_shipping}
{foreach from=$cf_shipping item="field"} {$field.field_name}: {$field.value_translated}
{/foreach} {/if} {/if} {else} {trans key="orders.not_shippable"} {/if}

{trans key="orders.order_date"}: {$order.cd}
{trans key="orders.last_update"}: {$order.sd}

{if $PrintableInvoiceCompanyName == "YES"} {$CompanyName|gs}
{/if} {if $PrintableInvoiceCompanyAddress == "YES"} {$CompanyAddressLine1|gs}
{if $CompanyAddressLine2 != ''}{$CompanyAddressLine2|gs}
{/if} {$CompanyCity|gs}, {$CompanyState|gs} {$CompanyZip|gs}
{$CompanyCountry|gs} {/if}

{if $PrintableInvoiceCompanyPhone == "YES"} {trans key="orders.phone"}: {$CompanyPhone|gs}
{/if} {if $PrintableInvoiceCompanyFax == "YES"} {trans key="orders.fax"}: {$CompanyFax|gs}
{/if} {if $PrintableInvoiceCompanyEmail == "YES"} {trans key="orders.email"}: {$CompanyEmail|gs}
{/if} {if $PrintableInvoiceCompanyWeb == "YES"} {trans key="orders.website"}: {$CompanyWebsite|gs}
{/if}

{foreach from=$shipments item="shipment"} {foreach from=$lineItems item="lineItem"} {if $shipment.id == $lineItem->shipmentId} {/if} {/foreach} {if $shipment.custom_fields} {/if} {/foreach} {if !$isBongoOrder} {foreach from=$orderView.lineItems item="orderViewLineItem" key="orderViewLineItemKey"} {/foreach} {else} {if $order.custom2 == '' || $order.custom3 == ''} {else} {/if} {/if}
{trans key="orders.product"} {trans key="orders.name"} {trans key="orders.price"} {trans key="orders.quantity"} {trans key="orders.total"}

{trans key="orders.shipment"} # {$shipment.num} - {$shipment.shipping_cm_name|htmlspecialchars}

{trans key="orders.shipment_status"}: {if $shipment.fulfillment_status == 'pending'} {trans key="orders.shipment_statuses.pending"} {elseif $shipment.fulfillment_status == 'partial'} {trans key="orders.shipment_statuses.partial"} {elseif $shipment.fulfillment_status == 'completed'} {trans key="orders.shipment_statuses.completed"} {/if} {if $order.shipping_split && $shipment.address}
{trans key="orders.split_shipping_ship_to"}: {$shipment.address.shipping_name|htmlspecialchars}{if $shipment.address.shipping_company != ''}, {$shipment.address.shipping_company|htmlspecialchars} {/if} ({$shipment.address.shipping_address_type}), {$shipment.address.shipping_address1|htmlspecialchars}, {if $shipment.address.shipping_address2 != ''}{$shipment.address.shipping_address2|htmlspecialchars}, {/if} {$shipment.address.shipping_city|htmlspecialchars}, {if $shipment.address.shipping_state_id > 0} {$shipment.address.shipping_state_name|htmlspecialchars}, {else} {$shipment.address.shipping_province|htmlspecialchars}, {/if} {$shipment.address.shipping_zip|htmlspecialchars} {$shipment.address.shipping_country_name|htmlspecialchars} {if $shipment.address.custom_fields} {foreach from=$shipment.address.custom_fields item="field"}
{$field.field_name|gs}: {$field.value_translated|gs|nl2br} {/foreach} {/if} {/if}
{$lineItem->title|gs}
{trans key="orders.product_id"}: {$lineItem->productId|gs}{if $lineItem->productSubId != ''} / {$lineItem->productSubId|gs}{/if} {if $lineItem->options != ''} {if $lineItem->options}
{trans key="orders.options"}:
{$lineItem->options|gs|nl2br}
{/if} {/if} {if $lineItem->enableRecurringBilling}
{trans key="orders.recurring_payments"} {if $lineItem->recurringProfileId}- {trans key="orders.recurring_profile_num"} {$lineItem->recurringProfileId} ({$lineItem->recurringProfileStatus}){/if}
{if $lineItem->recurringTrialDescription} $lineItem->recurringTrialDescription
{/if} {$lineItem->recurringBillingDescription}
{/if}
{$lineItem->price|price} {$lineItem->quantity} {$lineItem->subtotal|price}
{trans key="orders.additional_shipment_information"}: {foreach from=$shipment.custom_fields item="field"}
  • {$field.field_name|gs}: {$field.value_translated|gs|nl2br}
  • {/foreach}
    {$orderViewLineItem.title} : {if $orderViewLineItem.subtitle != ''}
    {$orderViewLineItem.subtitle}{/if}
    {$orderViewLineItem.amount}
    {trans key="orders.bongo_total_soon"}  
    {trans key="orders.subtotal"}: {$bongoOrderData.orderSubtotalAmount|price}
    {trans key="orders.duty_amount"}: {$bongoOrderData.orderDutyAmount|price}
    {trans key="orders.tax_amount"}: {$bongoOrderData.orderTaxAmount|price}
    {trans key="orders.shipping_amount"}: {$bongoOrderData.orderShippingAmount|price}
    {trans key="orders.domestic_shipping_amount"}: {$bongoOrderData.orderShippingDomesticAmount|price}
    {trans key="orders.insurance_amount"}: {$bongoOrderData.orderInsuranceAmount|price}
    {trans key="orders.total_amount"} ({$bongoOrderData.orderCurrency|gs}): {$bongoOrderData.orderTotalAmount|price}
    {trans key="orders.payment"}
    {trans key="orders.method"}: {if $order.payment_is_realtime == 'Yes'}{trans key="orders.real_time"}{else}{trans key="orders.not_real_time"}{/if}, {$order.payment_method_name}
    {if $payment_gateway} {trans key="orders.payment_gateway"} : {$payment_gateway}
    {trans key="orders.completed_at"} : {$completed_at} {/if} {if $order.gift_message != ''} {trans key="orders.gift_message"}
    {$order.gift_message|gs|nl2br}
    {/if} {if $cf_invoice && count($cf_invoice) > 0} {trans key="orders.custom_fields"}
    {foreach from=$cf_invoice item="field"} {$field.field_name}: {$field.value_translated}
    {/foreach} {/if}