Jump to content

willekeurige producten


Recommended Posts

Ik ben nieuw in prestashop.  Ik heb in de forum gezien dat ik deze code moet invoegen als ik willekeurige producten wil zien in featured products.

$products = $category->getProducts(intval($params['cookie']->id_lang), 1, 100);
if ($products) {
shuffle($products);
array_splice($products, ($nb ? $nb : 10));
}

Dit zou ik moeten toevoegen in homefeaturedproducts.php.  Maar waar vind ik dit php filetje?

 

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