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

#   Link product names from front end order view

##

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14073](#14073) by [momentis](/forum/user/364-momentis "View momentis's Profile")  *[Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14073 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")* was created by *[momentis](/forum/user/364-momentis "View momentis's Profile")*

Looking at the front-end view Order-&gt;Show:

The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.

Thanks!
Rick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0MDczLWxpbmstcHJvZHVjdC1uYW1lcy1mcm9tLWZyb250LWVuZC1vcmRlci12aWV3P3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#14089](#14089) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14089 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

Yes, you can change the code:
&lt;?php echo $product-&gt;order_product_name.' '.$product-&gt;order_product_code;

by:

&lt;?php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ?&gt;
&lt;a class="hikashop_order_product_link" href="&lt;?php echo hikashop::completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id); ?&gt;"&gt;
&lt;?php } ?&gt;
&lt;p class="hikashop_order_product_name"&gt;&lt;?php echo $product-&gt;order_product_name; ?&gt;&lt;/p&gt;
&lt;p class="hikashop_order_product_code"&gt;&lt;?php echo $product-&gt;order_product_code; ?&gt;&lt;/p&gt;
&lt;?php if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id)){ ?&gt;
&lt;/a&gt;
&lt;?php }

That's something we will add in HikaShop

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14092](#14092) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14092 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

You are the BEST!!!

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago -  15 years 7 months ago [\#14093](#14093) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14093 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

Sorry, but do I change just that part of the code, or the entire section:

&lt;?php echo $product-&gt;order_product_name.' '.$product-&gt;order_product_code;
if($this-&gt;invoice_type=='order'){ ?&gt;
&lt;p class="hikashop_order_product_custom_item_fields"&gt;
&lt;?php
If(hikashop::level(2) &amp;&amp; !empty($this-&gt;fields)){
foreach($this-&gt;fields as $field){
$namekey = $field-&gt;field_namekey;
echo '&lt;p class="hikashop_order_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$product-&gt;$namekey).'&lt;/p&gt;';
}
}?&gt;

Last edit: 15 years 7 months ago by [momentis](/forum/user/364-momentis "View momentis's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0MDczLWxpbmstcHJvZHVjdC1uYW1lcy1mcm9tLWZyb250LWVuZC1vcmRlci12aWV3P3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#14097](#14097) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14097 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

Just the first line, as explained in my message.

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14161](#14161) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14161 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

Thanks for this. It works perfectly!!!! The only thing I changed was that I commented out the line displaying the product code, because it was not necessary for me. Your level of support continues to amaze me.

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14250](#14250) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14250 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

nicolas,

Related to this - when I view an order in the back end of the site (Sales), the order shows the products list. Is there a way I can adapt the code for this list to link the name to the actual product, displaying it in a pop-up?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0MDczLWxpbmstcHJvZHVjdC1uYW1lcy1mcm9tLWZyb250LWVuZC1vcmRlci12aWV3P3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#14254](#14254) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14254 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

Do you want to display the product options or the product page on the front end ?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14256](#14256) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14256 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

For my purposes, I am looking for this so that people processing orders internally can verify they have the correct product. Even if the pop-up just showed the main product image and name, that would be plenty for my needs. I only mention a pop-up so that I can keep my users within the order, without a lot of back and forth.

The other alternative, which may be easier, would be to display the product thumbnail in the list, especially if clicking on the image can open the full-size image in a pop-up. If that would be easier, that would work just fine for me.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0MDczLWxpbmstcHJvZHVjdC1uYW1lcy1mcm9tLWZyb250LWVuZC1vcmRlci12aWV3P3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#14258](#14258) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14258 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

You can edit the file form of the view order and change the line:
&lt;p class="hikashop_order_item_name"&gt;&lt;?php echo $product-&gt;order_product_name.' '.$product-&gt;order_product_code;?&gt;&lt;/p&gt;

to:
&lt;p class="hikashop_order_item_name"&gt;
&lt;a class="modal" rel="{handler: 'iframe', size: {x: 760, y: 480}}" href="&lt;?php echo hikashop::frontendLink('index.php?option=com_hikashop&amp;ctrl=product&amp;task=show&amp;cid='.$product-&gt;product_id,true); ?&gt;"&gt;
&lt;?php echo $product-&gt;order_product_name.' '.$product-&gt;order_product_code;?&gt;
&lt;/a&gt;
&lt;/p&gt;

and that will display a link with a popup of the product page on the front end

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14260](#14260) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14260 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

I made the change to Views-&gt;Back End-&gt;Order-&gt;Forms as indicated. However, there is no hyperlink. See image.  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/product_link.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/product_link.jpg "&#91;img")

- [ ![product&#95;link.jpg](/forum/attachment/958) ](/forum/attachment/958 "product&#95;link.jpg") [ ](/forum/attachment/958?download=1 "product&#95;link.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE0MDczLWxpbmstcHJvZHVjdC1uYW1lcy1mcm9tLWZyb250LWVuZC1vcmRlci12aWV3P3RtcGw9bWFya2Rvd24=) 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: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#14261](#14261) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14261 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

Could you check that you made your change for the good template ?

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

- **[momentis](/forum/user/364-momentis "View momentis's Profile")**
- [![momentis's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar364.jpg)](/forum/user/364-momentis "View momentis's Profile") Topic Author
- [ Offline](/forum/user/364-momentis)

Less More

- Posts: 202
- Thank you received: 2
-
-

15 years 7 months ago [\#14262](#14262) by [momentis](/forum/user/364-momentis "View momentis's Profile")  Replied by *[momentis](/forum/user/364-momentis "View momentis's Profile")* on topic *[Re: Link product names from front end order view](/forum/4-how-to/14073-link-product-names-from-front-end-order-view#14262 "Looking at the front-end view Order-&gt;Show:  The order displayed on the site shows each product from the order. Is there a way to make the product name a hyperlink to that product in the store? Would be extremely helpful for customers to link back to the products they had ordered.  Thanks! Rick")*

Ahh, that was it. I changed the correct file, but did it under my front end template instead of the admin template. Thanks!!

By the way, it works perfectly and will be a huge help. Thanks!!!!!!!!!!!!

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