VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: idlepress on December 08, 2012, 23:30:35 PM

Title: Displaying cart total price in a module
Post by: idlepress on December 08, 2012, 23:30:35 PM
Joomla 2.5 Yootheme
Virtuemart 2.0

I'm looking for a way to display the total cart price in a module. Does anyone have code that I can use to display that?

I know there is a display cart module that comes with Virtuemart, but I don't want to display the contents. If I were to go that route and I have Virtuemart installed without the module can I install the com_virtuemart.2.0.10.zip without it screwing up my current virtuemart install? I don't want to have to re-load the products and everything.

I've been looking around on forums for a while and can't come up with anything useful.
Title: Re: Displaying cart total price in a module
Post by: jenkinhill on December 09, 2012, 13:14:13 PM
Please always give exact versions - see https://forum.virtuemart.net/index.php?topic=79799.0

You can create a template override for the minicart module to display just the total value. This may help: http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

Why are you looking at VM2.0.10? The current stable version is 2.0.14, and 2.0.16 will be available very soon. You can use the Joomla extension installer to update the VM and aio components, do this on a backup copy first, as if you have template overrides you may need to edit these. Live update info shows the changes between version output:  http://virtuemart.net/index.php?option=com_content&id=416

Product data etc is not lost during updates.

Title: Re: Displaying cart total price in a module
Post by: GJC Web Design on December 09, 2012, 15:13:41 PM
This might suit you better - https://forum.virtuemart.net/index.php?topic=110908.0 (https://forum.virtuemart.net/index.php?topic=110908.0)