fix price
This commit is contained in:
parent
2fe135dbce
commit
854d8fe6f0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user