{include file="templates/emails/elements/top_html.html"}
{$msg.cart.order_details}
{$msg.cart.order_id}: {$order_data.order_num}
{$msg.cart.billing_and_shipping_information}
{$msg.billing.billing_information}
{if $order_data.payment_gateway_id != "paypalec"} {$user_data.fname|htmlspecialchars} {$user_data.lname|htmlspecialchars},
{if $user_data.company != ""} {$user_data.company|htmlspecialchars},
{/if} {$user_data.address1|htmlspecialchars}{if $user_data.address2 != ""}, {$user_data.address2|htmlspecialchars}{/if}
{$user_data.city|htmlspecialchars}, {if $user_data.province} {$user_data.province|htmlspecialchars}, {/if} {$user_data.zip|htmlspecialchars}
{$user_data.country_name|htmlspecialchars}
{if $user_data.phone != ""} {$msg.billing.phone_number} : {$user_data.phone|htmlspecialchars}
{/if} {$msg.account.email_address}: {$user_data.email|htmlspecialchars}
{else} {$user_data.fname|htmlspecialchars} {$user_data.lname|htmlspecialchars},
{$msg.account.email_address}: {$user_data.email|htmlspecialchars}
{$msg.billing.paypal_ec_order} {/if}
{$msg.shipping.shipping_information}
{if $order_data.shipping_required} {if $order_data.shipping_split} {$msg.shipping.split_shipping_see_below} {else} {$order_data.shipping_name|htmlspecialchars},
{if $order_data.shipping_company != ""} {$order_data.shipping_company|htmlspecialchars},
{/if} {$order_data.shipping_address1|htmlspecialchars}{if $order_data.shipping_address2 != ""}, {$order_data.shipping_address2|htmlspecialchars},{/if}
{$order_data.shipping_city|htmlspecialchars}, {if $order_data.shipping_province} {$order_data.shipping_province|htmlspecialchars}, {/if} {$order_data.shipping_zip|htmlspecialchars}
{$order_data.shipping_country_name|htmlspecialchars}
{/if} {if $order_data.shipping_tracking_number != "" && $order_data.shipping_tracking_number_type != ""}

{$order_data.shipping_tracking_number_type} {$msg.cart.shipping_tracking_number}: {$order_data.shipping_tracking_number}
{if $order_data.shipping_tracking_number_type == "UPS"} {$msg.cart.click_to_track} {/if} {if $order_data.shipping_tracking_number_type == "USPS"} {$msg.cart.click_to_track} {/if} {if $order_data.shipping_tracking_number_type == "FedEx"} {$msg.cart.click_to_track} {/if} {if $order_data.shipping_tracking_number_type == "CanadaPost"} {$msg.cart.click_to_track} {/if}

{/if} {else} {$msg.shipping.no_shipping_information_available}
{$msg.shipping.order_is_not_shippable} {/if}
  {foreach from=$shipments item="shipment"} {if $order_data.shipping_split == 1 && $shipment.address} {/if} {foreach from=$order_items item="order_item"} {if $shipment.id == $order_item.shipment_id} {/if} {/foreach} {if $shipment.custom_fields} {/if}
{$msg.shipping.shipment} #{$shipment.num}
{$msg.shipping.split_shipping_ship_to}: {$shipment.address.shipping_name|htmlspecialchars} ({if $shipment.address.shipping_address_type == 'Business'}{$msg.shipping.address_type_business}{else}{$msg.shipping.address_type_residential}{/if})
{if $shipment.address.shipping_company != ''}{$shipment.address.shipping_company|htmlspecialchars}
{/if} {$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="cf"}
{$cf.field_name}: {$cf.value_translated} {/foreach} {/if}
{$shipment.shipping_cm_name|htmlspecialchars} {if $shipment.free_shipping == "Yes"}FREE{else}{$shipment.shipping_amount|price}{/if}
Items in this shipment
{$order_item.title|htmlspecialchars}
{$order_item.product_id|htmlspecialchars} {if $order_item.options != ""}
{$msg.cart.options}:
{$order_item.options|htmlspecialchars|nl2br} {/if} {if $order_item.enable_recurring_billing && $order_item.recurring_billing_data}
{$msg.recurring.recurring_payments}
{if $order_item.product_recurring_billing_data->getScheduleDescription() != ''}
{$order_item.product_recurring_billing_data->getScheduleDescription()}
{/if} {if $order_item.recurring_billing_data->getTrialEnabled()} {$msg.recurring.trial_period}: {$order_item.recurring_trial_description}
{/if} {$msg.recurring.billing_period}: {$order_item.recurring_billing_description} {if $order_item.recurring_billing_data->getStartDate()} {assign var="recurringStartDate" value=$order_item.recurring_billing_data->getStartDate()}
{$msg.recurring.billing_starting_at} {$recurringStartDate->format('U')|date_format:$msg.common.date_format} {/if} {if $order_item.recurring_profile}
{$msg.account.order_subscription}: #{$order_item.recurring_profile->profileId} ({$order_item.recurring_profile->status}) {/if}
{/if} {if $order_item.product_type == 'Digital' && $order_data.payment_status == "Received" && $order_data.status == "Completed"}
{$msg.product.download_url} {/if}
{$order_item.admin_price|price} {if $order_item.is_taxable == "No"}
({if $order_item.tax_exempt == 1}{$msg.cart.item_tax_exempt}{else}{$msg.cart.not_taxable}{/if}) {else}
{if $order_item.tax_exempt == 1} {$msg.cart.item_tax_exempt} {else} {$msg.cart.tax_amount} : {if $order_item.tax_description != ""} {$order_item.tax_description} {else} {math equation="round(x,2)" x=$order_item.tax_rate format="%0.2f"}% {/if} {/if} {/if}
{$order_item.admin_quantity} {$order_item.admin_quantity*$order_item.admin_price|price}
{$msg.shipping.additional_shipment_information} {foreach from=$shipment.custom_fields item="cf"}
{$cf.field_name|htmlspecialchars}: {$cf.value_translated|htmlspecialchars} {/foreach}
  {/foreach} {include file="templates/emails/elements/bottom_html.html"}