News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to redirect virtuemart user to orders page after registration?

Started by suraty, September 03, 2022, 14:02:51 PM

Previous topic - Next topic

suraty

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

GJC Web Design

look in administrator\components\com_virtuemart\controllers\user.php

end of the save function
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

suraty

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?