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.")

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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