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

#   Change filename for every prod. on download list

##

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

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#167802](#167802) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#167802 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")* was created by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")*

-- HikaShop version -- : latest

Hi All,
i'd like that in Download list, the filename for download product is the same for all products (something like "Download File".

How can i do this?

Thanks
Andrea

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA0MjItY2hhbmdlLWZpbGVuYW1lLWZvci1ldmVyeS1wcm9kLW9uLWRvd25sb2FkLWxpc3Q/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: 86586
- Thank you received: 14325
-
-

12 years 3 months ago [\#167839](#167839) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#167839 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")*

Hi,

You mean in the "My downloads" list of downloads that you can access via the user control panel on the frontend ?
In that case, you can edit the file "downloads" of the view "user" via the menu Display&gt;views and change the code:
$downloadFile-&gt;file_name

to:
'Download File'

Note that this code is several times in there and you need to replace all of them.

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

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

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#167881](#167881) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#167881 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")*

Ciao Nicolas,
yes, i mean this!

I didn't find the string to replace: ![:P](/media/kunena/emoticons/14.png ":P")

Thanks a lot!

Andrea

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

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

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#168073](#168073) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#168073 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")*

Exactly, where i have to change into the "downloads" of the view "user" via the menu Display&gt;views?

I tried but it dosn't work!
![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA0MjItY2hhbmdlLWZpbGVuYW1lLWZvci1ldmVyeS1wcm9kLW9uLWRvd25sb2FkLWxpc3Q/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: 86586
- Thank you received: 14325
-
-

12 years 3 months ago [\#168083](#168083) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#168083 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")*

Here is where you need to do the change in that view file :
[ take.ms/1aW4j](http://take.ms/1aW4j)
It's not possible that you don't have that code in that file. If you don't see it, it means that you're not editing the correct file.

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

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

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#168156](#168156) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#168156 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")*

Code:

if(in_array(substr($downloadFile-&gt;file_path, 0, 1), array('@', '#')) &amp;&amp; (int)$downloadFile-&gt;file_quantity &gt; 1) { for($i = 1; $i &lt;= (int)$downloadFile-&gt;file_quantity; $i++) { echo '&lt;a href="'.hikashop_completeLink('order&amp;task=download&amp;file_id='.$downloadFile-&gt;file_id.'&amp;order_id='.$order_id.'&amp;file_pos='.$i.$url_itemid).'"&gt;'Download File'&lt;/a&gt;&lt;br/&gt;'; } $fileHtml = ''; } else { $fileHtml = '&lt;a href="'.hikashop_completeLink('order&amp;task=download&amp;file_id='.$downloadFile-&gt;file_id.'&amp;order_id='.$order_id.$file_pos.$url_itemid).'"&gt;'Download File'&lt;/a&gt;'; } } else { $fileHtml = 'Download File';

It doesn't work.
made i some mistake?
Andrea

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84NzA0MjItY2hhbmdlLWZpbGVuYW1lLWZvci1ldmVyeS1wcm9kLW9uLWRvd25sb2FkLWxpc3Q/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: 86586
- Thank you received: 14325
-
-

12 years 3 months ago [\#168165](#168165) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#168165 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")*

Yes. You didn't change $downloadFile-&gt;file_name to 'Download File' but you changed '.$downloadFile-&gt;file_name.' to 'Download File' and thus you broke the PHP code of the file.

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

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

Less More

- Posts: 177
- Thank you received: 1
-
-

12 years 3 months ago [\#168238](#168238) by [andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")  Replied by *[andreasuriani](/forum/user/28733-andreasuriani "View andreasuriani's Profile")* on topic *[Change filename for every prod. on download list](/forum/33-customers/870422-change-filename-for-every-prod-on-download-list#168238 "-- HikaShop version -- : latest  Hi All, i'd like that in Download list, the filename for download product is the same for all products (something like &quot;Download File&quot;.  How can i do this?  Thanks Andrea")*

Thank you nicolas - Works perfectly.

And

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

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