Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prestashop - basket total price

it's me again with another Prestashop question.

In my template, I'd like to display total price in basket (cart) without using the module there, jsut simply display total price there and link to the basket ... is there a function, that will get this information from within the system?

gettotalprice

Or something like that?

like image 740
Martin Avatar asked Jun 28 '11 09:06

Martin


1 Answers

if you use the prestashop version 1.5 you should use this:

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

best regards

like image 78
moein kh Avatar answered Oct 06 '22 00:10

moein kh