VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: sun0632 on January 15, 2025, 03:02:12 AM

Title: cannot show the picture
Post by: sun0632 on January 15, 2025, 03:02:12 AM
Hi,

My site    https://tobacco1.top/shop.html

Joomla 5.2
vm VirtueMart 4.4.4 11101
Title: Re: cannot show the picture
Post by: sun0632 on January 15, 2025, 03:07:04 AM
picture
Title: Re: cannot show the picture
Post by: sun0632 on January 15, 2025, 03:09:51 AM
Please help .
Title: Re: cannot show the picture
Post by: Jumbo! on January 15, 2025, 07:02:23 AM
In product settings, check the "COM_VIRTUEMART_FILES_FORM_FILE_ISIMAGE" option for the images. The attached screenshot provides a reference.


COM_VIRTUEMART_FILES_FORM_FILE_ISIMAGE_CHECKBOX.png
Title: Re: cannot show the picture
Post by: sun0632 on January 16, 2025, 01:31:07 AM
OK.


Thank you very much.
Title: Re: cannot show the picture
Post by: n3t on February 04, 2025, 13:36:44 PM
Hack that worked for me:
- go to file /administrator/templates/vmadmin/html/com_virtuemart/sublayouts/images.php
- on line 156 change this line
echo VmuikitHtml::row('checkbox', 'COM_VIRTUEMART_FILES_FORM_FILE_ISIMAGE', 'media[is_image]', $VmMediaHandler->is_image);
to this
echo VmuikitHtml::row('checkbox', 'COM_VIRTUEMART_FILES_FORM_FILE_ISIMAGE', 'media[is_image]', $VmMediaHandler->is_image ?? true);