News:

Looking for documentation? Take a look on our wiki

Main Menu

Displaying cart total price in a module

Started by idlepress, December 08, 2012, 23:30:35 PM

Previous topic - Next topic

idlepress

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.

jenkinhill

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.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation