Jump to content

[SOLVED] Show the newest 8 featured products on homepage


Recommended Posts

Hello all,


I have a question about the order that is used  for displaying the home featured products. My customer already added about 400 items to category Home and would like on homepage to see the 8 last added products. At the moment it seems to show the the oldest 8. I checked my homefeatured.php file and the category foreach is reversed ($products = array_reverse($category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10))); ).


How can I accompish this - > display on homepage the last 8 products added to category home?


Any help would be highly apprecaited.


Thank you!

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