Gaca Posted May 3, 2021 Share Posted May 3, 2021 Bonjour tous le monde, Quelqu'un c'est comment agrandir les image qui ce trouve ici ? Merci a vos réponse :) Link to comment Share on other sites More sharing options...
Gaca Posted January 23, 2023 Author Share Posted January 23, 2023 Sous prestashop 1,7,7,1 Cordialement Link to comment Share on other sites More sharing options...
lionsteph Posted January 24, 2023 Share Posted January 24, 2023 Bonjour, En se greffant au hook "actionAdminProductsListingResultsModifier" c'est possible : public function hookActionAdminProductsListingResultsModifier(array &$paramsHook){ $image_type = 'small_default'; $context = Context::getContext(); foreach($paramsHook['products'] as &$product){ $productObj = new Product($product['id_product']); $img = $productObj->getCover($productObj->id); $product['image'] = '<img src="' . $context->link->getImageLink($productObj->name[$context->language->id], (int) $img['id_image'], $image_type) . '">'; } } Testé sur une version 1.7.8.7 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