bretweb Posted November 23, 2014 Share Posted November 23, 2014 (edited) Bonjour suite a mise a jour module un problème d'affichage ! quelqu'un pourrait il me dire pourquoi les nouveaux produist en page d'accueil s'affichent pour la plupart en lien simple sans image ...visible ici : www.caillou-flacoti.com presta V1.5.1 Merci d'avance pour votre aide Edited November 23, 2014 by bretweb (see edit history) Link to comment Share on other sites More sharing options...
Oron Posted November 23, 2014 Share Posted November 23, 2014 Bonjour Dans le texte : Robe molletonnée Tape à l'Oeil 6 mois Robe molletonnée Tape à l'Oeil taille 6 mois. Occasion, très bon état.Lire plusvous n'avez pas d'image, les images dessus ce trouvent entre des balises <li et le texte ci-dessus sont des dl dt dd et sur la 1ere image vous avez une class="first" et sur la 2eme image rien. Il y a une erreur soit dans les balises ou dans le fichier css vérifier sur le code est bon qu'il y a bien des ouverture de balise et des fermeture de balise. Link to comment Share on other sites More sharing options...
bretweb Posted November 24, 2014 Author Share Posted November 24, 2014 (edited) Hello Thank you for your answer ... it was a mistake into my modules and shaked files ... Tha's works now with a specific module named "Homenewproduct" but I would like to radomize new-products can you tell me how here is the normal code: public function hookDisplayHome($params){ if (!$this->isCached('homenewproducts.tpl', $this->getCacheId('homenewproducts'))){ $nb = (int)Configuration::get('HNP_NBR'); $productClass = new Product(); $products = $productClass -> getNewProducts((int)Context::getContext()->language->id,0,($nb ? $nb : 8)); $this->smarty->assign(array( 'products' => $products, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), )); } Can you help me to change to random please Thank you Edited November 24, 2014 by bretweb (see edit history) Link to comment Share on other sites More sharing options...
bretweb Posted November 24, 2014 Author Share Posted November 24, 2014 (edited) OK thank you I found ... Just ad shuffle product on ligne 93 $products = $productClass -> getNewProducts((int)Context::getContext()->language->id,0,($nb ? $nb : 8)); >>>>> shuffle($products); $this->smarty->assign(array( 'products' => $products, 'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'), 'homeSize' => Image::getSize(ImageType::getFormatedName('home')), )); } Thank you Edited November 24, 2014 by bretweb (see edit history) Link to comment Share on other sites More sharing options...
Oron Posted November 24, 2014 Share Posted November 24, 2014 Bonjour Merci de traduire en Français nous sommes sur le forum Francophone 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