module prestashop查看订单的详细信息

时间:2013-07-17 15:46:34

标签: javascript ajax 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}

此代码视图订单和详细信息获取详细信息顺序

但我没有得到细节

2 个答案:

答案 0 :(得分:1)

试试这个函数它是静态的:

Order::getOrdersWithInformations()

您可以从中获取,日期添加+ id_customer + total_paid +统计数据等等。

答案 1 :(得分:0)

什么是PS版本?

对于1.5:查看类“OrderDetailControllerCore”(controllers / front /)&amp; order-detail.tpl(themes / your_template /)

相关问题