VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: suraty on September 03, 2022, 14:02:51 PM

Title: How to redirect virtuemart user to orders page after registration?
Post by: suraty on September 03, 2022, 14:02:51 PM
Hello,

I used the VirtueMart3 component on the Joomla website and users must register an account through VirtueMart. Users do not need to confirm their email address after registration and after registering, their account is activated and goes to the main page (index.php), but I want to redirect them to the "Orders" page.



In file /html/com_users/registration/default.php, there is below codes:

<form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=registration.register'); ?>" method="post" class="form-validate" enctype="multipart/form-data">



Even I changed jroute path in this line but nothing happen!

<form id="member-registration" action="<?php echo JRoute::_('index.php/shopping/cart?option=com_users&task=registration.register'); ?>" method="post" class="form-validate" enctype="multipart/form-data">



I will be glad to hear any solutions. Thanks.


VirtueMart 3
Joomla 3
Title: Re: How to redirect virtuemart user to orders page after registration?
Post by: GJC Web Design on September 03, 2022, 14:13:00 PM
look in administrator\components\com_virtuemart\controllers\user.php

end of the save function
Title: Re: How to redirect virtuemart user to orders page after registration?
Post by: suraty on September 04, 2022, 12:59:55 PM
Quote from: GJC Web Design on September 03, 2022, 14:13:00 PM
look in administrator\components\com_virtuemart\controllers\user.php

end of the save function

Thank you very much.

I am beginner, and I need to more description to solve the problem.


In administrator\components\com_virtuemart\controllers\user.php there are saveUser() function, saveData($cartObj) function and I confused in codes!

Can you help me?