I have 3 customer groups and my store already sets the customer to their group automaticly. What I'm trying to do is allow the customer in group 2 change their group to 3 (and vice-versa) clicking a button in the cart page. Is it possible? I'm trying to use:
$customer = Mage::getSingleton('customer/session')->getCustomer(); $customer->setData( 'group_id', 3 ); $customer->save();
But how can I save this changes?
I'm using version 1.9.3