{trans key="orders.order_num"}{if $order.status == 'Abandon'}A{$order.oid}{else}{$order.order_num}{/if}


{if $fraudscore} {else} {if $fraudstatus} {/if} {/if} {if $order.payment_status == 'Review'} {trans key="orders.approve_fraud_review_action"} {trans key="orders.deny_fraud_review_action"} {else} {trans key="orders.print_invoice"} {trans key="orders.print_packing_slip"} {if $showRefund || $showVoid || $showCapture || $showAdjust}{trans key="orders.payment"}{/if} {trans key="orders.update_status"} {trans key="orders.add_order_note"} {if $isDobaSetup && $hasDobaItems && $order.doba_order_sent != 1} {trans key="orders.send_to_doba"} {/if} {if $isDobaSetup && $hasDobaItems && $order.doba_order_sent == 1 && $order.doba_order_funded != 1} {trans key="orders.fund_doba_order"} {/if} {if $hasStoredCardData} {trans key="orders.stored_credit_card"} {/if} {if $hasInventory}{/if} {if $endiciaEnabled}{trans key="orders.generate_shipping_label"} (Endicia){/if} {if $stampsEnabled}{trans key="orders.generate_shipping_label"} (Stamps.com){/if} {if $fulfillment}{trans key="orders.fulfill"}{/if} {if $vparcelEnabled}{trans key="orders.generate_shipping_label"} (VIPparcel){/if} {*START SAFETYNET AOM*} Advanced Order Management {*END SAFETYNET AOM*} {if $invoice_direct_url} Customer invoice {/if} {/if}

{trans key="orders.order_details"}

{if $parentRecurringProfile} {/if}
{trans key="orders.order_date"}: {$order.placed_date_formatted}
{trans key="orders.status"}: {$order.status}
{trans key="orders.fulfilled"}: {if $order.fulfillment_status == 'partial'} {trans key="orders.fulfillment_options.partial"} {elseif $order.fulfillment_status == 'completed'} {trans key="orders.fulfillment_options.completed"} {else} {trans key="orders.fulfillment_options.pending"} {/if}
{trans key="orders.payment"}: {if $order.payment_status == 'Pending'} {trans key="orders.payment_status_options.Pending"} {elseif $order.payment_status == 'Partial'} {trans key="orders.payment_status_options.Partial"} {elseif $order.payment_status == 'Received'} {trans key="orders.payment_status_options.Received"} {elseif $order.payment_status == 'Refunded'} {trans key="orders.payment_status_options.Refunded"} {elseif $order.payment_status == 'Declined'} {trans key="orders.payment_status_options.Declined"} {elseif $order.payment_status == 'Canceled'} {trans key="orders.payment_status_options.Canceled"} {elseif $order.payment_status == 'Error'} {trans key="orders.payment_status_options.Error"} {elseif $order.payment_status == 'Auth Expired'} {trans key="orders.payment_status_options.Auth_Expired"} {elseif $order.payment_status == 'Reversed'} {trans key="orders.payment_status_options.Reversed"} {elseif $order.payment_status == 'Review'} {trans key="orders.payment_status_options.Review"} {/if}
{trans key="orders.parent_recurring_profile"}: {trans key="orders.recurring_profile_num"}{$parentRecurringProfile->getProfileId()} ({$parentRecurringProfile->getStatus()})

{trans key="orders.billing_information"}

{if $order.payment_gateway_id != 'paypalec'} {$order.fname|gs} {$order.lname|gs}{if $order.billing_company}, {$order.billing_company|gs}{/if}
{$order.billing_address1|gs}
{if $order.billing_address2}{$order.billing_address2|gs}
{/if} {$order.billing_city|gs}, {if $order.billing_province} {$order.billing_province|gs}, {/if} {$order.billing_zip|gs}
{$order.billing_country_name}

{trans key="orders.email"}: {$order.billing_email|gs}
{trans key="orders.phone"}: {$order.billing_phone|gs}
{if $cf_billing}
{foreach from=$cf_billing item="field"} {$field.field_name}: {$field.value_translated}
{/foreach} {/if} {else} {$order.fname|gs} {$order.lname|gs}
{trans key="orders.email"}: {$order.billing_email|gs}
{trans key="orders.paypal_ec_order"} {/if}

