News:

Support the VirtueMart project and become a member

Main Menu

Registration link url

Started by Laurelle, February 25, 2013, 02:15:28 AM

Previous topic - Next topic

Laurelle

Hello,

I have a Joomla system plugin which redirects the user from the Joomla registration page to the Virtuemart registration page.

I am having an issue with the plugin on a multi-lingual site where the plugin is redirecting to the Edit/Add Address page instead of the User account page for registration.

The plugin is for Joomla 2.5+, VM 2.x with PHP 5.3 or better.

The link I am using is:
$itemID = $app->input->get( 'Itemid', '' );
$url = index.php?option=com_virtuemart&view=user' . '&lang='. substr(jFactory::getLanguage()->getTag(), 0,2);
$url =   $url . ( $Itemid ? '&Itemid=' . $Itemid : null );
$app->redirect( JRoute::_( $url, false ), null, null, true, true );

Is  index.php?option=com_virtuemart&view=user the correct url to use for registration for VM?

Thank you.