{* Шаблон страницы истории заказов *} {include file="header.tpl.html" header=$smarty.const.STRING_SHOPPING_HISTORY}

{if $order_detailed && $urlToReturn}{$smarty.const.ADMIN_ORDER_LIST_GO_BACK}{/if}{$smarty.const.STRING_CONTACT_INFORMATION_DOWN_CASE} | {$smarty.const.STRING_ADDRESS_BOOK} | {$smarty.const.STRING_ORDER_HISTORY} | {$smarty.const.STRING_VISIT_HISTORY}{if $smarty.const.CONF_AFFILIATE_PROGRAM_ENABLED} | {$smarty.const.STRING_AFFILIATE_PROGRAM}{/if}

{if !$order_detailed}

| {$smarty.const.ADMIN_ORDER_SEARCH_BY_NUMBER}: |
| {$smarty.const.ADMIN_SHOW_ORDER_IN_STATUS}:
| {if $order_statuses}
| {$smarty.const.ADMIN_SHOW_ALLL}
{section name=i loop=$order_statuses}
| {$order_statuses[i].status_name}
{/section}{/if} {$smarty.const.OK_BUTTON3}

{if $user_orders} {if $orders_navigator}
{$orders_navigator}
{/if}
{$smarty.const.STRING_MODULE_NUMERATIK} # | {$smarty.const.TABLE_ORDER_TIME} | {$smarty.const.ADMIN_ORDER_STATUS_NAME} | {$smarty.const.TABLE_ORDERED_PRODUCTS} | {$smarty.const.TABLE_ORDER_TOTAL}, {$currency_name}
{section name=i loop=$user_orders}
{$smarty.const.STRING_ORDER_NAME1} #{$user_orders[i].orderID} | {$user_orders[i].order_time} | {$user_orders[i].OrderStatus} | {section name=j loop=$user_orders[i].content}
{$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} MB) {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}
{/section} | {$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}
{/section} {else}
{$smarty.const.STRING_NO_ORDERS}
{/if}

{else}

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

{$smarty.const.TABLE_ORDER_TIME}: {$order.order_time}
{$smarty.const.CUSTOMER_FIRST_NAME}: {$order.customer_firstname}
{$smarty.const.CUSTOMER_LAST_NAME}: {$order.customer_lastname}
{section name=i loop=$order.reg_fields_values}
{$order.reg_fields_values[i].reg_field_name}: {$order.reg_fields_values[i].reg_field_value|replace:"<":"<"}
{/section}
{if $order.shipping_country ne ""}
{$smarty.const.ADMIN_TOWN}: {$order.shipping_country|replace:"<":"<"}
{/if}
{$smarty.const.STRING_BILLING_ADDRESS}: {$order.billing_address|replace:"<":"<"}
{if $order.payment_type}
{$smarty.const.STRING_PAYMENT_TYPE_MAKE}: {$order.payment_type}
{/if} {if $order.shipping_type}
{$smarty.const.STRING_SHIPPING_TYPE_MAKE}: {$order.shipping_type}
{/if}

{$smarty.const.ADMIN_ORDERED_PRODUCTS}

{$smarty.const.ADMIN_PRODUCT_NAME} | {$smarty.const.TABLE_PRODUCT_QUANTITY} | {$smarty.const.TABLE_PRODUCT_COST_WITHOUT_TAX}
{section name=i loop=$orderContent}
{$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} MB) {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].PriceToShow}
{/section}
{$smarty.const.STRING_PRED_TOTAL}: | {$order.clear_total_priceToShow}
{if $order.order_discount > 0}
{$smarty.const.ADMIN_DISCOUNT}: | {$order.order_discount}
{/if}
{$smarty.const.ADMIN_SHIPPING_COST}: | {$order.shipping_costToShow}
{$smarty.const.TABLE_TOTAL}: | {$order.order_amountToShow}
{if $order_status_report}
{$smarty.const.ADMIN_ORDER_EXECUTING}
{$smarty.const.ADMIN_TIME} | {$smarty.const.ADMIN_ORDER_STATUS_NAME}
{section name=i loop=$order_status_report}
{$order_status_report[i].status_change_time} | {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}
{/section} {/if}

{/if}