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

#   show count download files and hit in frontend

##

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile") Topic Author
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

11 years 2 months ago [\#214521](#214521) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  *[show count download files and hit in frontend](/forum/31-development/879333-show-count-download-files-and-hit-in-frontend#214521 "-- Joomla version -- : 3 -- PHP version -- : 5.4  hi i want show count download files (for e.x: count downladed:12) and show hit(for e.x: hits:57) in product detail page in frontend please help me")* was created by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")*

-- Joomla version -- : 3
-- PHP version -- : 5.4

hi
i want show count download files (for e.x: count downladed:12) and show hit(for e.x: hits:57)
in product detail page in frontend
please help me

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg3OTMzMy1zaG93LWNvdW50LWRvd25sb2FkLWZpbGVzLWFuZC1oaXQtaW4tZnJvbnRlbmQ/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: 86583
- Thank you received: 14324
-
-

11 years 2 months ago [\#214530](#214530) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[show count download files and hit in frontend](/forum/31-development/879333-show-count-download-files-and-hit-in-frontend#214530 "-- Joomla version -- : 3 -- PHP version -- : 5.4  hi i want show count download files (for e.x: count downladed:12) and show hit(for e.x: hits:57) in product detail page in frontend please help me")*

Hi,

The count of the number of downloads is not already calculated. So it would require running a complex MySQL query to do the sum based on the orders and then display it. If you're not a developer, you'll want one to help you with that.
The number of hits is however already available, so you can easily display it by simply adding such code in the file "show_default" via the menu Display&gt;Views: Code:

&lt;?php echo $this-&gt;element-&gt;product_hit; ?&gt;

The following user(s) said Thank You: [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")

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

- **[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")**
- [![aminweb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38602.png)](/forum/user/38602-aminweb "View aminweb's Profile") Topic Author
- [ Offline](/forum/user/38602-aminweb)
- Amin

Less More

- Posts: 138
- Thank you received: 4
-
-
-

11 years 2 months ago [\#214672](#214672) by [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")  Replied by *[aminweb](/forum/user/38602-aminweb "View aminweb's Profile")* on topic *[show count download files and hit in frontend](/forum/31-development/879333-show-count-download-files-and-hit-in-frontend#214672 "-- Joomla version -- : 3 -- PHP version -- : 5.4  hi i want show count download files (for e.x: count downladed:12) and show hit(for e.x: hits:57) in product detail page in frontend please help me")*

very thnx nicolas,
how displayed count orders?insteat of count download

---

Joomla Developer \| am.ebrahimzadeh\[at\]gmail.com

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#214692](#214692) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[show count download files and hit in frontend](/forum/31-development/879333-show-count-download-files-and-hit-in-frontend#214692 "-- Joomla version -- : 3 -- PHP version -- : 5.4  hi i want show count download files (for e.x: count downladed:12) and show hit(for e.x: hits:57) in product detail page in frontend please help me")*

Hi,

"product_sales"

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [aminweb](/forum/user/38602-aminweb "View aminweb's Profile")

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

- **[Abdelmadjid](/forum/user/37612-abdelmadjid "View Abdelmadjid's Profile")**
- [![Abdelmadjid's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/blue_hikashop_heart.png)](/forum/user/37612-abdelmadjid "View Abdelmadjid's Profile")
- [ Offline](/forum/user/37612-abdelmadjid)

Less More

- Posts: 1
- Thank you received: 0
-
-
- [](http://tidjaramarket.com)
-

10 years 3 months ago [\#247896](#247896) by [Abdelmadjid](/forum/user/37612-abdelmadjid "View Abdelmadjid's Profile")  Replied by *[Abdelmadjid](/forum/user/37612-abdelmadjid "View Abdelmadjid's Profile")* on topic *[show count download files and hit in frontend](/forum/31-development/879333-show-count-download-files-and-hit-in-frontend#247896 "-- Joomla version -- : 3 -- PHP version -- : 5.4  hi i want show count download files (for e.x: count downladed:12) and show hit(for e.x: hits:57) in product detail page in frontend please help me")*

Hello,
I have the same problem, I want to see statistics for click and display of each product in the public part, and I do not know where I should put the code in any line.

thanks in advance

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#250225](#250225) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[show count download files and hit in frontend](/forum/31-development/879333-show-count-download-files-and-hit-in-frontend#250225 "-- Joomla version -- : 3 -- PHP version -- : 5.4  hi i want show count download files (for e.x: count downladed:12) and show hit(for e.x: hits:57) in product detail page in frontend please help me")*

Hi,

Sorry for the delay, your unapproved message wasn't visible in our ticket system.
You will find details in the Nicolas' message for the line you can use to display the "product hit".
The where is also explained by Nicolas

> The number of hits is however already available, so you can easily display it by simply adding such code in the file "show\_default" via the menu Display&gt;Views:

For more details about view override, you can check that documentation page :
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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