Plugin for Webasyst Shop-Script 6 that keeps track of hits of products by users and shows most viewed products
...
-
Get the code into your web server's folder /PATH_TO_WEBASYST/wa-apps/shop/plugins
-
Add the following line into the /PATH_TO_WEBASYST/wa-config/apps/shop/plugins.php file (this file lists all installed shop plugins):
'mostviewedproducts' => true,
-
Done. Configure the plugin in the plugins settings tab of shop backend.
To output the array with most viewed products in shop frontend paste in the template the following code: {shopMostviewedproductsPlugin::getMostViewedProducts($count)}
Where $count is a number of array elements