Commit 817a8c231e43ee5d4e77904c817c93ae26376703
1 parent
903c98f7
price display basket
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/app/frontend/controllers/MenuController.php
... | ... | @@ -418,6 +418,8 @@ class MenuController extends \controllers\ControllerBase |
418 | 418 | $discount['discount'] = 0; |
419 | 419 | } |
420 | 420 | |
421 | + $cart_items['total_price'] = round($cart_items['total_price']*(1-$discount['discount']/100), 1); | |
422 | + | |
421 | 423 | foreach($cart_items['items'] as $k => $item) { |
422 | 424 | |
423 | 425 | |
... | ... | @@ -447,7 +449,6 @@ class MenuController extends \controllers\ControllerBase |
447 | 449 | //discount |
448 | 450 | $cart_items['items'][$k]['price'] = round($cart_items['items'][$k]['price']*(1-$discount['discount']/100), 1); |
449 | 451 | $cart_items['items'][$k]['total_price'] = round($cart_items['items'][$k]['total_price']*(1-$discount['discount']/100), 1); |
450 | - $cart_items['total_price'] = round($cart_items['total_price']*(1-$discount['discount']/100), 1); | |
451 | 452 | } |
452 | 453 | } |
453 | 454 | ... | ... |