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

#   How to redirect affiliate on registration

##

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#329810](#329810) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329810 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")* was created by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 7.9.24
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Opera 74.0.3911.107

Hello
How do I redirect new affiliates after the register to become affiliates?
These are not customers.
Many thanks
Jo

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

5 years 9 months ago [\#329812](#329812) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329812 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi,

Well, when the registration is through the checkout, I don't think you want to redirect them, but stay on the checkout.

When the registration is through the HikaShop registration form page, then you can edit the "after_register" view file via the menu Display&gt;Views to add a bit of code for the redirection.
For example: Code:

&lt;?php $user = hikashop_loadUser(true); if(!empty($user-&gt;user_partner_activated)) { $app = JFactory::getApplication(); $url = 'URL WHERE TO REDIRECT'; $app-&gt;redirect($url); }

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#329829](#329829) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329829 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi
No, that's not getting any response at all. Still delivering to blank page.
You are correct, this is not registration through the checkout. I am trying to set up the affiliate program and people who are not customers should be able to register and be taken to the Affiliates home page.
I have little experience in this.... should the code above simply be placed under the current code on that page?...
&lt;?php
/**
* @package HikaShop for Joomla!
* @version 4.4.1
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
Many thanks

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#329833](#329833) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329833 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

After registration it is currently going to this page;
[ mysite.com/register/user/register](https://mysite.com/register/user/register)

Many thanks

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

5 years 9 months ago [\#329870](#329870) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329870 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi,

Well, The modification I provided is supposing that you're using HikaShop's registration form page for your registration.
If you use Joomla's registration form or another component's registration form, then you'll have to do something else and I won't be able to help as I don't have the knowledge.
The URL register/user/register seems to indicate that you might be using Joomla's registration form, which would explain why the modification to the view file didn't change anything.
If you could provide the URL of the page with the registration form, I would be able to check what registration form you're using.

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#329947](#329947) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329947 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi Nicolas, thanks for the help
Okay, the modification you gave is in place on after_register.php, see below;
&lt;?php
/**
* @package HikaShop for Joomla!
* @version 4.4.1
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
&lt;?php
$user = hikashop_loadUser(true);
if(!empty($user-&gt;user_partner_activated)) {
$app = JFactory::getApplication();
$url = '[ portableacousticbaffle.com/control-panel/affiliate](https://portableacousticbaffle.com/control-panel/affiliate)';
$app-&gt;redirect($url);
}
The redirect landing page should be /affiliate

2. Here is a link to the registration page; [ portableacousticbaffle.com/hikashop-registration](https://portableacousticbaffle.com/hikashop-registration)

3. Here is the page is actually takes me to after registration, which is blank: [ portableacousticbaffle.com/hikashop-registration/user/register](https://portableacousticbaffle.com/hikashop-registration/user/register)

4. I can confirm that I am using the Hikashop registration menu link, I have named it 'hikashop-registration'

Many thanks
jo

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

5 years 9 months ago [\#329961](#329961) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329961 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi,

The first and main issue I can see is that in the "registration" setting of the HikaShop configuration, you've selected "guest". And thus, what you see is a guest form, not a registration form.
I would recommend changing the "Display method for registration" setting to "selector" so that you could then select both "guest" and "registration" in the "registration" setting.
That way, on the registration form page, you would have a registration form.

Another issue I see is that you've added spaces between the quotes and the URL of the redirection.

Another issue is that I've made you add a check on the user_partner_activated parameter of the user, but on your registration form, you don't display the partner checkbox (thanks to the "Add a 'become a partner' checkbox on the registration form" option of the HikaShop configuration). In that case, this code will never redirect to your URL. So either you activate that option so that when registering the user can choose to become a partner or not, or you change the line:
if(!empty($user-&gt;user_partner_activated)) {
to:
if(true) {
so that the user is always redirected to your affiliate page after going through the registration page.

One other potential problem is that the hikashop_loadUser function might use a cached version of the data instead of the new user data. So just in case, I would recommend to add the line:
hikashop_loadUser(false, true);
before the line:
$user = hikashop_loadUser(true);
in order to clear the cache before loading the user data.

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#329990](#329990) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329990 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Thanks for this Nicolas, still not quite there...

Just to clarify, I am wanting to sign people up as affiliates who will likely NOT be customers.

Okay, so got the registration form, no problem. However, the redirect is still not working. On registration I am presented with the message to confirm the email address, but not taken to the correct page.

Also, I'm not sure why the redirect address showed up as having a space before and after the address in the previous message I posted here, I did check it, and there was no space. Anyhow, redirect still not working.

I have deleted the test account you used previously if you would like to use the same email address to try again.

Many thanks

Jo

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

5 years 9 months ago [\#329995](#329995) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#329995 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi,

To post code on the forum, make sure you use the [ code ] and [ / code ] tags ( without the spaces) around the code. That way, the forum system won't try to process your code's text.

Did you also do the code modifications I proposed in my previous message ?
What code do you now have in the after_register.php view file ?

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#330038](#330038) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330038 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi
Here's the code I'm using; Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 4.4.1 * @author hikashop.com * @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;?php hikashop_loadUser(false, true); $user = hikashop_loadUser(true); if(true) { $app = JFactory::getApplication(); $url = 'https://portableacousticbaffle.com/control-panel/affiliate'; $app-&gt;redirect($url); }

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#330039](#330039) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330039 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

And this is the page it actually redirects to;

/hikashop-registration/checkout/activate_page?lang=en

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 9 months ago [\#330040](#330040) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330040 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

changed the page it's being directed to.... just to let you know! Still doesn't work;
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 4.4.1 * @author hikashop.com * @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;?php hikashop_loadUser(false, true); $user = hikashop_loadUser(true); if(true) { $app = JFactory::getApplication(); $url = 'https://portableacousticbaffle.com/members-home'; $app-&gt;redirect($url); }

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

5 years 9 months ago [\#330042](#330042) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330042 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi,

You've apparently activated the activation of users.
In that case, you want to do a similar modification to the checkout / activate_page.php view file.
However, In that case, it's possible that users registering through the checkout will also get this redirection.

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 8 months ago [\#330572](#330572) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330572 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Thanks Nicolas

Okay, the registration process does work.
Register -&gt; Get confirmation email

But, looking further...the Test is categorised as a Customer not a Partner

What am I missing?

Many thanks

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

5 years 8 months ago [\#330573](#330573) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330573 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Hi,

If you want someone who registers to automatically becomes a partner or to choose, you have the settings:
"Add a 'become a partner' checkbox on the registration form" and "Default value of the partner checkbox" in the "Affiliate" section of the HikaShop configuration.

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 8 months ago [\#330650](#330650) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330650 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

Thanks Nicolas, I am one step closer!
Now...
Is it possible to change the url in the activation email? At the moment it takes me to a blank page with the 'Your account has been successfully activated' message. And, I am automatically logged in, but not on the page I want.
What I'd like it to do it take me to a specific page.
Many thanks
Jo

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

- **[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")**
- [![workingtheweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/51703-workingtheweb "View workingtheweb's Profile") Topic Author
- [ Offline](/forum/user/51703-workingtheweb)

Less More

- Posts: 24
- Thank you received: 2
-
-

5 years 8 months ago [\#330721](#330721) by [workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")  Replied by *[workingtheweb](/forum/user/51703-workingtheweb "View workingtheweb's Profile")* on topic *[How to redirect affiliate on registration](/forum/39-affilation/901975-how-to-redirect-affiliate-on-registration#330721 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 7.9.24 -- PHP version -- : 7.4 -- Browser(s) name and version -- : Opera 74.0.3911.107  Hello How do I redirect new affiliates after the register to become affiliates? These are not customers. Many thanks Jo")*

It's okay, I got it thank you.
I added the following code to the 'activate' file in the 'user' view.

&lt;?php
$app=&amp;JFactory::getApplication();
$app-&gt;redirect('mywebsite.com');
?&gt;

Was that correct? It is working!

Thanks again for the help.

Jo

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM5LWFmZmlsYXRpb24vOTAxOTc1LWhvdy10by1yZWRpcmVjdC1hZmZpbGlhdGUtb24tcmVnaXN0cmF0aW9uP3RtcGw9bWFya2Rvd24=) 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)
