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

#   How to add download file "Description" field to customer's product Download list

##

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

Less More

- Posts: 14
- Thank you received: 1
-
-

9 years 4 months ago [\#274497](#274497) by [TheSiriusLibrary](/forum/user/48849-thesiriuslibrary "View TheSiriusLibrary's Profile")  *[How to add download file "Description" field to customer's product Download list](/forum/33-customers/891245-how-to-add-download-file-description-field-to-customers-product-download-list#274497 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Firefox, Safari  In the customer's Download page, a customer can access their download files for the products they purchased. Currently the table lists the following fields:  Product Files Number of Download Download Number Limit First Purchased at Last Purchased at  I would like to add the Description field to this table. This is the Description field that I specify when I click &quot;Add File&quot; icon for a particular downloadable product that involves various downloadable files. That dialog box, presents entry fields for Name, Set file mode, File, Download number limit, Free Download, and Description. This is the Description field I would like to include in the customer's Product Download list table.  In the Views section, I see there is a download.php file that perhaps can be modified. And it has the following in it for the Downloads table:   pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt; pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;  pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt; pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt; pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;   Can I include the download file 'Description' field there, and if so, what is the code, or field name to use?  Thank you so much for your help.")* was created by *[TheSiriusLibrary](/forum/user/48849-thesiriuslibrary "View TheSiriusLibrary's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 5.6.3
-- Browser(s) name and version -- : Firefox, Safari

In the customer's Download page, a customer can access their download files for the products they purchased. Currently the table lists the following fields:

Product Files Number of Download Download Number Limit First Purchased at Last Purchased at

I would like to add the Description field to this table. This is the Description field that I specify when I click "Add File" icon for a particular downloadable product that involves various downloadable files. That dialog box, presents entry fields for Name, Set file mode, File, Download number limit, Free Download, and Description. This is the Description field I would like to include in the customer's Product Download list table.

In the Views section, I see there is a download.php file that perhaps can be modified. And it has the following in it for the Downloads table:

&lt;tr&gt;
&lt;th class="hikashop_product_name title"&gt;&lt;?php
echo JHTML::_('grid.sort', JText::_('PRODUCT'), 'op.order_product_name', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value );
?&gt;&lt;/th&gt;
&lt;th class="hikashop_file_name title"&gt;&lt;?php
echo JHTML::_('grid.sort', JText::_('HIKA_FILES'), 'f.file_name', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value );
?&gt;&lt;/th&gt;
&lt;th class="hikashop_nb_download title"&gt;&lt;?php
echo JText::_('NB_DOWNLOADED');
?&gt;&lt;/th&gt;
&lt;th class="hikashop_download_limit title"&gt;&lt;?php
echo JHTML::_('grid.sort', JText::_('DOWNLOAD_NUMBER_LIMIT'), 'f.file_limit', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value );
?&gt;&lt;/th&gt;
&lt;th class="hikashop_order_date_title title"&gt;&lt;?php
echo JHTML::_('grid.sort', JText::_('FIRST_PURCHASED_AT'), 'min_order_created', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value );
?&gt;&lt;/th&gt;
&lt;th class="hikashop_order_date_title title"&gt;&lt;?php
echo JHTML::_('grid.sort', JText::_('LAST_PURCHASED_AT'), 'max_order_created', $this-&gt;pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value );
?&gt;&lt;/th&gt;
&lt;/tr&gt;

Can I include the download file 'Description' field there, and if so, what is the code, or field name to use?

Thank you so much for your help.

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

9 years 4 months ago [\#274506](#274506) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add download file "Description" field to customer's product Download list](/forum/33-customers/891245-how-to-add-download-file-description-field-to-customers-product-download-list#274506 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.3 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Firefox, Safari  In the customer's Download page, a customer can access their download files for the products they purchased. Currently the table lists the following fields:  Product Files Number of Download Download Number Limit First Purchased at Last Purchased at  I would like to add the Description field to this table. This is the Description field that I specify when I click &quot;Add File&quot; icon for a particular downloadable product that involves various downloadable files. That dialog box, presents entry fields for Name, Set file mode, File, Download number limit, Free Download, and Description. This is the Description field I would like to include in the customer's Product Download list table.  In the Views section, I see there is a download.php file that perhaps can be modified. And it has the following in it for the Downloads table:   pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt; pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;  pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt; pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt; pageInfo-&gt;filter-&gt;order-&gt;dir,$this-&gt;pageInfo-&gt;filter-&gt;order-&gt;value ); ?&gt;   Can I include the download file 'Description' field there, and if so, what is the code, or field name to use?  Thank you so much for your help.")*

Hi,

If you look below that code in that file, you can see that the file name is accessed with the code:
$downloadFile-&gt;file_name
So for the description, you can use such code:
&lt;?php echo $downloadFile-&gt;file_description; ?&gt;

The following user(s) said Thank You: [TheSiriusLibrary](/forum/user/48849-thesiriuslibrary "View TheSiriusLibrary's Profile")

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

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