show count download files and hit in frontend

  • Posts: 138
  • Thank you received: 4
9 years 2 months ago #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


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

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 2 months ago #214530

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>Views:

<?php echo $this->element->product_hit; ?>

The following user(s) said Thank You: aminweb

Please Log in or Create an account to join the conversation.

  • Posts: 138
  • Thank you received: 4
9 years 2 months ago #214672

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


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

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #214692

Hi,

"product_sales"

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: aminweb

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
8 years 3 months ago #247896

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 or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #250225

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>Views:

For more details about view override, you can check that documentation page :
www.hikashop.com/support/documentation/1...-display.html#layout

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum