[Skip to main content](#vessel-content)

#   Redirect after account mail validation

##

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#168858](#168858) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#168858 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")* was created by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")*

Hi All,
I've tried to find an answer on this topic [ www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html](http://www.hikashop.com/forum/4-how-to/69496-redirections-after-registration-login-activation.html) but without success.

My registration form (By Hika) works this way:

1)User fill in datas
2)Activation email it sent
3)User click on activation link
4) User is logged but in a "thanks" page.

I would like that when user click on activation link, the link is "index.php/welcome".
I try to modify "checkout / activate_page.php" and "user / after_register.php" but not success.

How can i do this?

Thanks in advance
Andrea

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#168946](#168946) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#168946 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

Hi,

Thanks to edit the file "components/com_hikashop/controllers/checkout.php" and add this code: Code:

$app-&gt;redirect('index.php/welcome');

Just before: Code:

}else{ return true; } }elseif($userActivation&gt;=2){ $app-&gt;enqueueMessage(JText::_( 'HIKA_ADMIN_CONFIRM_ACTIVATION' )); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago -  12 years 3 months ago [\#168959](#168959) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#168959 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

Ok, i'm trying.

Last edit: 12 years 3 months ago by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#168961](#168961) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#168961 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

Hi Xavier,
i tried but it seems doesn't works.
Code:

if($userActivation&lt;2 &amp;&amp; !empty($infos['passwd']) &amp;&amp; !empty($infos['username']) &amp;&amp; $this-&gt;_doLogin($infos['username'],$infos['passwd'],false)){ $page = JRequest::getString('page','checkout'); if($page=='checkout'){ $this-&gt;before_address(); $app-&gt;redirect( hikashop_completeLink('checkout'.$url,false,true) ); $app-&gt;redirect('index.php/welcome'); }else{ return true; } }elseif($userActivation&gt;=2){ $app-&gt;enqueueMessage(JText::_( 'HIKA_ADMIN_CONFIRM_ACTIVATION' )); } }

Made i mistake?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#168976](#168976) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#168976 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

So can you try to use the following code in the views your tried to edit previously: Code:

&lt;?php $app = JFactory::getApplication(); $app-&gt;redirect('index.php/welcome'); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#169077](#169077) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#169077 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

Hi Xavier,
i'm sorry but it doesn't work at all...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 months ago [\#169090](#169090) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#169090 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

Hi,

I checked the code once again, and the solution in the "checkout" controller should work.

Thanks to give me the full "thank you" message after an activation via email.
This should put me on the good way.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")**
- [![andreasuriani's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28733.jpg)](/forum/user/28733-andreasuriani "View andreasuriani's Profile") Topic Author
- [ Offline](/forum/user/28733-andreasuriani)

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 2 months ago [\#169149](#169149) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#169149 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

HI Xavier,
the thank you message after activation works fine, but doesn't work the redirect on index.php/welcome.

I need this one.

Andrea

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 2 months ago [\#169190](#169190) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Redirect after account mail validation](/forum/33-customers/870606-redirect-after-account-mail-validation#169190 "Hi All, I've tried to find an answer on this topic   www.hikashop.com/forum/4-how-to/69496-re...ogin-activation.html  but without success.  My registration form (By Hika) works this way:  1)User fill in datas 2)Activation email it sent 3)User click on activation link 4) User is logged but in a &quot;thanks&quot; page.  I would like that when user click on activation link, the link is &quot;index.php/welcome&quot;. I try to modify &quot;checkout / activate&#95;page.php&quot; and &quot;user / after&#95;register.php&quot; but not success.  How can i do this?  Thanks in advance Andrea")*

Hi,

Yeah I understand that it's working, but thanks to give me the full message in order to help to find the correct place to add code for the redirect ![;)](/media/kunena/emoticons/24.png ";)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA2MDYtcmVkaXJlY3QtYWZ0ZXItYWNjb3VudC1tYWlsLXZhbGlkYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.092 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
