{* order history *}

{$smarty.const.MY_ACCOUNT_LINK}

{if $smarty.const.CONF_AFFILIATE_PROGRAM_ENABLED} {/if}
{$smarty.const.STRING_CONTACT_INFORMATION_DOWN_CASE} {if !$order_detailed} {if $user_orders}

{$orders_navigator}

{section name=i loop=$user_orders} {/section}
{$smarty.const.STRING_ORDER_ID}
{$smarty.const.TABLE_ORDER_TIME}
{$smarty.const.STRING_ORDER_STATUS} {$smarty.const.TABLE_ORDERED_PRODUCTS} {$smarty.const.STRING_PAYMENT_TYPE} {$smarty.const.STRING_SHIPPING_TYPE}
{$smarty.const.TABLE_ORDER_TOTAL}, {$currency_name}
{$user_orders[i].orderID} {$user_orders[i].order_time} {$user_orders[i].OrderStatus} {section name=j loop=$user_orders[i].content} {/section}
{$user_orders[i].content[j].name}
{if $user_orders[i].content[j].eproduct_filename} {if $completed_order_status} {if $completed_order_status == $user_orders[i].statusID} {$smarty.const.ADMIN_DOWN_LOAD} {$user_orders[i].content[j].file_size} b {if $user_orders[i].content[j].day_count_remainder > 0} - {$smarty.const.ADMIN_EPRODUCT_AVAILABLE_DAYS} {$user_orders[i].content[j].day_count_remainder} {$smarty.const.ADMIN_DAYS} {if $user_orders[i].content[j].load_counter_remainder != 0} , {$smarty.const.ADMIN_REMANDER_EPRODUCT_DOWNLOAD_TIMES} {$user_orders[i].content[j].load_counter_remainder} {$smarty.const.ADMIN_DOWNLOAD_TIMES} {/if} {/if} {/if} {/if} {/if}
{$user_orders[i].payment_type} {$user_orders[i].shipping_type} ({$user_orders[i].shipping_cost|string_format:"%.2f"}) {$user_orders[i].order_amount} {if $user_orders[i].calculate_tax ne 0 && $user_orders[i].tax ne 0}
({$smarty.const.STRING_TAX} {$user_orders[i].tax}%) {/if}
 
{else}

{$smarty.const.STRING_NO_ORDERS}
{/if} {else}
<< {$smarty.const.ADMIN_ORDER_LIST_GO_BACK}

{$smarty.const.STRING_ORDER} #{$order.orderID}

