Jump to content

Print order products to javascript on order-confirmation page


Recommended Posts

Hello,

 

I'm trying to print products from the order on the order-confirmation page. I've put this code and doesn't print anything. On Prestashop 1.4 it worked.

 

<script>
items = [
{foreach from=$products item=item name=vtitems}{literal}{id:’{/literal}{$item.id_product}{literal}’,
quantity: {/literal}{$item.quantity}{literal[spam-filter] {/literal}{if !$smarty.foreach.vtitems.last},{/if}{/foreach}
];
</script>
 
Thank you!
Link to comment
Share on other sites

×
×
  • Create New...