I'm just getting familiar with Phoca Cart and noticed that the system stores each image in four versions: the original one plus S, M and L thumbnails.
In my case there are around 20,000 products with roughly 60,000 images, which means over 240,000 files in total.
For the frontend I’m using YOOtheme Pro + PCuikit, which already generates its own optimized responsive images.
So as far as I understand, those Phoca thumbnails are not really needed for the frontend (since YOOtheme handles optimization and srcset generation automatically).
However, I can see that the thumbnails are used in the admin area (e.g. product list previews).
I was wondering — would it be possible to disable thumbnail generation, or maybe generate only one size (like the small one)?
I noticed that there’s an internal enable_thumb_creation parameter in the code, but it’s not exposed in the component config.
As a quick workaround, I managed to disable it completely using my custom system plugin:
Code: Select all
public function onAfterInitialise() {
\PhocacartUtils::getComponentParameters()->set('enable_thumb_creation', 0);
}That works fine, but obviously turns off all thumbnail creation.
So my question is:
Is there any way to disable only some of the sizes (e.g. keep S but skip M and L)?
Or maybe a fallback mechanism where, if no thumbnail exists, Phoca Cart just uses the original image (even if that means wblury image), or perhaps generates the missing and neccessary thumbnails on the fly?
Thanks a lot

