{$msg.account.my_order}
{$msg.cart.order_id}: {$history_order_data->orderNumber}

{** BILLING AND SHIPPING ADDRESS / CUSTOM FIELDS AND GIFT MESSAGE**}

{$msg.account.order_details}

{$msg.account.order_id} #{$history_order_data->orderNumber} ({$history_order_data->orderType})
{$msg.account.order_placed_at} {$history_order_data->orderCreateDate}
{$msg.account.order_status} {$history_order_data->status}
{$msg.account.order_status_change_date} {$history_order_data->statusChangeDate}

{$msg.billing.billing_address}

{$history_user_data.fname|htmlspecialchars} {$history_user_data.lname|htmlspecialchars}
{if $history_user_data.company != ''}{$history_user_data.company|htmlspecialchars}
{/if} {$history_user_data.address1|htmlspecialchars}, {$history_user_data.address2|htmlspecialchars}
{$history_user_data.city|htmlspecialchars}, {$history_user_data.province|htmlspecialchars} {$history_user_data.zip|htmlspecialchars}
{$history_user_data.country_name|htmlspecialchars}

{$msg.shipping.shipping_address}

{if $history_order_data->shippingRequired} {$history_order_data->shippingName|htmlspecialchars}{if $history_order_data->shippingCompany != ''}, {$history_order_data->shippingCompany|htmlspecialchars}{/if} ({if $history_order_data->shippingAddressType=='Business'}{$msg.shipping.address_type_business}{else}{$msg.shipping.address_type_residential}{/if})
{$history_order_data->shippingAddress1|htmlspecialchars}, {$history_order_data->shippingAddress2|htmlspecialchars}
{$history_order_data->shippingCity|htmlspecialchars}, {$history_order_data->shippingState|htmlspecialchars} {$history_order_data->shippingZip|htmlspecialchars}
{$history_order_data->shippingCountry|htmlspecialchars}
{else} {$msg.shipping.no_shipping_information_available}
{$msg.shipping.order_is_not_shippable} {/if} {if $GiftCardActive == "YES" && $history_order_data->giftMessage != ""}
{$msg.cart.gift_message}:
{$history_order_data->giftMessage|htmlspecialchars|nl2br}
{/if} {if $history_order_data->shippingTrackingNumber != "" && $history_order_data->shippingTrackingNumberType != ""}
{$history_order_data->shippingTrackingNumberType} {$msg.cart.shipping_tracking_number}:
{$history_order_data->shippingTrackingNumber}
{$history_order_data->shippingTrackingLink}
{/if} {if count($history_order_data->shippingTracking) > 0}
{$msg.cart.shipping_tracking_number}: {foreach from=$history_order_data->shippingTracking item="st"}
{$st.carrier}: {$st.tracking} {/foreach}
{/if}
{if $tracking_info}
{if $history_order_data->shippingTrackingNumberType == "UPS"}

{$msg.account.order_ups_information}

{if $tracking_info.scheduled_delivery_date != ""} {/if} {if $tracking_info.rescheduled_delivery_date != ""} {/if} {if $tracking_info.shipment_weight > 0} {/if} {if $tracking_info.package_weight > 0} {/if}
{$order.account.order_ups_shipping_method} {$tracking_info.shipping_method|capitalize}
{$order.account.order_ups_pickup_date} {$tracking_info.pickup_date}
{$order.account.order_ups_schedule_delivery_date} {$tracking_info.scheduled_delivery_date} {$tracking_info.scheduled_delivery_time}
{$order.account.order_ups_rescheduled_delivery_date} {$tracking_info.rescheduled_delivery_date}
{$order.account.order_ups_last_activity} {$tracking_info.status_type_description|capitalize}
{$order.account.order_ups_last_activity_location} {$tracking_info.activity_location|capitalize}
{$tracking_info.activity_location1}
{$order.account.order_ups_last_activity_date} {$tracking_info.activity_date} {$tracking_info.activity_time}
{$order.account.order_ups_shipment_weight} {$tracking_info.shipment_weight} {$tracking_info.shipment_weight_unit}
{$order.account.order_ups_package_weight} {$tracking_info.package_weight} {$tracking_info.package_weight_unit}
{/if} {if $history_order_data->shippingTrackingNumberType == "USPS"}

