[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/base/templates/shop/ -> orderview.tpl (source)

   1  <div class="shop-orderview">
   2      <h1>{"Order %order_id [%order_status]"|i18n("design/base/shop",,
   3           hash( '%order_id', $order.order_nr,
   4                 '%order_status', $order.status_name ) )}</h1>
   5  
   6      {shop_account_view_gui view=html order=$order}
   7      {def $currency = fetch( 'shop', 'currency', hash( 'code', $order.productcollection.currency_code ) )
   8           $locale = false()
   9           $symbol = false()}
  10  
  11      {if $currency}
  12          {set locale = $currency.locale
  13               symbol = $currency.symbol}
  14      {/if}
  15  
  16      <div class="content-basket">
  17      <table cellspacing="0">
  18      <tr>
  19          <th>
  20          {"Quantity"|i18n("design/base/shop")}
  21          </th>
  22          <th>
  23          {"VAT"|i18n("design/base/shop")}
  24          </th>
  25          <th>
  26          {"Price"|i18n("design/base/shop")}
  27          </th>
  28          <th>
  29          {"Discount"|i18n("design/base/shop")}
  30          </th>
  31          <th>
  32           {"Total Price"|i18n("design/base/shop")}
  33          </th>
  34      </tr>
  35      {section var=product_item loop=$order.product_items sequence=array(bglight,bgdark)}
  36      <tr>
  37          <td class="{$product_item.sequence} product-name" colspan="6">
  38          <a href={concat("/content/view/full/",$product_item.node_id,"/")|ezurl}>{$product_item.object_name}</a>
  39          </td>
  40      </tr>
  41      <tr>
  42          <td class="{$product_item.sequence} product-details">
  43              {$product_item.item_count}
  44          </td>
  45          <td class="{$product_item.sequence} product-details">
  46          {$product_item.vat_value} %
  47          </td>
  48          <td class="{$product_item.sequence} product-details">
  49          {$product_item.price_inc_vat|l10n( 'currency', $locale, $symbol )}
  50          </td>
  51          <td class="{$product_item.sequence} product-details">
  52          {$product_item.discount_percent}%
  53          </td>
  54          <td class="{$product_item.sequence} product-details product-price">
  55          {$product_item.total_price_inc_vat|l10n( 'currency', $locale, $symbol )}
  56          </td>
  57       </tr>
  58       {section show=$product_item.item.item_object.option_list}
  59       <tr>
  60           <td class="{$product_item.sequence}" colspan='4'>
  61           {"Selected options"|i18n("design/base/shop")}
  62  
  63           <table class="shop-option_list">
  64           {section var=option_item loop=$product_item.item_object.option_list}
  65           <tr>
  66               <td class="shop-option_name">{$option_item.name}<br/>
  67               <td class="shop-option_value">{$option_item.value}</td>
  68               <td class="shop-option_price">{section show=$option_item.price|ne( 0 )}{$option_item.price|l10n( 'currency', $locale, $symbol )}{/section}</td>
  69           </tr>
  70           {/section}
  71           </table>
  72           </td>
  73       </tr>
  74       {/section}
  75       {/section}
  76       <tr>
  77           <td class="product-subtotal" colspan="4">
  78           <strong>{"Subtotal Inc. VAT"|i18n("design/base/shop")}:</strong>
  79           </td>
  80           <td class="product-subtotal">
  81           <strong>{$order.product_total_inc_vat|l10n( 'currency', $locale, $symbol )}</strong>
  82           </td>
  83       </tr>
  84       {foreach $order.order_info.additional_info as $order_item_type => $additional_info}
  85       <tr>
  86           <td class="product-subtotal" colspan="4">
  87           {if $order_item_type|eq('ezcustomshipping')}
  88           {"Shipping total Inc. VAT"|i18n("design/base/shop")}:
  89           {else}
  90           {"Item total Inc. VAT"|i18n("design/base/shop")}:
  91           {/if}
  92           </td>
  93           <td class="product-subtotal">
  94           {$additional_info.total.total_price_inc_vat|l10n( 'currency', $locale, $symbol )}
  95           </td>
  96       </tr>
  97       {/foreach}
  98       <tr>
  99           <td class="product-subtotal" colspan="4">
 100           <strong>{"Total Inc. VAT"|i18n("design/base/shop")}:</strong>
 101           </td>
 102           <td class="product-subtotal">
 103           <strong>{$order.total_inc_vat|l10n( 'currency', $locale, $symbol )}</strong>
 104           </td>
 105       </tr>
 106       </table>
 107       </div>
 108  
 109  
 110  
 111      <h2>{"Order summary"|i18n("design/base/shop")}:</h2>
 112  <table class="list" cellspacing="0" cellpadding="0" border="0">
 113  <tr>
 114      <td class="bgdark product-subtotal">
 115      {"Subtotal of items Ex VAT"|i18n("design/base/shop")}:
 116      </td>
 117      <td class="bgdark product-subtotal">
 118      {$order.product_total_ex_vat|l10n( 'currency', $locale, $symbol )}
 119      </td>
 120  </tr>
 121  {foreach $order.order_info.additional_info as $order_item_type => $additional_info}
 122  <tr>
 123      <td class="bgdark product-subtotal">
 124      {if $order_item_type|eq('ezcustomshipping')}
 125      {"Shipping total Ex VAT"|i18n("design/base/shop")}:
 126      {else}
 127      {"Item total Ex. VAT"|i18n("design/base/shop")}:
 128      {/if}
 129      </td>
 130      <td class="bgdark product-subtotal">
 131      {$additional_info.total.total_price_ex_vat|l10n( 'currency', $locale, $symbol )}
 132      </td>
 133  </tr>
 134  {/foreach}
 135  {if $order.order_info.additional_info|count|gt(0)}
 136  {foreach $order.order_info.price_info.items as $vat_value => $order_info
 137             sequence array(bglight, bgdark) as $sequence}
 138  {if $order_info.total_price_vat|gt(0)}
 139  <tr>
 140      <td class="{$sequence} product-subtotal">
 141  {"Total VAT"|i18n("design/base/shop")} ({$vat_value}%)
 142      </td>
 143      <td class="{$sequence} product-subtotal">
 144      {$order_info.total_price_vat|l10n( 'currency', $locale, $symbol )}
 145      </td>
 146  </tr>
 147  {/if}
 148  {/foreach}
 149  {/if}
 150  <tr>
 151      <td class="bgdark product-subtotal">
 152      <b>{"Order total"|i18n("design/base/shop")}:</b>
 153      </td>
 154      <td class="bgdark product-subtotal">
 155      <b>{$order.total_inc_vat|l10n( 'currency', $locale, $symbol )}</b>
 156      </td>
 157  </tr>
 158  </table>
 159  
 160      <h2>{"Order history"|i18n("design/base/shop")}:</h2>
 161      <table class="list" cellspacing="0" cellpadding="0" border="0">
 162      {let order_status_history=fetch( shop, order_status_history,
 163                                       hash( 'order_id', $order.order_nr ) )}
 164      {section var=history loop=$order_status_history sequence=array(bglight,bgdark)}
 165      <tr>
 166          <td class="{$history.sequence} date">{$sel_pre}{$history.modified|l10n( shortdatetime )}</td>
 167          <td class="{$history.sequence}">{$history.status_name|wash}</td>
 168      </tr>
 169      {/section}
 170      {/let}
 171  
 172      </table>
 173  </div>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7