LordLinhey Posted April 16 Share Posted April 16 I insta;;ed version 8.2.1 and unticked the sample data and now I have got to the point of creating my product list. My first entry in the catalogue list shows a T shirt icon called '1-small_default.jpg' (98 x 98), I was expecting a small logo of the product image. Where do I change this for the real image? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted April 16 Share Posted April 16 Hi, you mean in backoffice? Link to comment Share on other sites More sharing options...
Chun Brawn Posted April 16 Share Posted April 16 yes, product list in backoffice are small_default, you can change resolution in Appareance -> Images Link to comment Share on other sites More sharing options...
Prestashop Addict Posted April 17 Share Posted April 17 (edited) You need to override core code in src/Adapter/Product/Image/ProductImagePathFactory.php public function getPathByType(ImageId $imageId, string $type, string $extension = self::DEFAULT_IMAGE_FORMAT): string { $path = $this->getBaseImagePathWithoutExtension($imageId); return sprintf('%s-%s.%s', $path, $type, $extension); } Edited April 17 by Prestashop Addict (see edit history) 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