Merge pull request #831 from indesign47/patch-7
[-] MO : productcomments round average up not down
This commit is contained in:
commit
6f878353a6
1 file changed
+1
-1
@@ -713,7 +713,7 @@ class ProductComments extends Module
|
|||||||
'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
|
'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
|
||||||
'criterions' => ProductCommentCriterion::getByProduct((int)Tools::getValue('id_product'), $this->context->language->id),
|
'criterions' => ProductCommentCriterion::getByProduct((int)Tools::getValue('id_product'), $this->context->language->id),
|
||||||
'action_url' => '',
|
'action_url' => '',
|
||||||
'averageTotal' => (int)$average['grade'],
|
'averageTotal' => round($average['grade']),
|
||||||
'too_early' => ($customerComment && (strtotime($customerComment['date_add']) + Configuration::get('PRODUCT_COMMENTS_MINIMAL_TIME')) > time()),
|
'too_early' => ($customerComment && (strtotime($customerComment['date_add']) + Configuration::get('PRODUCT_COMMENTS_MINIMAL_TIME')) > time()),
|
||||||
'nbComments' => (int)(ProductComment::getCommentNumber((int)Tools::getValue('id_product')))
|
'nbComments' => (int)(ProductComment::getCommentNumber((int)Tools::getValue('id_product')))
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in new issue
Block a user