Redirecting a customer to a custom page after registration
First of all let me start with general remarks about the webmaster mode.
instead of address book page, after registration. A search through this forum shows that such a feature existed for XC4, e.g. https://forum.x-cart.com/showthread.php?t=62989&highlight=registration However, I haven't seen any post on the subject for XC5. Now, for the reason I mentioned above, it is extremely difficult for me to figure out which class is responsible for the redirection. However, I found this Code:
protected function getActionRegisterSuccessURL() in /XLite/Controller/Customer/Profile.php. So I made a class XLite/Module/VendorID/ModuleID/Customer/Profile.php with Code:
<?php |
Re: Redirecting a customer to a custom page after registration
Code:
class Profile extends \XLite\Controller\Profile implements \XLite\Base\IDecorator you are missing the "implements" portion |
Re: Redirecting a customer to a custom page after registration
Can't believe I did this again :oops:
On the other hand, now people with this problem can find how to change the URL to redirect. And, of course, the correct code is Code:
class Profile extends \XLite\Controller\Customer\Profile implements \XLite\Base\IDecorator Thank you very much. |
All times are GMT -8. The time now is 06:57 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.