Commit a413d3ce6c98a0a0f12aef8383b1a7d2ba03daa1
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
@@ -139,6 +139,10 @@ | @@ -139,6 +139,10 @@ | ||
139 | $discount = $this->models->getDiscount()->getActiveData(); | 139 | $discount = $this->models->getDiscount()->getActiveData(); |
140 | if (!empty($discount)) { | 140 | if (!empty($discount)) { |
141 | $discount = $discount[0]; | 141 | $discount = $discount[0]; |
142 | + $discount['group_ids'] = str_replace('{', '', $discount['group_ids']); | ||
143 | + $discount['group_ids'] = str_replace('}', '', $discount['group_ids']); | ||
144 | + $discount['group_ids'] = explode(',', $discount['group_ids']); | ||
145 | + | ||
142 | } | 146 | } |
143 | 147 | ||
144 | $css = [ | 148 | $css = [ |