VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: elhazoui on July 04, 2012, 23:03:58 PM

Title: seeking help for redirect issue
Post by: elhazoui on July 04, 2012, 23:03:58 PM
Hello all,
I am in a situation in which I like to redirect the user to special checkout page after login in.
My issue is that I have hard time getting the layout value (I get always default) from views/cart/view.html.php using the following code :
$layoutName = JRequest::getVar('layout', 'default');
Please note that I set the layout in login() method of controllers/user.php using the following code:
$data['return'] = 'index.php?option=com_virtuemart&view=cart&layout=displayNewPage';

Any help would be very appreciated!
Thanks