Jump to content

[SOLVED] new products module doesnt refresh the product name.


Recommended Posts

This issue has now been solved. There was an error on line 69 of modules/homefeatured/homefeatured.php. It was changed from:

$products = Product::getNewProducts(intval($params['cookie']), 0, ($nb ? $nb : 10), false, 'date_add', 'DESC');



to:

$products = Product::getNewProducts(intval($params['cookie']->id_lang), 0, ($nb ? $nb : 10), false, 'date_add', 'DESC');



This line is used to put new products on the homepage instead of featured products. Here's the original line of the featured products that was replaced with the one above:

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

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