Prestashop - total basket cost

he again with another question by Prestashop.

In my template, I would like to display the total price in the basket (basket), without using the module there, jsut just displays the total price there and refers to the basket ... is there a function that will receive this information from inside the system?

gettotalprice

Or something like that?

+5
source share
2 answers

if you are using prestashop version 1.5, you should use this:

  Context::getContext()->cart->getOrderTotal(true);

Regards

+4
source

Yes, there is and is a SMARTY function that you can use in your templates: {$cart->getOrderTotal(true)}although it only works before Prestashopv1.5 , as noted in the comment below.

. , , true false.

Prestashop v1.5+ : Context::getContext()->cart->getOrderTotal(true);

+3

All Articles