VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: Hesam on September 10, 2021, 00:14:05 am

Title: Redirect user to orders page after registration
Post by: Hesam on September 10, 2021, 00:14:05 am
Hi,

My website users do not need to confirm their email address after registration, and after registering their account is activated and goes to the "Account Maintenance" page, but I want to redirect them to the  "Orders" page.
please guide me.
Title: Re: Redirect user to orders page after registration
Post by: Jörgen on September 10, 2021, 08:38:54 am
Go to the baqk end and search for the login module and choose landing page.

Jörgen @ Kreativ fotografi
Title: Re: Redirect user to orders page after registration
Post by: pinochico on September 10, 2021, 08:52:35 am
I thinked he talked about registration from VM, not about login module or registration from Joomla.
Then I think he have to change by override view layout for VM registration - change URL for form or something other?

I don't know exactly, because we use OPC from rupostel and registration is overrided by rupostel.
Title: Re: Redirect user to orders page after registration
Post by: Hesam on September 10, 2021, 14:15:54 pm
I thinked he talked about registration from VM, not about login module or registration from Joomla.
Then I think he have to change by override view layout for VM registration - change URL for form or something other?

I don't know exactly, because we use OPC from rupostel and registration is overrided by rupostel.
Thank you pinochico,
Yes you are right and I changed the URL in the overridden template and the redirect is done correctly but the user registration is not done and no account is created.
Title: Re: Redirect user to orders page after registration
Post by: Jörgen on September 10, 2021, 15:53:52 pm
Was the account created correctly before You changed the template ?

Jörgen
Title: Re: Redirect user to orders page after registration
Post by: Hesam on September 10, 2021, 17:46:23 pm
Was the account created correctly before You changed the template ?

Jörgen
Thank you for your reply Jörgen,

Yes, The account is created correctly if I don't change the $url variable in the user/edit.php

In the default template:
Code: [Select]
$url = vmURI::getCurrentUrlBy('request');
In the override template I change it to:
Code: [Select]
$url = 'index.php?option=com_virtuemart&view=orders';
Title: Re: Redirect user to orders page after registration
Post by: Hesam on September 12, 2021, 10:24:30 am
Please someone to guide