2013-07-17 38 views
0

薩拉姆模塊的Prestashop查看詳情

我想查看訂單的細節,如一個在歷史訂單

我用戶history.js,但我不拿到查看詳細的訂單頁面

這裏是一些代碼

{foreach from=$orders item=order name=myLoop} 
    {if $order.id_order_state==5} 
     {if isset($order.invoice) && $order.invoice && isset($order.virtual) && $order.virtual} 
     {/if} 
     -|- 
     {$order.id_order} 
     {Order::getUniqReferenceOf($order.id_order)} 
     -|- 
     {$order.date_add|date_format:'Y-m-d H:i:s'} 

     -|- 
      {foreach from=$histories item=history name=hLoop} 
       {if $history[0].id_order==$order.id_order} 
        {$history[0].date_add} 
       {/if} 
      {/foreach} 
     -|- 

     {$order.payment|escape:'htmlall':'UTF-8'} 
     -|- 
     {if isset($order.order_state)}{$order.order_state|escape:'htmlall':'UTF-8'} 
     {/if} 

     <br> 
      <a class="color-myaccount" href="javascript:showOrder(1, {$order.id_order|intval}, '{$base_dir}?fc=module&module={$module_name}&controller=products');">{l s='details'}</a> 


    {/if} 

{/foreach} 

這個代碼視圖順序和細節瞭解詳細信息訂購

但我沒有得到詳細信息

回答

1

試試這個功能,它是靜態的:

Order::getOrdersWithInformations() 

你可以從它,日期添加+ id_customer + total_paid +統計等等..

0

什麼是PS版本?

1.5:看類 「OrderDetailControllerCore」(控制器/正面/)&的訂單detail.tpl(主題/ your_template中/)

+0

thnks,是我看過這個文件,但我沒有得到的訂單頁面的細節! – yassine