mmomobis Posted December 31, 2012 Share Posted December 31, 2012 (edited) Salut, Voilà un bug sur ce module natif de prestashop (crossseling), les images ne s'affichent plus depuis la mise à jour, en regardant de plus près, les liens vers le répertoire des images concernées, n'est pas bon du tout... quelqu'un à une idée ? ci jont un screen, merciiii Edited December 31, 2012 by mmomobis (see edit history) Link to comment Share on other sites More sharing options...
rom1z Posted January 1, 2013 Share Posted January 1, 2013 Même souci avec le module Link to comment Share on other sites More sharing options...
btsconsult Posted January 1, 2013 Share Posted January 1, 2013 Bonjour, Essaie de le désactiver pour l'activer ensuite, parfois ça marche ! 13 bonne année Link to comment Share on other sites More sharing options...
mmomobis Posted January 1, 2013 Author Share Posted January 1, 2013 Salut, Après inspection du code, voici la correction (c'est bien le code qui est en cause, suite aux diverses modifs...) à la ligne 161 remplacer : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium')); par : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium_default')); à la ligne 215 remplacer : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium')); par : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], 'medium_default'); voilà ça devrait fonctionner, chez moi ça fonctionne en tous les cas (au besoin vider le cache...) @++ Link to comment Share on other sites More sharing options...
rom1z Posted January 1, 2013 Share Posted January 1, 2013 ça fonctionne chez moi, Merci beaucoup Link to comment Share on other sites More sharing options...
erotikat Posted January 4, 2013 Share Posted January 4, 2013 Bonjour, J'ai eu le même problème mais je n'ai pas apporté les mêmes modifications et j'ai ouvert un bug tracker car c'est une nouvelle fonction de la classe ImageType. Vous pouvez le suivre ici http://forge.prestashop.com/browse/PSCFV-6400?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel#issue-tabs Avec votre méthode il faudra modifier toutes les pages qui appellerons cette nouvelle fonction par la suite. Link to comment Share on other sites More sharing options...
dsilvestre Posted January 19, 2013 Share Posted January 19, 2013 Merci Mmomobis, ta technique a fonctionné parfaitement pour moi. Depuis le temps que je cherchais comment refaire fonctionner le module Salut, Après inspection du code, voici la correction (c'est bien le code qui est en cause, suite aux diverses modifs...) à la ligne 161 remplacer : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium')); par : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium_default')); à la ligne 215 remplacer : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], ImageType::getFormatedName('medium')); par : $orderProduct['image'] = $this->context->link->getImageLink($orderProduct['link_rewrite'], (int)$orderProduct['product_id'].'-'.(int)$orderProduct['id_image'], 'medium_default'); voilà ça devrait fonctionner, chez moi ça fonctionne en tous les cas (au besoin vider le cache...) @++ Link to comment Share on other sites More sharing options...
mmomobis Posted January 19, 2013 Author Share Posted January 19, 2013 nikel, ça permet de "colmater" en attendant des modifs officielles... Link to comment Share on other sites More sharing options...
dsilvestre Posted January 23, 2013 Share Posted January 23, 2013 Pour info, le bug est toujours visible sur la page de la commande. Link to comment Share on other sites More sharing options...
tatatesardine Posted March 6, 2013 Share Posted March 6, 2013 Bonjour Merci pour l info ! y a til un moyen pour limiter le nombre de produits ? 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