VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: hazael on June 05, 2023, 13:49:08 PM

Title: product hits [vm 4.0.22]
Post by: hazael on June 05, 2023, 13:49:08 PM
There is a "hits" column in the database in the #_virtuemart_products table. In the entire table, all products are NULL - Nothing changes.
Is there any script in the Virtuemart template that collects this data?

Only this plugin is able to do that? And what about joomla 4 compatibility?
https://forum.virtuemart.net/index.php?topic=132581.0

PS.
I fixed this plugin and it is now compatible with Joomla 4.

In the vm2hits.php file you only need to change               
Quoteif (!$db->query()) die($db->stderr(true));
to:
Quoteif (!$db->execute()) die($db->stderr(true));