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

{$CompanyName|gs}

{trans key="orders.order_id"}: {$order.order_num} {if $order.test_mode == 1}(VOID - TEST ORDER){/if}

{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} {$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} {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}

{if $shipment_num} {foreach from=$shipments item="shipment"} {foreach from=$lineItems item="lineItem"} {if $shipment.id == $lineItem->shipmentId} {/if} {/foreach} {/foreach} {else} {foreach from=$shipments item="shipment"} {foreach from=$lineItems item="lineItem"} {if $shipment.id == $lineItem->shipmentId} {/if} {/foreach} {/foreach} {/if}
{trans key="orders.product"} {trans key="orders.name"} {trans key="orders.quantity"}
{trans key="orders.shipment"} # {$shipment_num} - {$shipment.shipping_cm_name|htmlspecialchars}
{$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|replace:'-||-':':'}
{/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->quantity}
{trans key="orders.shipment"} # {$shipment.num} - {$shipment.shipping_cm_name|htmlspecialchars}
{$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|replace:'-||-':':'}
{/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->quantity}