diff --git a/src/app/frontend/views/page/changeWithSize.php b/src/app/frontend/views/page/changeWithSize.php index e38ec1b..a7d97bf 100644 --- a/src/app/frontend/views/page/changeWithSize.php +++ b/src/app/frontend/views/page/changeWithSize.php @@ -10,7 +10,7 @@ if(isset($special_user)) { //vip if (isset($users_group_id) && isset($users_group_discount)) { - $data['price'] = round($data['price']*($users_group_discount/100), 1); + $data['price'] = round($data['price']*(1-$users_group_discount/100), 1); } //discount diff --git a/src/app/frontend/views/page/item.php b/src/app/frontend/views/page/item.php index 926f498..1f564f0 100644 --- a/src/app/frontend/views/page/item.php +++ b/src/app/frontend/views/page/item.php @@ -205,7 +205,7 @@