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

#   Registration activation-link uses wrong template.

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

14 years 9 months ago [\#34968](#34968) by [henry](/forum/user/5408-henry "View henry's Profile")  *[Registration activation-link uses wrong template.](/forum/4-how-to/34968-registration-activation-link-uses-wrong-template#34968 "Hi there,  I am using Hikashop and basically my shop is setup, but there is still one small bug, which I cant fix. If a user registers and receives his activation link via E-Mail and clicks on it, a page appears with an error-message. The error is basically, that the link is using a different template-style, than the shop and this template-style does not work with hikashop. Now my question is, how do I change the template, that Hikashop is using for this?  I have the same problem with order-links...  Can anybody help me?  Thanks a lot!!")* was created by *[henry](/forum/user/5408-henry "View henry's Profile")*

Hi there,

I am using Hikashop and basically my shop is setup, but there is still one small bug, which I cant fix.
If a user registers and receives his activation link via E-Mail and clicks on it, a page appears with an error-message.
The error is basically, that the link is using a different template-style, than the shop and this template-style does not work with hikashop.
Now my question is, how do I change the template, that Hikashop is using for this?

I have the same problem with order-links...

Can anybody help me?

Thanks a lot!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0OTY4LXJlZ2lzdHJhdGlvbi1hY3RpdmF0aW9uLWxpbmstdXNlcy13cm9uZy10ZW1wbGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

14 years 9 months ago [\#35004](#35004) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Registration activation-link uses wrong template.](/forum/4-how-to/34968-registration-activation-link-uses-wrong-template#35004 "Hi there,  I am using Hikashop and basically my shop is setup, but there is still one small bug, which I cant fix. If a user registers and receives his activation link via E-Mail and clicks on it, a page appears with an error-message. The error is basically, that the link is using a different template-style, than the shop and this template-style does not work with hikashop. Now my question is, how do I change the template, that Hikashop is using for this?  I have the same problem with order-links...  Can anybody help me?  Thanks a lot!!")*

Hi,

That's because of the Itemid parameter in that URL.
Please edit the file administrator/components/com_hikashop/classes/user.php and change the line:
$this-&gt;registerData-&gt;activation_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=activate&amp;activation='.$user-&gt;get('activation').'&amp;infos='.$vars.'&amp;page='.$page.'&amp;id='.$this-&gt;user_id;

to:
global $Itemid;
$url = '';
if(!empty($Itemid)){
$url='&amp;Itemid='.$Itemid;
}
$this-&gt;registerData-&gt;activation_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=activate&amp;activation='.$user-&gt;get('activation').'&amp;infos='.$vars.'&amp;page='.$page.'&amp;id='.$this-&gt;user_id.$url;

And try again to register via HikaShop. That should give an activation link with the current template selected.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0OTY4LXJlZ2lzdHJhdGlvbi1hY3RpdmF0aW9uLWxpbmstdXNlcy13cm9uZy10ZW1wbGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 3
- Thank you received: 0
-
-

13 years 3 months ago [\#113677](#113677) by [essam](/forum/user/15104-essam "View essam's Profile")  Replied by *[essam](/forum/user/15104-essam "View essam's Profile")* on topic *[Re: Registration activation-link uses wrong template.](/forum/4-how-to/34968-registration-activation-link-uses-wrong-template#113677 "Hi there,  I am using Hikashop and basically my shop is setup, but there is still one small bug, which I cant fix. If a user registers and receives his activation link via E-Mail and clicks on it, a page appears with an error-message. The error is basically, that the link is using a different template-style, than the shop and this template-style does not work with hikashop. Now my question is, how do I change the template, that Hikashop is using for this?  I have the same problem with order-links...  Can anybody help me?  Thanks a lot!!")*

I did substitute the code but still the same problem , I believe that the normal link should be like this

...../index.php/login?view=registration --- like example

whereas the abnormal link which causes the template mistake is

...../index.php/shop-login?view=registration

by the way I found the two line of code you mentioned are matched , so no need to edit them , I think that the problem because of another thing , maybe template override . I m not sure but I will keep on finding the solution and return back here to post .

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0OTY4LXJlZ2lzdHJhdGlvbi1hY3RpdmF0aW9uLWxpbmstdXNlcy13cm9uZy10ZW1wbGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14280
-
-

13 years 3 months ago [\#113741](#113741) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Registration activation-link uses wrong template.](/forum/4-how-to/34968-registration-activation-link-uses-wrong-template#113741 "Hi there,  I am using Hikashop and basically my shop is setup, but there is still one small bug, which I cant fix. If a user registers and receives his activation link via E-Mail and clicks on it, a page appears with an error-message. The error is basically, that the link is using a different template-style, than the shop and this template-style does not work with hikashop. Now my question is, how do I change the template, that Hikashop is using for this?  I have the same problem with order-links...  Can anybody help me?  Thanks a lot!!")*

login and shop-login are two different menu items on your website.
HikaShop needs to link to the activation page of HikaShop so the id has to be a menu item of the type hikashop something.
If your login menu item is not a hikashop type menu item, you won't be able to use it even if you modify the code to force the id of the Itemid parameter of the URL there.
I guess the best would be to simply assign the template you want to the shop-login menu item.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM0OTY4LXJlZ2lzdHJhdGlvbi1hY3RpdmF0aW9uLWxpbmstdXNlcy13cm9uZy10ZW1wbGF0ZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.050 seconds

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