Commit d95a040abaf239c90abcbbe42ed07bc4bf192860
1 parent
5f87ae9f
vip prices tests
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
src/app/frontend/controllers/MenuController.php
| ... | ... | @@ -411,6 +411,15 @@ class MenuController extends \controllers\ControllerBase |
| 411 | 411 | $special_user = $this->models->getSpecialUsers()->getOneData($special_users_id)[0]; |
| 412 | 412 | } |
| 413 | 413 | |
| 414 | + //vip | |
| 415 | + $users_group_id = $this->session->get('users_group_id'); | |
| 416 | + if (isset($users_group_id) && $users_group_id == 37) { | |
| 417 | + if ($this->common->applyPromoCode(5, $cart_items['items'])) { | |
| 418 | + $this->common->countOrderSum($cart_items); | |
| 419 | + $cart_items['total_price'] = $cart_items['total_sum']; | |
| 420 | + } | |
| 421 | + } | |
| 422 | + | |
| 414 | 423 | //discount |
| 415 | 424 | |
| 416 | 425 | $discount = $this->models->getDiscount()->getActiveData(); | ... | ... |