{if $order_status_report} {/if}
{$smarty.const.STRING_ORDER} {$smarty.const.STRING_PAYMENT_TYPE} {$smarty.const.STRING_SHIPPING_TYPE}
{if $order.customers_comment ne ""} {/if}
{$smarty.const.ADMIN_ORDER_NUMBER}: {$order.orderID}
{$smarty.const.TABLE_ORDER_TIME}: {$order.order_time}
{$smarty.const.TABLE_CUSTOMER}: {$order.customer_firstname} {$order.customer_lastname}
{$smarty.const.CUSTOMER_EMAIL} {$order.customer_email}
{$smarty.const.ADMIN_IP_ADDRESS}: {$order.customer_ip}
{$smarty.const.STRING_ORDER_STATUS}: {$order.status_name}
{$smarty.const.TABLE_ORDER_COMMENTS}: {$order.customers_comment|replace:"<":"<"|replace:">":">"|replace:'"':'"'}
{$smarty.const.STRING_PAYMENT_TYPE}: {$order.payment_type}
{$smarty.const.ADMIN_PAYER}: {$order.billing_firstname} {$order.billing_lastname}
{$smarty.const.STRING_BILLING_ADDRESS}: {if $smarty.const.CONF_ADDRESSFORM_STATE != 2}
{$order.billing_address} {/if} {if $smarty.const.CONF_ADDRESSFORM_CITY != 2 || $smarty.const.CONF_ADDRESSFORM_ADDRESS != 2 || $smarty.const.CONF_ADDRESSFORM_ZIP != 2}
{/if} {if $smarty.const.CONF_ADDRESSFORM_CITY != 2} {$order.billing_city} {/if} {if $smarty.const.CONF_ADDRESSFORM_ADDRESS != 2} {$order.billing_state} {/if} {if $smarty.const.CONF_ADDRESSFORM_ZIP != 2} {$order.billing_zip} {/if}
{$order.billing_country}
{$smarty.const.STRING_SHIPPING_TYPE}: {$order.shipping_type} {if $order.shippingServiceInfo}({$order.shippingServiceInfo}){/if}
{$smarty.const.STRING_RECEIVER}: {$order.shipping_firstname} {$order.shipping_lastname}
{$smarty.const.STRING_SHIPPING_ADDRESS}: {if $smarty.const.CONF_ADDRESSFORM_STATE != 2}
{$order.shipping_address} {/if} {if $smarty.const.CONF_ADDRESSFORM_CITY != 2 || $smarty.const.CONF_ADDRESSFORM_ADDRESS != 2 || $smarty.const.CONF_ADDRESSFORM_ZIP != 2}
{/if} {if $smarty.const.CONF_ADDRESSFORM_CITY != 2} {$order.shipping_city} {/if} {if $smarty.const.CONF_ADDRESSFORM_ADDRESS != 2} {$order.shipping_state} {/if} {if $smarty.const.CONF_ADDRESSFORM_ZIP != 2} {$order.shipping_zip} {/if}
{$order.shipping_country}
{$smarty.const.ADMIN_ORDERED_PRODUCTS}
{section name=i loop=$orderContent} {/section}
{$smarty.const.ADMIN_PRODUCT_NAME} {$smarty.const.TABLE_PRODUCT_QUANTITY} {$smarty.const.STRING_TAX} {$smarty.const.TABLE_PRODUCT_COST_WITHOUT_TAX}
{$orderContent[i].name} {if $orderContent[i].eproduct_filename} {if $completed_order_status} {if $completed_order_status == $order.statusID} {$smarty.const.ADMIN_DOWN_LOAD} {$orderContent[i].file_size} b {if $orderContent[i].day_count_remainder > 0} - {$smarty.const.ADMIN_EPRODUCT_AVAILABLE_DAYS} {$orderContent[i].day_count_remainder} {$smarty.const.ADMIN_DAYS} {if $orderContent[i].load_counter_remainder != 0} , {$smarty.const.ADMIN_REMANDER_EPRODUCT_DOWNLOAD_TIMES} {$orderContent[i].load_counter_remainder} {$smarty.const.ADMIN_DOWNLOAD_TIMES} {/if} {/if} {/if} {/if} {/if} {$orderContent[i].Quantity} {$orderContent[i].tax} % {$orderContent[i].PriceToShow}
{$smarty.const.STRING_PRED_TOTAL}: {$order.clear_total_priceToShow}
{$smarty.const.ADMIN_DISCOUNT}: {$order.order_discount}
{$smarty.const.ADMIN_SHIPPING_COST}: {$order.shipping_costToShow}
{$smarty.const.TABLE_TOTAL} {$order.order_amountToShow}

{$smarty.const.ADMIN_ORDER_EXECUTING}

{section name=i loop=$order_status_report} {/section}
{$smarty.const.ADMIN_TIME} {$smarty.const.STRING_ADMIN_COMMENT} {$smarty.const.ADMIN_ORDER_STATUS_NAME}
{$order_status_report[i].status_change_time} {$order_status_report[i].status_comment} {if $order_status_report[i].status_name != 'STRING_CANCELED_ORDER_STATUS'} {$order_status_report[i].status_name} {else} {$smarty.const.STRING_CANCELED_ORDER_STATUS} {/if}

{/if}
{$smarty.const.STRING_ADDRESS_BOOK}
{$smarty.const.STRING_ORDER_HISTORY}
{$smarty.const.STRING_VISIT_HISTORY}
{$smarty.const.STRING_AFFILIATE_PROGRAM}