Search code examples
prestashopsmarty

Prestashop Smarty get order price after checkout header.tpl


I'm trying to implement bing ads on my website.

I need to add this script in header.tpl replacing GetRevenueValue with the order price

<script>
window.uetq = window.uetq || [];
window.uetq.push({ 'gv': GetRevenueValue(), 'gc': 'EUR'}); 
</script>

how can i get the total price of the order in smarty ?


Solution

  • I ended up adding the code in order_confirmation.tpl where the price is already defiened