-- HikaShop version -- : 4.4.5
-- Joomla version -- : 4.1
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox
Hi,
I need to implement 2 sets of images for product display (in 2 different places). I don't know in advance how many images there will be in each set.
For the first set of images, I can use the normal product image field.
For the second image set, I investigated the custom field image (AJAX) that allows backend users to upload and delete images. The issue is that I cannot use the images form that field in my template overrides like the normal images. I have custom code that uses
$this->image->getThumbnail(@$secondaryImage, array('width' => 2000, 'height' => 2000), $image_options);
to build urls and create thumbnails for responsive images (using srcset).
The main issue I have is that the images from the custom field are uploaded to the safe folder and it is protected with the .htaccess
Is there a way to upload these images to the images\com_hikashop\upload folder instead ?
That would allow me to create thumbnails and use them in my template overrides like the normal product image field.
If there is another way to manage multiple sets of images that I overlooked (without custom fields) I would be happy to try. The most user friendly solution would be to duplicate the normal product image field but I have no Idea if it is possible.