Manu-41 Posted January 29, 2018 Share Posted January 29, 2018 Bonjour, je voudrais rendre aléatoire les produits qui s'affichent dans le module 'produits de la même catégories (productcategory)). Savez vous comment faire? merci pour votre aide précieuse. cdlt Link to comment Share on other sites More sharing options...
Manu-41 Posted January 29, 2018 Author Share Posted January 29, 2018 j'ai donc trouvé, je donne l'infos: dans le dossier prductcategory, productcateegory.php chercher la ligne: $category_products = $category->getProducts($this->context->language->id, 1, 100); /* 100 products max. */ ajouter en dessous: shuffle($category_products); // organiser les elements du tableau d une façon aleatoire Vider le cache, et cela fonctionne. ceci viens d'un post sur le forum Bonnes ventes Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now