Reputation: 3338
I wanted to display the best selling products in the left column of the prestashop website. Installed best sellers modules and assigned it to the left column but still it dosent display the products in the left tab. Unable to figure out where the mistake is.
Upvotes: 2
Views: 14770
Reputation: 183
For showing Best Sales there is a Prestashop native module blockbestsellers, so this module looking data from ps_product_sale table in database, if this is empty, there is no results and this is why you cant see nothing.
Check ps_product_sale, and if its empty Execute this SQL this for test if you see some result so there is.
INSERT INTO ps_product_sale
(`id_product`, `quantity`, `sale_nbr`, `date_upd`)
VALUES 1, 1, 1, NOW());
Also check classes/ProductSale.php there is some methods to add and get Best Sales Products.
I hope it helps.
Upvotes: 1
Reputation: 352
I believe Best selling products and Top selling products have different functions.
Best-selling products - by PrestaShop Adds a list of the best-selling products to the Stats dashboard.
Top-sellers block - by PrestaShop Adds a block displaying your store's top-selling products.
I have top selling and best selling products installed on my prestashop. Top selling products is the one that is supposed to show the products on front end. The best seller block will appear in the back office dashboard.
You can hook Top-sellers block to left column and it will show the best sellers on your site.
Upvotes: 0