- Posts: 33
- Thank you received: 1
[SOLVED] Backend - Products most viewed
I wondered if it is possible to add some kind of widget to Hikashop in the back-end that let me see what products are viewed the most (so some kind of counter so i can see wich are popular by viewing, not by buying).
I came across this topic that is an little relavant ( it is for the front-end):
www.hikashop.com/en/forum/4-how-to/595-p...iew-on-frontend.html
Hope to hear sone of you
Please Log in or Create an account to join the conversation.
This is not yet possible considering the way the widgets have been created. However it's something we'll think about since it's an interesting data.
You can however create a product listing which is displayed only for admin account and sort the product by "product_hit" (number of click on the product).
Please Log in or Create an account to join the conversation.
I'm away a couple of days, but i think that this will work. If it won't work i will check back in here, and else... Thank you verry much
Please Log in or Create an account to join the conversation.
We added this feature since last time so if you want to test it here are the files.
You have to put them in their respective folders which are:
widget.php in administrator>components>com_hikashop>classes
product.php in administrator>components>com_hikashop>views>dashboard>tmpl
form.php in administrator>components>com_hikashop>views>report>tmpl
view.html.php in administrator>components>com_hikashop>views>report
Do not hesitate to give us some feedbacks!
Attachment not found
Please Log in or Create an account to join the conversation.
But 1 question... When i try to upload the widget.php to administrator/components/com_hikashop/classes, it askes if i wan't to override the file that is already there. Should i answer yes? Or just ignore it?
Please Log in or Create an account to join the conversation.
Now the following question... Where can i find the overview?
Also, i'm missing now the 3th widget that was there. He disapeard after i tryed to change that view and chanelled it... ( so no save )
I've send you an PM eliot with an admin name and pass, so you can take an look...
Hope to hear sone from you guys
-btw- sorry for the bad english
Please Log in or Create an account to join the conversation.
I'm taking a look at your backend and indeed, the option doesn't appears. (EDIT: Indeed I think you didn't replaced the form.php since there is a JS error about an id)
Could you send me a FTP access so I can check the uploaded files?
Also, what was the disappeared widget? Did you checked that it's not just one of the unpublished widget?
The database isn't affected by the changes so the widget is probably still there
Please Log in or Create an account to join the conversation.
I've send you the FTP login credentials.
The widget that is gone is the one that vieuws the best selled artikel, and best customer and so on....
Hope that this is enough info, and else i will hear it.
Thank you for your patience
Please Log in or Create an account to join the conversation.
My bad, one line was missing in the file I gave you, I don't know why...
I configured you a widget with the most clicked product this month so you can take a look.
About your widget, I guess it was the "main statistics". Indeed, it's not here anymore... I guess a database access will help me see if it's still there.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I've looked at the EDIT of it, because i thought that i would need to put somewhere an checkbox or something like that.
It wasn't there, so then i pressed cancel, and then it was gone...
Please Log in or Create an account to join the conversation.
anyway, I recreated the widget, everything should be fine now.
Tell me if it's ok for you
Please Log in or Create an account to join the conversation.
Thank you so very much for your support and patience. I telled my client that the plugin was installed, so se will take a look at it in a couple of hours.
How do you want that i report back to you guys about this? ( if it is good or not? ) Report here or an PM?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Mayby i overlooked something, but there are only 2 articels shown in the overview. But it the config of it does it says that the max is 7... And I, my client and probably some customers did look yesterday and today to some articles, but the aren't in the overview...
So my client and i think that there is something wrong... What do you guys think???
Keep up the good work

Marc
Please Log in or Create an account to join the conversation.
I just took a look and it seems the configuration of the widget had been changed to the period "last 24h".
That's probably why it was displaying only few products. I put it back to "this month" (which means from march 1) and you know have more product displayed.
Please Log in or Create an account to join the conversation.
The widget looks very nice now.
Again, thank you verry much for the SUPER support :woohoo:
Please Log in or Create an account to join the conversation.
i'm back again.
Here are the words of my client:
"It is only the items ordered that are indicated."
Can you confirm that that's true, or is there something wrong???
Please Log in or Create an account to join the conversation.
Yes, only the ordered items are indicated in the reports since the reporting system bases itself of the sales to generate the graphs and listings.
Please Log in or Create an account to join the conversation.