Manu-41 Posted June 4, 2024 Share Posted June 4, 2024 (edited) Bonjour, mes images sont trop petites 45x45 dans BO/COmmande liste des produits de la commande Elles sont générées via /img/tmp/product_mini_1146_0.jpg Je sais qu'il y a une ligne en BO pour modifier la taille 45x45, mais je ne sais plus ou. Je sais aussi qu'après, il fait vider le répertoire tmp. D'où ma question, le chemin pour modifier la taille des images sous 1.7.8? Merci pour votre aide. Edited June 6, 2024 by Manu-41 123 (see edit history) Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 4, 2024 Share Posted June 4, 2024 Bonjour, admin/controllers/admin/AdminCartsController.php lign 281. Changer la valeur 45 par celle souhaitée : $product['image'] = (isset($image['id_image']) ? ImageManager::thumbnail(_PS_IMG_DIR_ . 'p/' . $image_product->getExistingImgPath() . '.jpg', 'product_mini_' . (int) $product['id_product'] . (isset($product['id_product_attribute']) ? '_' . (int) $product['id_product_attribute'] : '') . '.jpg', 45, 'jpg') : '--'); Link to comment Share on other sites More sharing options...
Manu-41 Posted June 4, 2024 Author Share Posted June 4, 2024 Rapide et parfait ! Top Link to comment Share on other sites More sharing options...
Manu-41 Posted June 5, 2024 Author Share Posted June 5, 2024 On 6/4/2024 at 12:40 PM, Mediacom87 said: Bonjour, admin/controllers/admin/AdminCartsController.php lign 281. Changer la valeur 45 par celle souhaitée : $product['image'] = (isset($image['id_image']) ? ImageManager::thumbnail(_PS_IMG_DIR_ . 'p/' . $image_product->getExistingImgPath() . '.jpg', 'product_mini_' . (int) $product['id_product'] . (isset($product['id_product_attribute']) ? '_' . (int) $product['id_product_attribute'] : '') . '.jpg', 45, 'jpg') : '--'); Expand Fausse alerte, je vois ce matin que les images sont de nouveau en 45*45 alors que j'ai bien 100*100 dans mon fichier TPL et j'ai bien créer un nouveau fichier tmp. Y a t'il une autre modif à faire? Link to comment Share on other sites More sharing options...
Manu-41 Posted June 8, 2024 Author Share Posted June 8, 2024 On 6/4/2024 at 12:40 PM, Mediacom87 said: Bonjour, admin/controllers/admin/AdminCartsController.php lign 281. Changer la valeur 45 par celle souhaitée : $product['image'] = (isset($image['id_image']) ? ImageManager::thumbnail(_PS_IMG_DIR_ . 'p/' . $image_product->getExistingImgPath() . '.jpg', 'product_mini_' . (int) $product['id_product'] . (isset($product['id_product_attribute']) ? '_' . (int) $product['id_product_attribute'] : '') . '.jpg', 45, 'jpg') : '--'); Expand Salut Mediacom, j'ai toujours un souci avec les images qui sont floues, et reviennent en 45x45. J'ai pourtant remplacé 45 par 100, et vidé le dossier img/tmp D'où peut venir le problème ? Link to comment Share on other sites More sharing options...
Manu-41 Posted June 17, 2024 Author Share Posted June 17, 2024 Un petit up, j'ai toujours le même problème, certaines images restent en 45x45. Y a t'il un autre fichier à modifier? Link to comment Share on other sites More sharing options...
Manu-41 Posted July 2, 2024 Author Share Posted July 2, 2024 Un petit up, certaines images restent en 45x45. Y a-t-il un autre fichier à modifier ? Merci pour votre aide Link to comment Share on other sites More sharing options...
Asu34 Posted July 2, 2024 Share Posted July 2, 2024 Salut, je sais que j'avais eu ce soucis ai y avais passé un peu de temps. J'ai 3 override sur 3 fichiers là qui m'ont permis régler la modification de ce format d'image initial. \admin\AdminCartsController.php function renderView \admin\AdminOrdersController.php function getProducts & renderView \modules\dashproducts\dashproducts.php function getTableBestSellers & getTableMostViewed Link to comment Share on other sites More sharing options...
Manu-41 Posted July 3, 2024 Author Share Posted July 3, 2024 On 7/2/2024 at 3:55 PM, Asu34 said: Salut, je sais que j'avais eu ce soucis ai y avais passé un peu de temps. J'ai 3 override sur 3 fichiers là qui m'ont permis régler la modification de ce format d'image initial. \admin\AdminCartsController.php function renderView \admin\AdminOrdersController.php function getProducts & renderView \modules\dashproducts\dashproducts.php function getTableBestSellers & getTableMostViewed Expand Salut Asu34, j'ai effectué ces modifications, sauf le fichier admin\AdminOrdersController.php, car je n'en ai pas sur ps 1.7.8.2. Le problème est toujours présent Link to comment Share on other sites More sharing options...
Asu34 Posted July 3, 2024 Share Posted July 3, 2024 Salut, effectivement sur les dernières versions 1.7.8 il n'y ait plus :/. Sur mon PS 1.7.6.7 il y est. Peut-être que sur cette dernière version ça se passe dans le dossier /src ? 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