{$msg.account.order_usps_tracking_information}

{$tracking_info}
{/if}
{/if}

{$msg.cart.order_content}

{foreach from=$shipments item="shipment"} {foreach from=$history_order_data->lineItems item="order_item"} {if $shipment.id == $order_item.shipment_id} {/if} {/foreach} {/foreach} {if $history_order_data->bongoOrder} {if $history_order_data->bongoData} {else} {/if} {else} {foreach from=$orderView.lineItems key="orderViewLineItemKey" item="orderViewLineItem"} {/foreach} {/if}
{$msg.product.product_name} {$msg.product.product_price} {$msg.product.product_quantity} {$msg.cart.total}
{$msg.shipping.shipment} # {$shipment.num} - {$shipment.shipping_cm_name|htmlspecialchars}
{$msg.shipping.shipment_status}: {$msg.shipping.shipment_statuses[$shipment.fulfillment_status]}
{if $shipment.shipping_amount > 0}{$shipment.shipping_amount|price}{/if}
{$order_item.title|htmlspecialchars}
{$order_item.product_id|htmlspecialchars} {if $order_item.options != ""}
{$msg.cart.options}:
{$order_item.options|htmlspecialchars|nl2br|replace:'-||-':':'} {/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' && $history_order_data->paymentStatus == "Received" && $history_order_data->status == "Completed"}
{$msg.product.download_url} {/if}
{$order_item.product_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.product_total|price}
{$msg.cart.bongo_subtotal}: {$history_order_data->bongoData.orderSubtotalAmount|price}
{$msg.cart.bongo_duty_amount}: {$history_order_data->bongoData.orderDutyAmount|price}
{$msg.cart.bongo_tax_amount} {$history_order_data->bongoData.orderTaxAmount|price}
{$msg.cart.bongo_shipping_amount}: {$history_order_data->bongoData.orderShippingAmount+$history_order_data->bongoData.orderShippingDomesticAmount|price}
{$msg.cart.bongo_insurance_amount}: {$history_order_data->bongoData.orderInsuranceAmount|price}
{$msg.cart.bongo_total_amount} ({$history_order_data->bongoData.orderCurrency}): {$history_order_data->bongoData.orderTotalAmount|price}
{$msg.cart.bongo_total_not_final}
{$orderViewLineItem.title} {if $orderViewLineItem.subtitle != ''}
{$orderViewLineItem.subtitle}{/if}
{$orderViewLineItem.amount}
{if count($fulfillments) > 0}

{$msg.account.shipments}

{foreach from=$fulfillments item="fulfillment"} {/foreach}
{$msg.account.created_at} {$msg.account.status} {$msg.account.tracking_number} {$msg.account.tracking_company}
{$fulfillment->updatedAt} {if $fulfillment->status == 'completed'} {$msg.shipping.shipment_statuses.completed} {else} {$msg.shipping.shipment_statuses.pending} {/if} {$fulfillment->trackingNumber} {$fulfillment->trackingCompany}
{if $fulfillment->trackingCompany == "UPS"} {$msg.cart.click_to_track} {/if} {if $fulfillment->trackingCompany == "USPS"} {$msg.cart.click_to_track} {/if} {if $fulfillment->trackingCompany == "FedEx"} {$msg.cart.click_to_track} {/if} {if $fulfillment->trackingCompany == "CanadaPost"} {$msg.cart.click_to_track} {/if}
{foreach from=$fulfillment->items item="fulfillmentItem"} {/foreach}
{$msg.account.products} {$msg.product.product_quantity}
{$fulfillmentItem->title}
{$fulfillmentItem->productId}{if $fulfillmentItem->productSubId} / {$fulfillmentItem->productSubId}{/if}
{if $fulfillmentItem->options}Options:
{$fulfillmentItem->options|gs|nl2br}{/if}
{$fulfillmentItem->quantity}
{/if}