Skip to main content

show count download files and hit in frontend

More
11 years 1 week ago #214521 by aminweb
-- 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.

More
11 years 1 week ago #214530 by nicolas
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:
Code:
<?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.

More
11 years 1 week ago #214672 by aminweb
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.

More
11 years 1 week ago #214692 by Jerome
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.

More
10 years 1 month ago #247896 by Abdelmadjid
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.

More
10 years 1 week ago #250225 by Jerome
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.200 seconds
Powered by Kunena Forum