Jump to content

[Solved] Home Page Product Display


Recommended Posts

I think you can change this at your back office.

1. You must know that all product in Home category will be displayed in home page.
You should only add those products to category "Home" that you want them to be displayed at home page
You can do this at back office catalog tab
2. The number of products displayed can be set at following
go Modules tab
look for Featured Products on the homepage module
click configure and set Number of product displayed and save it

Link to comment
Share on other sites

Go to the Preferences > Products tab and change the "Order way" to "Descending". If that doesn't work, or you want to override the setting just for the featured products, change line 72 of modules/homefeatured/homefeatured.tpl from:

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



to:

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

  • Like 2
Link to comment
Share on other sites

  • 11 months later...

Would Ricky's method work on 1.4.6.2? I am unable to find "$products = $category->getProducts(intval($params['cookie']->id_lang), 1, ($nb ? $nb : 10), 'date_add', 'DESC'); under line 72 of modules/homefeatured/homefeatured.tpl . Please help? My features products are showing bunch old products. I want them show newly added products. Thanks!

  • Like 1
Link to comment
Share on other sites

  • 6 months later...

Go to the Preferences > Products tab and change the "Order way" to "Descending". If that doesn't work, or you want to override the setting just for the featured products, change line 72 of modules/homefeatured/homefeatured.tpl from:

 

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

 

to:

 

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

Hi! Rocky.

I get an error message on the top apart of the modules page. Here is the error :

 

Parse error

: syntax error, unexpected $end, expecting T_VARIABLE or T_DOLLAR_OPEN_CURLY_BRACES or T_CURLY_OPEN in

/home/bajudito/public_html/classes/Module.php(492) : eval()'d code(16) : eval()'d code(1) : eval()'d code(2) : eval()'d code

on line

159

 

How can I repair the something wrong? ModulePage_error.jpg

Link to comment
Share on other sites

  • 4 years later...

Hi, May i know how can i change the product list display at Home Page is front latest added to oldest product?

Now all product show in my home page is oldest product...

cry...~

 

you can hardcode the featured products module or install additional modules. Home product categories PRO is one of those, you have many options to customize product list on your home page (display products by categories or display all products)

https://addons.prestashop.com/en/products-homepage/26563-home-product-categories-pro.html

 

This module also provides a "Sort by" option on the frontend, customer can sort the product lists by default product category position, product name (A-Z), new products or random order...

 

Cheer!

 

  • Like 1
Link to comment
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...