Jump to content
vekia

[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.


 


 


lft8zri-homepage-promotions-cover-tab.pn


 


 


 


homepage-tab-best-sales-front-office.png


 


 


Download module:


homebestsellerstab.zip

  • Like 2

Share this post


Link to post
Share on other sites

Nice!

 

yess it is :P

i finally fully reproduced the homepage tabs feature and all modules to create it are available for free :-)

Share this post


Link to post
Share on other sites

unfortunately, it is dedicated for tabs feature only

Share this post


Link to post
Share on other sites

PS1.7.2.4 (upgraded from PS1.6.0.14)

Getting an error when I Enable this module:

image.thumb.png.74cce966a9dcea4e5c4bde16736a314b.png

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);

to

$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
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

hi there does it works on prestashop 1.7.5 ?

Share this post


Link to post
Share on other sites

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