This commit is contained in:
Almira Krdzic
2018-09-19 10:52:59 +02:00
parent cae148ebce
commit 85deb1d9f8
11 changed files with 798 additions and 14 deletions

View File

@@ -59,7 +59,7 @@ class Wiaas_Pricing {
$total_item_cost = self::get_product_total_cost($product) * $bundled_item->get_quantity();
if (Wiaas_Product_Category::is_installation($product)) {
$total_cost_per_category[$product_cat] += $total_cost_per_category[$product_cat] < $total_item_cost ?
$total_cost_per_category[$product_cat] = $total_cost_per_category[$product_cat] < $total_item_cost ?
$total_item_cost :
$total_cost_per_category[$product_cat];
} else {