public static function getImageByProductId($id)
{
$db = Factory::getDBO();
$q = 'SELECT p.image' . ' FROM #__phocacart_products AS p' . ' WHERE p.id = ' . (int) $id . ' ORDER BY p.id' . ' LIMIT 1';
$db->setQuery($q);
$image = $db->loadResult();
return $image;
}