Author Topic: Redirect user to orders page after registration  (Read 1099 times)

Hesam

  • Beginner
  • *
  • Posts: 4
  • A beginner
  • Skype Name: hesam.m@outlook.com
Redirect user to orders page after registration
« 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.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3731
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Redirect user to orders page after registration
« Reply #1 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1242
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Redirect user to orders page after registration
« Reply #2 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.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

Hesam

  • Beginner
  • *
  • Posts: 4
  • A beginner
  • Skype Name: hesam.m@outlook.com
Re: Redirect user to orders page after registration
« Reply #3 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.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3731
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Redirect user to orders page after registration
« Reply #4 on: September 10, 2021, 15:53:52 pm »
Was the account created correctly before You changed the template ?

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Hesam

  • Beginner
  • *
  • Posts: 4
  • A beginner
  • Skype Name: hesam.m@outlook.com
Re: Redirect user to orders page after registration
« Reply #5 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';

Hesam

  • Beginner
  • *
  • Posts: 4
  • A beginner
  • Skype Name: hesam.m@outlook.com
Re: Redirect user to orders page after registration
« Reply #6 on: September 12, 2021, 10:24:30 am »
Please someone to guide