Commit aa0b66d523319e4824194ea165fc1ddeca43226f

Authored by Alex Savenko
2 parents 4580f272 941f43ed

Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/app/frontend/controllers/MenuController.php
... ... @@ -446,6 +446,7 @@ class MenuController extends \controllers\ControllerBase
446 446 $cart_items['items'][$k]['price'] = $item['price2'];
447 447 //discount
448 448 $cart_items['items'][$k]['price'] = round($cart_items['items'][$k]['price']*(1-$discount['discount']/100), 1);
  449 + $cart_items['items'][$k]['total_price'] = round($cart_items['items'][$k]['total_price']*(1-$discount['discount']/100), 1);
449 450 $cart_items['total_price'] = round($cart_items['total_price']*(1-$discount['discount']/100), 1);
450 451 }
451 452 }
... ...