{* шаблон страницы истории заказов в личном аккаунте *}
{if $error ne ""}
{$error}
{/if}
{include file="blocks/profile_menu.tpl.html"}
{$smarty.const.STRING_ORDER_HISTORY}
{if $user_orders}
{$smarty.const.STRING_ORDER_ID} {$smarty.const.TABLE_ORDER_TIME} {$smarty.const.TABLE_ORDERED_PRODUCTS} {$smarty.const.TABLE_ORDER_TOTAL}, {$currency_name} {$smarty.const.STRING_MODULE_STATUS}
{section name=i loop=$user_orders}
{$user_orders[i].order_time}
    {section name=j loop=$user_orders[i].content}
  • {$user_orders[i].content[j].name}
  • {/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}
{$user_orders[i].OrderStatus}
{if isset($payMethods[$user_orders[i].paymethod])} {assign var=status_after_pay value='CONF_'|_concat_str:$payMethods[$user_orders[i].paymethod].module_up:'_STATUS_AFTER_PAY_'} {if $user_orders[i].statusID != $payMethods[$user_orders[i].paymethod][$status_after_pay] && $user_orders[i].statusID != 1 && $user_orders[i].statusID != 3 } {/if} {/if}
{$smarty.const.STRING_ORDERING_INFO} #{$user_orders[i].orderID}
{$smarty.const.CUSTOMER_FIRST_NAME}: {$user_orders[i].customer_firstname}
{section name=i loop=$user_orders[i].reg_fields_values}
{$user_orders[i].reg_fields_values[i].reg_field_name}: {$user_orders[i].reg_fields_values[i].reg_field_value}
{/section}
{$smarty.const.CUSTOMER_ADRESL}: {if $user_orders[i].shipping_address ne ""}{$user_orders[i].shipping_address}{/if} {if $user_orders[i].shipping_city ne ""}, {$user_orders[i].shipping_city}{/if}{if $user_orders[i].shipping_state ne ""}, {$user_orders[i].shipping_state}{/if}{if $user_orders[i].shipping_country ne ""}, {$user_orders[i].shipping_country}{/if}
{$smarty.const.STRING_ORDER_SHIPPING}: {$user_orders[i].shipping_type}
{if $user_orders[i].payment_type}
{$smarty.const.STRING_ORDER_PAYMENT}: {$user_orders[i].payment_type}
{/if}
{$smarty.const.TABLE_ORDER_TIME}: {$user_orders[i].order_time}
{$smarty.const.STRING_ORDER_CONTENT}
{$smarty.const.CART_PHOTO}
{$smarty.const.TABLE_PRODUCT_NAME}
{$smarty.const.ADMIN_PRODUCT_CODE8}
{$smarty.const.ADMIN_NOTEF2}
{$smarty.const.CURRENT_PRICE}
{section name=j loop=$user_orders[i].content}
{$user_orders[i].content.name}
{if {$user_orders[i].content[j].product_code} ne ""}
{$user_orders[i].content[j].product_code}
{else}
-
{/if}
{$user_orders[i].content[j].Quantity} {$smarty.const.STRING_ITEM}
{$user_orders[i].content[j].PriceOneToShow}
{/section}
{$smarty.const.TABLE_TOTAL}: {$user_orders[i].clear_total_priceToShow}
{$smarty.const.ORDER_SHIPPING_COST}: {$user_orders[i].shipping_costToShow}
{if $user_orders[i].order_discount > 0}
{$smarty.const.ADMIN_DISCOUNT} {$user_orders[i].order_discount}%: {$user_orders[i].order_discount_ToShow}
{/if}
{$smarty.const.TABLE_TOTAL}: {$user_orders[i].order_amount}
{/section} {if $orders_navigator}
{$orders_navigator}
{/if}
{else}
{$smarty.const.STRING_ORDERS_ARE_NOT_SEARCHED}
{/if}
{if $order_statuses}
{section name=i loop=$order_statuses} {/section}
{/if}