Jump to content

1.4.8.2 Home Page Featured Product Listing Ascending


Recommended Posts

I have to add the reason why I am not using Back Office > Preferences > Products is because if i set "descending", it sorts in descending order for all categories but sorts the Featured Products at Home page as ascending. So it's kinda a Prestashop bug i need a temp fix for.

Share this post


Link to post
Share on other sites

  • 4 weeks later...

Hello Pressed0024

 

Go to the themes/your theme folder/modules/homefeatured/homefeatured.php in Prestashop 1.4.8.2

 

 

And change the line number 99

 

$products = $category->getProducts((int)($params['cookie']->id_lang), 1, ($nb ? $nb : 10), 'condition', 'DESC');

 

If it doesn't work then go to the modules/homefeaturedproduct/homefeatured.php

 

And change the line number 99

 

$products = $category->getProducts((int)($params['cookie']->id_lang), 1, ($nb ? $nb : 10), 'condition', 'DESC');

 

Change the condition of red color.... I changed it according to my need.

 

I hope it works for you.

 

Thanks

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

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