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

#   afficher le nombre de téléchargement

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

14 years 5 months ago [\#54059](#54059) by [Sygg](/forum/user/5554-sygg "View Sygg's Profile")  *[afficher le nombre de téléchargement](/forum/2-general-talk-about-hikashop/54059-afficher-le-nombre-de-telechargement#54059 "bonjours,  je voudrais afficher le nombre de fois que le fichier a été téléchargé, à coté du nom du produit.  merci par avance.")* was created by *[Sygg](/forum/user/5554-sygg "View Sygg's Profile")*

bonjours,

je voudrais afficher le nombre de fois que le fichier a été téléchargé, à coté du nom du produit.

merci par avance.

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

14 years 5 months ago -  14 years 5 months ago [\#54097](#54097) 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 *[Re: afficher le nombre de téléchargement](/forum/2-general-talk-about-hikashop/54059-afficher-le-nombre-de-telechargement#54097 "bonjours,  je voudrais afficher le nombre de fois que le fichier a été téléchargé, à coté du nom du produit.  merci par avance.")*

Bonjour,

Cette fonctionnalité n'est pas incluse dans Hikashop, néanmoins vous pouvez :

- Allez dans "*Hikashop-&gt;Affichage-&gt;Vues*"
- **Éditez** le fichier "show_default" de la vue product du template utilisé
- Ajouter ce bout de code à l'endroit ou vous voulez qu'il soit affiché sur votre page produit :
Code:

&lt;?php $database =&amp; JFactory::getDBO(); $query = 'SELECT file_id FROM '.hikashop_table('file').' WHERE file_ref_id ='. $this-&gt;element-&gt;product_id.' AND file_type= \'file\'';; $database-&gt;setQuery($query); $file_id = $database-&gt;loadResult(); $query = 'SELECT download_number FROM '.hikashop_table('download').' WHERE file_id ='.$file_id; $database-&gt;setQuery($query); $downloadnumber = $database-&gt;loadResult(); if($downloadnumber !=NULL) echo 'téléchargé :'.$downloadnumber.' fois'; else echo 'téléchargé : 0 fois'; ?&gt;

En espérant que cela vous aidera.

Last edit: 14 years 5 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

The following user(s) said Thank You: [Sygg](/forum/user/5554-sygg "View Sygg's Profile")

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

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