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

#   Customer contact email gives an invalid link

##

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

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 1 month ago -  12 years 1 month ago [\#170412](#170412) by [KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")  *[Customer contact email gives an invalid link](/forum/26-product-category-display/870893-customer-contact-email-gives-an-invalid-link#170412 "-- url of the page with the problem -- :   www.bros.is  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0 -- PHP version -- : 5.5.16 -- Error-message(debug-mod must be tuned on) -- : 404  Hello.  We're having a problem with our user contact emails. The link to the product in the email is wrong.  This is the link it gives:   www.bros.is/product&amp;task=show&amp;cid%5B%5D=723&amp;Itemid=147  This is what the link should be:   www.bros.is/vorulisti/product/723-bolur-value-weight  I've looked in the 'A contact request has been made' file under System - Emails and found this line: $front&#95;product&#95;url = hikashop&#95;frontendLink('product&amp;task=show&amp;cid&#91;&#93;='.$data-&gt;product-&gt;product&#95;id.$url&#95;itemid);  Can I change this line to get the right link?  Edit: Never mind. I changed the line to use Canonical URLs.")* was created by *[KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile")*

-- url of the page with the problem -- : [ www.bros.is](http://www.bros.is)
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.0
-- PHP version -- : 5.5.16
-- Error-message(debug-mod must be tuned on) -- : 404

Hello.

We're having a problem with our user contact emails. The link to the product in the email is wrong.

This is the link it gives:
[ www.bros.is/product&amp;task=show&amp;cid%5B%5D=723&amp;Itemid=147](http://www.bros.is/product&task=show&cid%5B%5D=723&Itemid=147)

This is what the link should be:
[ www.bros.is/vorulisti/product/723-bolur-value-weight](http://www.bros.is/vorulisti/product/723-bolur-value-weight)

I've looked in the 'A contact request has been made' file under System - Emails and found this line:
$front_product_url = hikashop_frontendLink('product&amp;task=show&amp;cid[]='.$data-&gt;product-&gt;product_id.$url_itemid);

Can I change this line to get the right link?

Edit: Never mind. I changed the line to use Canonical URLs.

Last edit: 12 years 1 month ago by [KleanZlate](/forum/user/31768-kleanzlate "View KleanZlate's Profile"). Reason: Fixed the issue

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 1 month ago [\#170425](#170425) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customer contact email gives an invalid link](/forum/26-product-category-display/870893-customer-contact-email-gives-an-invalid-link#170425 "-- url of the page with the problem -- :   www.bros.is  -- HikaShop version -- : 2.3.2 -- Joomla version -- : 3.3.0 -- PHP version -- : 5.5.16 -- Error-message(debug-mod must be tuned on) -- : 404  Hello.  We're having a problem with our user contact emails. The link to the product in the email is wrong.  This is the link it gives:   www.bros.is/product&amp;task=show&amp;cid%5B%5D=723&amp;Itemid=147  This is what the link should be:   www.bros.is/vorulisti/product/723-bolur-value-weight  I've looked in the 'A contact request has been made' file under System - Emails and found this line: $front&#95;product&#95;url = hikashop&#95;frontendLink('product&amp;task=show&amp;cid&#91;&#93;='.$data-&gt;product-&gt;product&#95;id.$url&#95;itemid);  Can I change this line to get the right link?  Edit: Never mind. I changed the line to use Canonical URLs.")*

Hi,

That line should be replaced by the code: Code:

$productClass = hikashop_get('class.product'); $productClass-&gt;addAlias($data-&gt;product); $front_product_url = hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid='.$data-&gt;product-&gt;product_id.'&amp;name='.$data-&gt;product-&gt;alias.$url_itemid);

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

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

[](#top)
