Back to PhocacartProduct class

Method getProductCount

public static
getProductCount
()

Method getProductCount - Source code

public static function getProductCount()
{
    $db = Factory::getDBO();
    $query = 'SELECT COUNT(*) FROM #__phocacart_products';
    $db->setQuery($query);
    $count = $db->loadResult();
    return $count;
}