[*] BO : Customers KPIs

This commit is contained in:
Damien Metzger
2013-09-24 15:32:05 +02:00
parent a913a43b17
commit 799efcba3f
4 changed files with 154 additions and 22 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ class Dashactivity extends Module
$product_reviews = 0;
if (Module::isInstalled('productcomments'))
{
$new_registrations += Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
$product_reviews += Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
SELECT COUNT(*)
FROM `'._DB_PREFIX_.'product_comment` pc
LEFT JOIN `'._DB_PREFIX_.'product` p ON (pc.id_product = p.id_product)