News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to update specific VM cart session data "paymentCurrency" programmatically

Started by Genius WebDesign, December 17, 2014, 17:19:30 PM

Previous topic - Next topic

Genius WebDesign

Hi,

I need to change the VM cart session data using PHP.
Specifically I need to change the  paymentCurrency data i the VM cart session.

Any guidelines how to do this?

Genius WebDesign

I´m looking for a solution where I use JFactory to update the VM cart data in session, like this example:

$session =& JFactory::getSession();
$session->set( 'myvar', 'helloworld' );


So I basically need to use the above method to update "paymentCurrency" within the session.
Please advice.

I´m using VM 2.6

chong

$cartSession = VirtueMartCart::getCart();
$cartSession->paymentCurrency = 0;

:)