{* $Id: history_order.tpl,v 1.25.2.1 2003/04/04 12:08:59 svowl Exp $ *} { include file="location.tpl" last_location=$lng.lbl_your_orders} {capture name=dialog} {if $smarty.get.mode eq "status_changed"} {$lng.lbl_order} #{$order.orderid} {$lng.txt_has_been_changed}

{include file="buttons/go_back.tpl"} {else}
{$lng.lbl_order} #{$order.orderid}
{$lng.lbl_date}: {$order.date|date_format:"%d.%m.%Y %H:%M"}

{if $usertype eq "P"} {$lng.lbl_print_order} {include file="buttons/go.tpl"}     {/if} {$lng.lbl_print_invoice} {include file="buttons/go.tpl"}

{section name=prod_num loop=$products} {if $products[prod_num].product_options ne ""} {/if} {/section} {section name=giftcert loop=$giftcerts} {if $giftcerts[giftcert].send_via eq "P"} {else} {/if} {/section} {if $order.giftcert_discount gt 0} {/if} {if $order.applied_giftcerts} {section name=gc loop=$order.applied_giftcerts} {/section} {/if}
{$lng.lbl_product_info}
   
{$products[prod_num].product|escape} #{$products[prod_num].productid}
   
{$lng.lbl_sku} {$products[prod_num].productcode}
{$lng.lbl_provider} {$products[prod_num].provider}
{$lng.lbl_price} {include file="currency.tpl" value=$products[prod_num].price}
{$lng.lbl_quantity} {$products[prod_num].amount} item(s)
{$lng.lbl_selected_options} {$products[prod_num].product_options|replace:"\n":"
\n"}
   
{$lng.lbl_gift_certificate}
   
{$lng.lbl_gc_id} {$giftcerts[giftcert].gcid}
{$lng.lbl_amount} {include file="currency.tpl" value=$giftcerts[giftcert].amount}
{$lng.lbl_recipient} {$giftcerts[giftcert].recipient}
{$lng.lbl_gc_send_via_postal_mail}
{$lng.lbl_mail_address} {$giftcerts[giftcert].recipient_firstname} {$giftcerts[giftcert].recipient_lastname}
{$giftcerts[giftcert].recipient_address}, {$giftcerts[giftcert].recipient_city},
{$giftcerts[giftcert].recipient_state} {$giftcerts[giftcert].recipient_country}, {$giftcerts[giftcert].recipient_zipcode}
{$lng.lbl_phone} {$giftcerts[giftcert].recipient_phone}
{$lng.lbl_recipient_email} {$giftcerts[giftcert].recipient_email}
   
{$lng.lbl_order_info}
   
{$lng.lbl_payment_method} {$order.payment_method}
{$lng.lbl_delivery} {$order.shipping}
{$lng.lbl_subtotal} {include file="currency.tpl" value=$order.subtotal}
{$lng.lbl_shipping_cost} {include file="currency.tpl" value=$order.shipping_cost}
{$lng.lbl_tax_cost} {include file="currency.tpl" value=$order.tax}
{$lng.lbl_discount} {include file="currency.tpl" value=$order.discount}
{$lng.lbl_coupon_saving} {include file="currency.tpl" value=$order.coupon_discount} ({$order.coupon})
{$lng.lbl_giftcert_discount} {include file="currency.tpl" value=$order.giftcert_discount}
{$lng.lbl_total} {include file="currency.tpl" value=$order.total}
   
{$lng.lbl_applied_giftcerts}:
{$order.applied_giftcerts[gc].giftcert_id}: {include file="currency.tpl" value=$order.applied_giftcerts[gc].giftcert_cost}
 
{$lng.lbl_customer_info}  
   
{$lng.lbl_title} {$customer.title}
{$lng.lbl_first_name} {$customer.firstname}
{$lng.lbl_last_name} {$customer.lastname}
{$lng.lbl_company} {$customer.company}
{$lng.lbl_billing_address}:
  {$lng.lbl_address} {$customer.b_address}
  {$lng.lbl_zip_code} {$customer.b_zipcode}
  {$lng.lbl_city} {$customer.b_city}
  {$lng.lbl_state} {$customer.b_statename}
  {$lng.lbl_country} {$customer.b_countryname}
{$lng.lbl_shipping_address}:
  {$lng.lbl_address} {$customer.s_address}
  {$lng.lbl_zip_code} {$customer.s_zipcode}
  {$lng.lbl_city} {$customer.s_city}
  {$lng.lbl_state} {$customer.s_statename}
  {$lng.lbl_country} {$customer.s_countryname}
{$lng.lbl_phone} {$customer.phone}
{$lng.lbl_fax} {$customer.fax}
{$lng.lbl_web_site} {$customer.url}
{$lng.lbl_email} {$customer.email}
 

{$lng.lbl_status}:
{if $usertype eq "A"} {else} {if $order.status eq "I"}{$lng.lbl_not_finished}{elseif $order.status eq "Q"}{$lng.lbl_queued}{elseif $order.status eq "P"}{$lng.lbl_processed}{elseif $order.status eq "D"}{$lng.lbl_declined}{elseif $order.status eq "B"}{$lng.lbl_backordered}{elseif $order.status eq "F"}{$lng.lbl_failed}{elseif $order.status eq "C"}{$lng.lbl_complete}{/if} {/if}

{$lng.lbl_tracking_number}:
{if $usertype eq "A"}

{$lng.lbl_order_details}:
{/if} {if $usertype ne "C"}

{$lng.lbl_order_notes}:
{/if} {if $usertype eq "A"}


{$lng.txt_change_order_status} {/if} {if $usertype eq "P"}


{$lng.txt_apply_changes} {/if}

{if $usertype eq "P" and $order.status ne "C"}

{$lng.txt_complete_order}
{/if} {assign var="postal_service" value=$order.shipping|truncate:3:"":true} {if $active_modules.Order_Tracking ne ""} {if $postal_service eq "UPS"} {include file="modules/Order_Tracking/ups.tpl"} {elseif $postal_service eq "USP"} {include file="modules/Order_Tracking/usps.tpl"} {elseif $postal_service eq "Fed"} {include file="modules/Order_Tracking/fedex.tpl"} {/if} {/if}
{/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_order_details_label content=$smarty.capture.dialog extra="width=100%"}