Jump to content

[free] homepage tab with best sellers for PrestaShop 1.7


Recommended Posts

homepage "best sellers" tab for PrestaShop 1.7

This is free module that creates new "tab" item with most selled products from your online store.

Module uses "homepage tabs" feature that is not available by default in classic theme in PrestaShop but you can easily create it with guide (details about here: homepage tabs feature).


New "tab" item - once clicked will show best sellers from your shop.










Download module:


  • Like 2

Share this post

Link to post
Share on other sites

  • 5 months later...
  • 1 month later...
  • 5 months later...

PS1.7.2.4 (upgraded from PS1.6.0.14)

Getting an error when I Enable this module:


I can get around this by modifying /modules/homebestsellerstab/homebestsellerstab.php, line 231.  Change:

$products_for_template = ProductSale::getBestSalesLight($this->context->language->id, 0, $nProducts);


$products_for_template = ProductSale::getBestSales($this->context->language->id, 0, $nProducts);

(Just getting rid of "Light.")

  • Thanks 1

Share this post

Link to post
Share on other sites

  • 5 months later...
  • 5 months later...
Hi @vekia, thanks for this module. By using your module  v1.3.0 on PS v1.7.4.3 I'm having this alert :
(1/1) ContextErrorException
Notice: Undefined index: unit_price_ratio
So I had to replace into your getProducts function "ProductSale::getBestSalesLight" by "ProductSale::getBestSales" to works without notice.
And in this same function your $nProducts variable is still a string, it will be better to send it as an in integer to the function with "(int)$nProducts" ;)
Hope this helps.

Share this post

Link to post
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More