diff --git a/src/app/frontend/views/partial/item_group.php b/src/app/frontend/views/partial/item_group.php
index 322f9ff..18f1ca3 100644
--- a/src/app/frontend/views/partial/item_group.php
+++ b/src/app/frontend/views/partial/item_group.php
@@ -34,20 +34,20 @@
= $t->_("price_from") ?>
0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) {
-// echo ''.$i['price'].' грн
';
-// echo ''.round($i['price']*(1-$discount['discount']/100), 1).' грн';
-// }
-// else {
-// echo ''.$i['price'].' грн';
-// }
-// }
-// else {
-// echo ''.$i['price'].' грн';
-// }
-// ?>
+ // скидка
+ if (!empty($discount)) {
+ if ($discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($i['id'], $discount['group_ids'])) {
+ echo ''.$i['price'].' грн
';
+ echo ''.round($i['price']*(1-$discount['discount']/100), 1).' грн';
+ }
+ else {
+ echo ''.$i['price'].' грн';
+ }
+ }
+ else {
+ echo ''.$i['price'].' грн';
+ }
+ ?>
= round($i['price'], 2) ?> грн
--
libgit2 0.21.4