Jump to content

Change Catalogue Icon


LordLinhey

Recommended Posts

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?

small_default icon.JPG

Link to comment
Share on other sites

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 by Prestashop Addict (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...