News:

Looking for documentation? Take a look on our wiki

Main Menu

Registration URL

Started by Laurelle, February 28, 2013, 03:43:47 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 VM2?

Is there a way to get the menu id for the active language for the registration page?

Thank you.