Commit a413d3ce6c98a0a0f12aef8383b1a7d2ba03daa1

Authored by Alex Savenko
2 parents 3f24eb30 1bcd1c72

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 139 $discount = $this->models->getDiscount()->getActiveData();
140 140 if (!empty($discount)) {
141 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 148 $css = [
... ...