VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: djanael on September 28, 2014, 21:10:27 PM

Title: How to redirect login in VM2?
Post by: djanael on September 28, 2014, 21:10:27 PM
Hello,
I'll try to explain: in the cart Virtuemart login page exists, I would like that when you should make an login, could be redirected to index.php. Has a solution for this? I tried to override the user.php the controllers directory but could not. Help me?

My Virtuemart version: 2.6.10
Title: Re: How to redirect login in VM2?
Post by: GJC Web Design on September 28, 2014, 22:56:43 PM
not exactly clear what your trying to do but try the snippet below in what ever page it goes to now (shipping?)

surround it in a if and filter by some vars

$app = JFactory::getApplication();
    $link = JURI::root () . 'index.php';
    $app->redirect($link);
Title: Re: How to redirect login in VM2?
Post by: Milbo on September 28, 2014, 23:14:14 PM
imho the third parameter of  getLoginForm is the redirect url, so you can set it in your layout