diff --git a/modules/criteo_bbb/criteo_bbb.php b/modules/criteo_bbb/criteo_bbb.php index 8206367d..a4b690d2 100644 --- a/modules/criteo_bbb/criteo_bbb.php +++ b/modules/criteo_bbb/criteo_bbb.php @@ -385,7 +385,7 @@ class Criteo_bbb extends Module } $product_obj = new Product((int)$product['id_product']); $price = $product_obj->getPrice(true, ($product['id_product_attribute'] ? $product['id_product_attribute'] : (int)Product::getDefaultAttribute($product_obj->id)), 2); - $product_result[$products_sales[(int) $product['id_product']]]['price'] += $price * (int) $product['quantity']; + $product_result[$products_sales[(int) $product['id_product']]]['price'] += $price; $product_result[$products_sales[(int) $product['id_product']]]['quantity'] += (int) $product['quantity']; unset($product_obj); } @@ -470,7 +470,7 @@ class Criteo_bbb extends Module } $product_obj = new Product((int)$product['id_product']); $price = $product_obj->getPrice(true, ($product['id_product_attribute'] ? $product['id_product_attribute'] : (int)Product::getDefaultAttribute($product_obj->id)), 2); - $product_result[$products_sales[$product['id_product']]]['price'] += $price * (int) $product['quantity']; + $product_result[$products_sales[$product['id_product']]]['price'] += $price; $product_result[$products_sales[$product['id_product']]]['quantity'] += (int) $product['quantity']; unset($product_obj); }