New added product preview image (in 720) is not shown in product details page.

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Sabir_Ali
Posts: 32
Joined: 12 Feb 2024, 06:43

Re: New added product preview image (in 720) is not shown in product details page.

Post by Sabir_Ali » 17 May 2024, 09:44

Yes! It works! :D
Actually I must add all elements and into 'controller' array to make the function to see all of them:

Code: Select all

'controller' => [
            'frontend' => [
                'catalog' => [
                    'levels-always' => 3, // number of category levels for mega menu
                ],
            ],
            'common' => [
                'media' => [
                    'product' => [
                        'previews' => array_merge(config('controller.common.media.product.previews', []), [
                            [
                                'maxwidth' => 240,
                                'maxheight' => 320,
                                'force-size' => 1,
                            ], [
                                'maxwidth' => 480,
                                'maxheight' => 640,
                                'force-size' => 1,
                            ], [
                                'maxwidth' => 720,
                                'maxheight' => 960,
                                'force-size' => 1,
                            ], [
                                'maxwidth' => 960,
                                'maxheight' => 1280,
                                'force-size' => 1,
                            ], [
                                'maxwidth' => 1920,
                            ],
                        ]),
                    ],
                ],
            ],
        ],
That was my mistake to forget the 'controller' key :oops:
Thank You very much!

Post Reply