Jump to content

customise order history :display last order details on load


Recommended Posts

one of my client asked me for that,and when i did some search i'm not find any result so i try to selve it my self

 

to do that 

1-go to yourtheme/history.tpl

2- search for 

{foreach from=$orders item=order name=myLoop} 

3 - replace it with 


{assign var='compt' value=1}	
{foreach from=$orders item=order name=myLoop}
{if $compt==1}	
{literal}
<script>
$(function(){
{/literal}	
showOrder(1, {$order.id_order|intval}, '{$link->getPageLink('order-detail', true)|escape:'html':'UTF-8'}');
{literal}
})
</script>
{/literal}	
{$compt=2}
{/if}	 

Regards,

Taoufiq

Edited by taoufiqaitali (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...