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

#   Hits - where is the code for counting hits?

##

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

Less More

- Posts: 112
- Thank you received: 1
-
-

9 years 2 weeks ago [\#281222](#281222) by [darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")  *[Hits - where is the code for counting hits?](/forum/25-install-update/892509-hits-where-is-the-code-for-counting-hits#281222 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.3.1 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : None  Hi,  Many of our products have a huge number of hits.  For my vendors (Hikamarket) they would expect a hit to mean that someone has clicked on one of their products to view the detail.  Where is the code/logic for counting hits?  For example, if I have a random selection of products on my frontpage and keep refreshing it are you counting the display of these random items as hits?  I just need to clarify how the hits counters work.  Thx, Darrell  p.s. not upgrading yet as HikaMarket 1.7.2 breaks the ability for any vendors to log in.")* was created by *[darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.5
-- PHP version -- : 5.6.3.1
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : None

Hi,

Many of our products have a huge number of hits.

For my vendors (Hikamarket) they would expect a hit to mean that someone has clicked on one of their products to view the detail.

Where is the code/logic for counting hits?

For example, if I have a random selection of products on my frontpage and keep refreshing it are you counting the display of these random items as hits?

I just need to clarify how the hits counters work.

Thx, Darrell

p.s. not upgrading yet as HikaMarket 1.7.2 breaks the ability for any vendors to log in.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg5MjUwOS1oaXRzLXdoZXJlLWlzLXRoZS1jb2RlLWZvci1jb3VudGluZy1oaXRzP3RtcGw9bWFya2Rvd24=) 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: 86359
- Thank you received: 14294
-
-

9 years 2 weeks ago [\#281228](#281228) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hits - where is the code for counting hits?](/forum/25-install-update/892509-hits-where-is-the-code-for-counting-hits#281228 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5 -- PHP version -- : 5.6.3.1 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : None  Hi,  Many of our products have a huge number of hits.  For my vendors (Hikamarket) they would expect a hit to mean that someone has clicked on one of their products to view the detail.  Where is the code/logic for counting hits?  For example, if I have a random selection of products on my frontpage and keep refreshing it are you counting the display of these random items as hits?  I just need to clarify how the hits counters work.  Thx, Darrell  p.s. not upgrading yet as HikaMarket 1.7.2 breaks the ability for any vendors to log in.")*

Hi,

We are only counting the display of the product page as a hit.
You can see the code for that in the "hit" function of the file administrator/components/com_hikashop/classes/product.php, which is called in the function "show" of the file components/com_hikashop/views/product/view.html.php

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

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