Forums

Virtuemart product images

sottolinea 27 Nov, 2019
Hi,
i'm still using Chrono Connectivity 4.0.1.
I need to display Virtuemart product images.
In Frontend list settings->custom listing settings
i put this code:
<?php
if (!class_exists('VmConfig'))
require(JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/config.php');
$product = $productModel->getProduct($row['tb']['product_id']);
$productModel->addImages($product);
?>
<img class="img-thumbnail" src="<?php echo $product->images[0]->getFileUrlThumb()  ?>" />
The thumbnail is printed correctly but i get this notice in system message window:

Info: COM_VIRTUEMART_MEDIA_NO_PATH_TYPE


wich is related to missing media configuration. The configuration is instead correct and images are loaded correctly everywhere.
Any hint?
Thank you!
This topic is locked and no more replies can be posted.