Page 1 of 1

Include cart total in the navigation link

Posted: Wed Jul 15, 2015 6:58 am
by rbaprado
I would like to include the current cart total in the top cart navigation link, so it would be somewhat like "Shopping Cart (X items, $total). I saw the $text_items in echoed in cart.tpl but I cannot echo it in header.tpl (undefined variable). Is there smething obvious that I am missing?

Thanks a lot.

Re: Include cart total in the navigation link

Posted: Fri Jul 17, 2015 2:58 pm
by dswtpl
Hello rbaprado,

As I understand your issue, you need to change 2 language file :
1) catalog -> language -> english -> module -> cart.tpl
2) catalog -> language -> english -> checkout -> cart.tpl

replace with following code

Code: Select all

$_['text_items']             = 'Shopping Cart(%s item(s), %s)';
Good Luck :)