{trans key="orders.shipping_information"}

{if $shippingRequired} {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 $isBongoOrder}
{trans key="orders.bongo_dc_address"}
{$bongoAddress.name|gs}
{if $bongoAddress.company != ''}{$bongoAddress.company|gs}
{/if} {$bongoAddress.address1|gs}
{if $bongoAddress.address2 != ''}{$bongoAddress.address2|gs}
{/if} {$bongoAddress.city|gs}, {$bongoAddress.province|gs}, {$bongoAddress.zip|gs}
{$bongoAddress.country_name|gs}
{if $bongoAddress.phone != ''}Phone: {$bongoAddress.phone|gs}
{/if} {elseif $order.shipping_carrier_id == 'zip_code'} {* TODO: Display PikFly logo? *} {* TODO: Change to shipments? *} {if $order.shipping_cm_name != ''} {trans key="orders.shipping_service"}: {$order.shipping_cm_name}
{/if} {else} {if $order.shipping_cm_name != ''} {trans key="orders.shipping_service"}: {$order.shipping_cm_name}
{/if} {/if} {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.products"} {if $orderEditable}
{/if}
{foreach from=$shipments item="shipment" name="shipments"} {foreach from=$lineItems item="lineItem"} {if $shipment.id == $lineItem->shipmentId} {/if} {/foreach} {if $shipment.custom_fields} {/if} {/foreach} {if $order.discount_amount > 0} {/if} {if $order.promo_discount_amount > 0} {/if} {if $order.shipping_amount > 0} {/if} {if $order.handling_amount > 0} {/if} {if $order.tax_amount > 0 || $order.tax_exempt != 'No'} {/if} {if $order.gift_cert_amount > 0} {/if} {if $isBongoOrder} {if $order_data.custom2 == '' || $order_data.custom3 == ''} {elseif $bongoOrderData} {/if} {else} {/if} {if $capturedAmount > 0 && $order.payment_status == 'Received'} {/if}
{trans key="orders.product_id"} {trans key="orders.name"} {trans key="orders.taxable"} {trans key="orders.fulfilled"} {trans key="orders.price"} {trans key="orders.quantity"} {trans key="orders.total"}
{trans key="orders.shipment"} #{$shipment.num}{if $shipment.shipping_cm_name != ''} / {$shipment.shipping_cm_name|htmlspecialchars}{/if}
{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}
{trans key="orders.print_packing_slip"}
{if $shipment.shipping_amount > 0}{$shipment.shipping_amount|price}{/if}
{if $lineItem->giftcertid == 0} {$lineItem->productId|gs}{if $lineItem->productSubId != ''} / {$lineItem->productSubId}{/if} {else} {$lineItem->productId|gs}{if $lineItem->productSubId != ''} / {$lineItem->productSubId}{/if} {/if} {if $lineItem->giftcertid == 0} {$lineItem->title|gs} {else} {$lineItem->title|gs} {/if} {if $lineItem->options != ''} {if $lineItem->options}
{trans key="orders.options"}:
{$lineItem->options|gs|nl2br|replace:'-||-':':'}{/if} {/if} {if $lineItem->profileByRecurringOrder}
{foreach from=$lineItem->profileByRecurringOrder.price_modifiers|unserialize item="priceModifiers"} {$priceModifiers.label} ({$priceModifiers.price})
{/foreach}
{trans key="product.recurring.original_billing_period"}: ({$lineItem->profileByRecurringOrder.original_billing_amount|string_format:"%.2f"})
{/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} {if $lineItem->isRecurringBillingAmountModified} {trans key="product.recurring.added_options"}
{foreach from=$lineItem->recurringBillingPriceModifiersDescription item="recurringBillingPriceModifierDescription"} {$recurringBillingPriceModifierDescription}
{/foreach}
{trans key="product.recurring.original_billing_period"}: {$lineItem->recurringOriginalBillingDescription}

{/if} {if $lineItem->isRecurringBillingAmountModified}{trans key="product.recurring.total_billing_period"}{else}{trans key="product.recurring.billing_period"}{/if}: {$lineItem->recurringBillingDescription}
{/if} {if $lineItem->digitalProductKey}
{trans key="orders.download"} {/if}
{if $lineItem->isTaxable && !$lineItem->isTaxExempt} {if $lineItem->taxDescription != ''}{$lineItem->taxDescription}{else}{$lineItem->taxRate|gn}%{/if} {elseif $lineItem->isTaxExempt} {trans key="orders.tax_exempt"} {else} {trans key="common.no"} {/if} {if $lineItem->fulfillmentStatus == 'partial'} {trans key="orders.fulfillment_options.partial"} {elseif $lineItem->fulfillmentStatus == 'completed'} {trans key="orders.fulfillment_options.completed"} {else} {trans key="orders.fulfillment_options.pending"} {/if} {if $lineItem->quantityToFulfill > 0} ({trans key="orders.to_fulfill" count=$lineItem->quantityToFulfill}) {/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}
{trans key="orders.subtotal"}: {$order.subtotal_amount|price}
{trans key="orders.discount"} {if $order.discount_type == 'percent'}(-{$order.discount_value|gn}%){else}(-{$order.discount_value|price}){/if}: {$order.discount_amount|price}
{trans key="orders.promo_discount"} {if $order.promo_discount_type == 'percent'}(-{$order.promo_discount_value|gn}%){else}(-{$order.promo_discount_value|price}){/if}:
{if $pc_details && $pc_details.name != '' && $pc_details.promo_code != ''}({$pc_details.name|gs}: {$pc_details.promo_code|gs}){/if}
{$order.promo_discount_amount|price}
{trans key="orders.shipping_amount"}: {$order.shipping_amount|price}
{trans key="orders.handling_amount"}: {$order.handling_amount|price}
{trans key="orders.tax_amount"}{if $order.tax_exempt != 'No'}({if $order.tax_exempt != 'Yes'}{trans key="orders.order_partially_tax_exempt"}{else}{trans key="orders.order_tax_exempt"}{/if}){/if}: {$order.tax_amount|price}
{trans key="orders.gift_cert_amount"}:
({trans key="orders.voucher_num"}{$order.gift_cert_voucher})
{$order.gift_cert_amount|price}
{trans key="orders.bongo_total_soon"}
{trans key="orders.bongo_order"}
{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.total_amount"}: {$order.total_amount_without_gift_cert|price}
{trans key="orders.total_captured_amount"}:
({$order.payment_method_name|gs}{if $order.payment_is_realtime != 'No' and $order.security_id} ({$order.security_id|gs}){/if})
{$capturedAmount|price}
{* Shipping Details *}
{if ($cf_invoice && count($cf_invoice) > 0) || $order.gift_message}
{trans key="orders.custom_fields"}
{if $order.gift_message} {/if} {foreach from=$cf_invoice item="field"} {/foreach}
{trans key="orders.gift_message"}: {$order.gift_message|gs|nl2br}
{$field.field_name|gs} {$field.value_translated|gs|nl2br}
{/if} {if count($fulfillments) > 0}
{trans key="orders.shipments"}
{foreach from=$fulfillments item="fulfillment"} {/foreach}
{trans key="orders.created_at"} {trans key="orders.status"} {trans key="orders.tracking_number_optional"} {trans key="orders.tracking_company"} {trans key="orders.items"}
{$fulfillment->updatedAt} {if $fulfillment->status == 'completed'} {trans key="orders.fulfillment_options.completed"} {else} {trans key="orders.fulfillment_options.pending"} {/if}
{foreach from=$fulfillment->items item="fulfillmentItem"} {/foreach}
{trans key="orders.product"} {trans key="orders.quantity"}
{$fulfillmentItem->title}
{$fulfillmentItem->productId}{if $fulfillmentItem->productSubId} / {$fulfillmentItem->productSubId}{/if}
{if $fulfillmentItem->options}Options:
{$fulfillmentItem->options|gs|nl2br}{/if}
{$fulfillmentItem->quantity}
{/if} {if $endiciaEnabled}
Shipping Labels for this Order (Endicia)
{if $orderEndiciaLabels} {foreach from=$orderEndiciaLabels item="orderEndiciaLabel"} {/foreach}
Tracking Number Amount Created Date
{$orderEndiciaLabel.tracking_number|htmlspecialchars} {$orderEndiciaLabel.label_amount|price} {$orderEndiciaLabel.date_created} View or Print Label Request Refund
{else}
There are no labels generated for this order
{/if}
{/if} {if $vparcelEnabled}
Shipping Labels for this Order (VIPparcel)
{if $orderVparcelLabels} {foreach from=$orderVparcelLabels item="orderLabel"} {/foreach}
Tracking Number Amount Created Date
{$orderLabel.tracking_number|htmlspecialchars} {$orderLabel.label_amount|price} {$orderLabel.date_created} View or Print Label {*Request Refund*}
{else}
There are no labels generated for this order
{/if}
{/if} {if $stampsEnabled}
Shipping Labels for this Order (Stamps.com)
{if $orderStampsLabels} {foreach from=$orderStampsLabels item="orderStampsLabel"} {/foreach}
Tracking Number Status Created Date
{if $orderStampsLabel.tracking_number != ''} {$orderStampsLabel.tracking_number|htmlspecialchars} {else} n/a {/if} {$orderStampsLabel.status}{if $orderStampsLabel.expired} / Expired{/if} {$orderStampsLabel.date_created} {if !$orderStampsLabel.expired && $orderStampsLabel.status != 'Failed'} View or Print Label {/if} {if !$orderStampsLabel.expired && $orderStampsLabel.status == 'Created'} Cancel {/if}
{else}
There are no labels generated for this order
{/if}
{/if} {if count($admin_notes) > 0}
{trans key="orders.order_notes"}
{foreach from=$admin_notes item="note"} {/foreach}
{trans key="orders.add_note.title"} {trans key="orders.add_note.note"} {trans key="orders.created_at"} {trans key="orders.email_sent"}
{$note.note_title|gs} {$note.note_text|gs|nl2br} {$note.note_created_at} {$note.send_email}
{/if} {if count($transactions) > 0}
{trans key="orders.transaction_details"}
{foreach from=$transactions item="transaction"} {if $transaction.transaction_status|gs == "refund" || $transaction.transaction_status|gs == "void"} {else} {/if} {/foreach}
{trans key="orders.payment_gateway"} {trans key="orders.amount"} {trans key="orders.status"} {trans key="orders.completed_at"} {trans key="orders.note"} {trans key="orders.gateway_response"}
{$transaction.payment_gateway|gs}{$transaction.transaction_amount|price}{$transaction.order_total_amount|price}{$transaction.transaction_status|ucfirst|gs} {$transaction.co} {if $transaction.extra}{$transaction.extra}{/if}
{/if} {if $frauddata }
{form form=$frauddataForm}
{/if}
{include file="templates/pages/order/modal-add-order-note.html"} {include file="templates/pages/order/modal-update-status.html"} {include file="templates/pages/order/modal-process-payment.html"} {include file="templates/pages/order/modal-add-fulfillment.html"} {if $isDobaSetup && $hasDobaItems && $order.doba_order_sent == 1 && $order.doba_order_funded != 1} {include file="templates/pages/order/modal-fund-doba-order.html"} {/if} {if $hasStoredCardData}{include file="templates/pages/order/modal-credit-card-data.html"}{/if} {if $endiciaEnabled} {include file="templates/pages/order/modal-endicia.html"} {include file="templates/pages/order/modal-endicia-view.html"} {include file="templates/pages/order/modal-endicia-refund.html"} {/if} {if $vparcelEnabled} {include file="templates/pages/order/modal-vparcel.html"} {include file="templates/pages/order/modal-vparcel-view.html"} {include file="templates/pages/order/modal-vparcel-refund.html"} {/if} {if $stampsEnabled} {include file="templates/pages/order/modal-stamps.html"} {include file="templates/pages/order/modal-stamps-view.html"} {/if}