Closed getdatakick closed 5 years ago
Prestashop 1.7.5.0 only issue. Since 1.7.5.0 hooks receive ProductLazyArray object instead of Product object, and that causes problems inside hookDisplayProductListReviews hook.
ProductLazyArray
Product
hookDisplayProductListReviews
Proposed fix: change
$productId = self::getProductId($params['product']);
to
$productId = $params['product']->getId();
Prestashop 1.7.5.0 only issue. Since 1.7.5.0 hooks receive
ProductLazyArray
object instead ofProduct
object, and that causes problems insidehookDisplayProductListReviews
hook.Proposed fix: change
to