Product Popularity Calculation

Does any one know how the calculation of Popularity of the Products happen ?

Does any one know how the calculation of Popularity of the Products happen ?

It is very simple. When you view product details page, add product to cart or place order, the product popularity is increased by 1

Not sure I have seen a factor of 3 instead , do you know where this code is ?

Check the following files:

app/functions/fn.catalog.php

app/functions/fn.cart.php

app/controllers/frontend/products.php

Make a search by "product_populraity"

Thanks its

View = 3 , Add to Cart = 5, Delete from cart = 5, Buy = 10

Thanks its

View = 3 , Add to Cart = 5, Delete from cart = 5, Buy = 10

You can edit it if necessary in this part of code:

//Popularity rating
define('POPULARITY_VIEW', 3);
define('POPULARITY_ADD_TO_CART', 5);
define('POPULARITY_DELETE_FROM_CART', 5);
define('POPULARITY_BUY', 10);

in the config.php file.