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

#   link display on Customer Account Orders page

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 3 weeks ago [\#125794](#125794) by [vboz](/forum/user/21341-vboz "View vboz's Profile")  *[link display on Customer Account Orders page](/forum/33-customers/862449-link-display-on-customer-account-orders-page#125794 "Greetings! After a customer who has completed an order then accesses his or her Customer Account, clicks on Orders, chooses a specific order and then sees the product list for that order, I would like to change how the links for the purchased products and their associated files (all products have a downloadable file) are displayed: 1. The product name should NOT be a link. I would like it to be just plain text that doesn't link to anything. (Under the product column in the attached screenshot.) 2. I would like to style the associated file download link with a CSS class. (Under the files column in the attached screenshot.)  I'm guessing this is a matter of editing the proper PHP file(s), but I don't know where to look or how to start going about that. Any help would be greatly appreciated.  Thank you!")* was created by *[vboz](/forum/user/21341-vboz "View vboz's Profile")*

Greetings!
After a customer who has completed an order then accesses his or her Customer Account, clicks on Orders, chooses a specific order and then sees the product list for that order, I would like to change how the links for the purchased products and their associated files (all products have a downloadable file) are displayed:
1. The product name should NOT be a link. I would like it to be just plain text that doesn't link to anything. (Under the product column in the attached screenshot.)
2. I would like to style the associated file download link with a CSS class. (Under the files column in the attached screenshot.)

I'm guessing this is a matter of editing the proper PHP file(s), but I don't know where to look or how to start going about that. Any help would be greatly appreciated.

Thank you!

- [ ![h6c42eab.PNG](/forum/attachment/12589) ](/forum/attachment/12589 "h6c42eab.PNG") [ ](/forum/attachment/12589?download=1 "h6c42eab.PNG")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 3 weeks ago [\#125835](#125835) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[link display on Customer Account Orders page](/forum/33-customers/862449-link-display-on-customer-account-orders-page#125835 "Greetings! After a customer who has completed an order then accesses his or her Customer Account, clicks on Orders, chooses a specific order and then sees the product list for that order, I would like to change how the links for the purchased products and their associated files (all products have a downloadable file) are displayed: 1. The product name should NOT be a link. I would like it to be just plain text that doesn't link to anything. (Under the product column in the attached screenshot.) 2. I would like to style the associated file download link with a CSS class. (Under the files column in the attached screenshot.)  I'm guessing this is a matter of editing the proper PHP file(s), but I don't know where to look or how to start going about that. Any help would be greatly appreciated.  Thank you!")*

Hi,
1. The solution will be to edit the "show" file of the "order" view of your front-end template, and replace this line : Code:

if($this-&gt;invoice_type=='order' &amp;&amp; !empty($product-&gt;product_id))

by : Code:

if(0)

Note that you'll have to do it two times.
2. you can do that by editing this line : Code:

$fileHtml = '&lt;a href="'.hikashop_completeLink('order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$this-&gt;order-&gt;order_id.$file_pos.$url_itemid).'"&gt;'.$file-&gt;file_name.'&lt;/a&gt;';

by : Code:

$fileHtml = '&lt;a class= "YOURCLASS" href="'.hikashop_completeLink('order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$this-&gt;order-&gt;order_id.$file_pos.$url_itemid).'"&gt;'.$file-&gt;file_name.'&lt;/a&gt;';

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 3 weeks ago [\#125957](#125957) by [vboz](/forum/user/21341-vboz "View vboz's Profile")  Replied by *[vboz](/forum/user/21341-vboz "View vboz's Profile")* on topic *[link display on Customer Account Orders page](/forum/33-customers/862449-link-display-on-customer-account-orders-page#125957 "Greetings! After a customer who has completed an order then accesses his or her Customer Account, clicks on Orders, chooses a specific order and then sees the product list for that order, I would like to change how the links for the purchased products and their associated files (all products have a downloadable file) are displayed: 1. The product name should NOT be a link. I would like it to be just plain text that doesn't link to anything. (Under the product column in the attached screenshot.) 2. I would like to style the associated file download link with a CSS class. (Under the files column in the attached screenshot.)  I'm guessing this is a matter of editing the proper PHP file(s), but I don't know where to look or how to start going about that. Any help would be greatly appreciated.  Thank you!")*

THANK YOU!

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

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

[](#top)
