public static function getImagesByProductId($id)
{
    $db = Factory::getDBO();
    $q = 'SELECT pi.image' . ' FROM #__phocacart_product_images AS pi' . ' WHERE pi.product_id = ' . (int) $id . ' ORDER BY pi.id';
    $db->setQuery($q);
    $images = $db->loadAssocList();
    return $images;
}