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

#   Email notification URL for guest access

##

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

Less More

- Posts: 8
- Thank you received: 2
-
-

3 years 4 months ago [\#352598](#352598) by [drop](/forum/user/46167-drop "View drop's Profile")  *[Email notification URL for guest access](/forum/33-customers/906581-email-notification-url-for-guest-access#352598 "Hello. I am trying to configure guest checkout on new project. I can get URL for guest access when emailing customers with Order&#95;status&#95;notification. Url is something like that: index.php?option=com&#95;hikashop&amp;ctrl=order&amp;task=show&amp;cid&#91;&#93;=666&amp;order&#95;token=CUHbDhtg&amp;Itemid=999 But when I try with Order&#95;notification (mail button in orders backend) I get same URL but without &quot;order&#95;token&#95;CUHbDhtg&quot; part. And as a result URL does not work properly. I can see that in both mail templates URL is handled by $data-&gt;order&#95;url, and giving different results.")* was created by *[drop](/forum/user/46167-drop "View drop's Profile")*

Hello.
I am trying to configure guest checkout on new project.
I can get URL for guest access when emailing customers with Order_status_notification. Url is something like that:
index.php?option=com_hikashop&amp;ctrl=order&amp;task=show&amp;cid[]=666&amp;order_token=CUHbDhtg&amp;Itemid=999
But when I try with Order_notification (mail button in orders backend) I get same URL but without "order_token_CUHbDhtg" part. And as a result URL does not work properly.
I can see that in both mail templates URL is handled by $data-&gt;order_url, and giving different results.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDY1ODEtZW1haWwtbm90aWZpY2F0aW9uLXVybC1mb3ItZ3Vlc3QtYWNjZXNzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

3 years 3 months ago [\#352604](#352604) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email notification URL for guest access](/forum/33-customers/906581-email-notification-url-for-guest-access#352604 "Hello. I am trying to configure guest checkout on new project. I can get URL for guest access when emailing customers with Order&#95;status&#95;notification. Url is something like that: index.php?option=com&#95;hikashop&amp;ctrl=order&amp;task=show&amp;cid&#91;&#93;=666&amp;order&#95;token=CUHbDhtg&amp;Itemid=999 But when I try with Order&#95;notification (mail button in orders backend) I get same URL but without &quot;order&#95;token&#95;CUHbDhtg&quot; part. And as a result URL does not work properly. I can see that in both mail templates URL is handled by $data-&gt;order&#95;url, and giving different results.")*

Hi,

Thank you for your feedback.
That's something no one had reported so far.
Add the code: Code:

if(empty($element-&gt;customer-&gt;user_cms_id)) { $url.='&amp;order_token='.$element-&gt;order_token; }

before the line: Code:

$element-&gt;order_url = hikashop_contentLink('order&amp;task=show&amp;cid[]='.$element-&gt;order_id.$url, $element, false, false, false, true);

in the file administrator/components/com_hikashop/classes/order.php and it should fix the problem.
We'll include the patch on our end for the next version of HikaShop.

The following user(s) said Thank You: [drop](/forum/user/46167-drop "View drop's Profile")

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

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

[](#top)
