Hello
I am trying to display the details of orders similar to the ones in history orders
I have used the history.js but I am not able to get the page that displays the details of orders
Below is some code snippet:
{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}
This code is supposed to display order and its details.
However, I am facing issues with retrieving the details.