Commit d5ac75babd3bd60551d78e52e96e1e6cb7a789d9
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
Showing
1 changed file
with
0 additions
and
3 deletions
Show diff stats
src/app/frontend/controllers/MenuController.php
... | ... | @@ -52,9 +52,6 @@ class MenuController extends \controllers\ControllerBase |
52 | 52 | $discount = $this->getDi()->get('models')->getDiscount()->getActiveData(); |
53 | 53 | if (!empty($discount)) { |
54 | 54 | $discount = $discount[0]; |
55 | - $discount['group_ids'] = str_replace('{', '', $discount['group_ids']); | |
56 | - $discount['group_ids'] = str_replace('}', '', $discount['group_ids']); | |
57 | - $discount['group_ids'] = explode(',', $discount['group_ids']); | |
58 | 55 | } |
59 | 56 | if ($this->common->applyPromoCode($discount, $cart['items'])) { |
60 | 57 | $this->common->countOrderSum($cart); | ... | ... |