Does anyone know how to link a product with its picture in VirtueMart in Joomla?
I've tried :
$query = "SELECT a., c.". " FROM #__virtuemart_products_pl_pl as a". " LEFT JOIN #__virtuemart_medias as c ON c.virtuemart_media_id = a.virtuemart_product_id" ;
But its not good, pictures and products don't match.
I don't see any connection between them.