I'm trying to display in the index page, in a custom div, the cart total reached by the user browsing the shop. I had a look through com_virtuemart/... files, but I didn't find/understood WHERE and HOW the total is calculated, as for example in the virtuemart cart page (where you can find your cart summary).
For earlier version of VM, I found was enough to use someting like
(or similar, I don't remember the exact code), but for the version I'm currently using it's not working..I'm using joomla 2.5.8 and virtuemart 2.0.18a
I'd like to build a function that retrieves only the total: inside components\com_virtuemart\helpers.cart.php I found the class VirtuMartCart that holds the getCart function, but I don't see any reference to the total price.. Maybe I'm looking in the wrong place?
Thanks in advance for any help, best regards