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

#   Order number link sent on status update email results in 404 page not found

##

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

Less More

- Posts: 20
- Thank you received: 1
-
-
- [](https://starwoodsystems.com/)
-

6 years 6 months ago [\#318404](#318404) by [speru](/forum/user/26914-speru "View speru's Profile")  *[Order number link sent on status update email results in 404 page not found](/forum/35-orders-management/899732-order-number-link-sent-on-status-update-email-results-in-404-page-not-found#318404 "-- url of the page with the problem -- :   therailwayconductor.co.uk/  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18. -- PHP version -- : 3.9.18. -- Browser(s) name and version -- : Firefox 75.0 (64-bit) -- Error-message(debug-mod must be tuned on) -- : 404  Hi Guys, The notification emails sent to the customer contain a link to the order number. On order creation: &quot;We are pleased to confirm the creation of your order No.xxxx (hyperlink)&quot; eg: /user-control-panel/order/show/cid-0-123/order&#95;token-XYZ This link works and is stored in the SH404sef table. Subsequent changes to the order status sends further notification emails to the customer: On confirmation of order the email states: &quot;The status of your order No. xxxx (hyperlink) has been changed to confirmed.&quot; the url provided for the order number link is now: /component/hikashop/order/show/cid-123/order&#95;token-XYZ This results in a 404 page not found error as the URL is not in the SH404sef SEF url's table On change of status to 'shipped' another notification email is sent to the customer: &quot;The status of your order No. xxxx has been changed to shipped.&quot; the url provided for the order number link is now: /index.php?option=com&#95;hikashop&amp;ctrl=order&amp;task=show&amp;cid&#91;&#93;=123&amp;order&#95;token=XYZ&amp;Itemid=109 This URL also results in a 404 page not found error.  Any ideas / help in providing usuable links on the customer notification emails would be most appreciated. Very best regards Graham Wales")* was created by *[speru](/forum/user/26914-speru "View speru's Profile")*

-- url of the page with the problem -- : [ therailwayconductor.co.uk/](https://therailwayconductor.co.uk/)
-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18.
-- PHP version -- : 3.9.18.
-- Browser(s) name and version -- : Firefox 75.0 (64-bit)
-- Error-message(debug-mod must be tuned on) -- : 404

Hi Guys,
The notification emails sent to the customer contain a link to the order number.
On order creation: "We are pleased to confirm the creation of your order No.xxxx (hyperlink)"
eg: /user-control-panel/order/show/cid-0-123/order_token-XYZ
This link works and is stored in the SH404sef table.
Subsequent changes to the order status sends further notification emails to the customer:
On confirmation of order the email states:
"The status of your order No. xxxx (hyperlink) has been changed to confirmed."
the url provided for the order number link is now:
/component/hikashop/order/show/cid-123/order_token-XYZ
This results in a 404 page not found error as the URL is not in the SH404sef SEF url's table
On change of status to 'shipped' another notification email is sent to the customer:
"The status of your order No. xxxx has been changed to shipped."
the url provided for the order number link is now:
/index.php?option=com_hikashop&amp;ctrl=order&amp;task=show&amp;cid[]=123&amp;order_token=XYZ&amp;Itemid=109
This URL also results in a 404 page not found error.

Any ideas / help in providing usuable links on the customer notification emails would be most appreciated.
Very best regards
Graham Wales

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5OTczMi1vcmRlci1udW1iZXItbGluay1zZW50LW9uLXN0YXR1cy11cGRhdGUtZW1haWwtcmVzdWx0cy1pbi00MDQtcGFnZS1ub3QtZm91bmQ/dG1wbD1tYXJrZG93bg==) 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: 86583
- Thank you received: 14324
-
-

6 years 6 months ago [\#318419](#318419) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order number link sent on status update email results in 404 page not found](/forum/35-orders-management/899732-order-number-link-sent-on-status-update-email-results-in-404-page-not-found#318419 "-- url of the page with the problem -- :   therailwayconductor.co.uk/  -- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18. -- PHP version -- : 3.9.18. -- Browser(s) name and version -- : Firefox 75.0 (64-bit) -- Error-message(debug-mod must be tuned on) -- : 404  Hi Guys, The notification emails sent to the customer contain a link to the order number. On order creation: &quot;We are pleased to confirm the creation of your order No.xxxx (hyperlink)&quot; eg: /user-control-panel/order/show/cid-0-123/order&#95;token-XYZ This link works and is stored in the SH404sef table. Subsequent changes to the order status sends further notification emails to the customer: On confirmation of order the email states: &quot;The status of your order No. xxxx (hyperlink) has been changed to confirmed.&quot; the url provided for the order number link is now: /component/hikashop/order/show/cid-123/order&#95;token-XYZ This results in a 404 page not found error as the URL is not in the SH404sef SEF url's table On change of status to 'shipped' another notification email is sent to the customer: &quot;The status of your order No. xxxx has been changed to shipped.&quot; the url provided for the order number link is now: /index.php?option=com&#95;hikashop&amp;ctrl=order&amp;task=show&amp;cid&#91;&#93;=123&amp;order&#95;token=XYZ&amp;Itemid=109 This URL also results in a 404 page not found error.  Any ideas / help in providing usuable links on the customer notification emails would be most appreciated. Very best regards Graham Wales")*

Hi,

I think that's because sh404SEF is not loaded in the backend. And thus when HikaShop generates the URLs in the backend, sh404SEF doesn't know about them and thus it cannot add them to its cache. And them, when you use the link on the frontend, it doesn't work because sh404SEF doesn't know about them.
This looks like something difficult to fix as it would change the paradigm of the way sh404SEF works.
I would recommend to modify the emails via the menu System&gt;Emails, and change the URL to direct instead the customer to your control panel menu item URL.
So for example, you could change the line:
$url = '&lt;a href="'.$order_url.'"&gt;'. $url.'&lt;/a&gt;';
to:
$url = '&lt;a href="[ therailwayconductor.co.uk/user-control-panel](https://therailwayconductor.co.uk/user-control-panel)"&gt;'. $url.'&lt;/a&gt;';
in the preload of the email.
Now if you have guest checkout activated, that won't work for guest users as they can't access the control panel since they don't have a user account.
In that case, I would recommend to change the text (with a translation override for example) to remove the link.

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

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