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 redirect login in VM2?

Started by djanael, September 28, 2014, 21:10:27 PM

Previous topic - Next topic

djanael

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

GJC Web Design

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);
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

Milbo

imho the third parameter of  getLoginForm is the redirect url, so you can set it in your layout
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/