@@ -310,7 +310,7 @@ |
||
| 310 | 310 | if (!$item) { |
| 311 | 311 | Tools::redirect('/ecommerce/', 'Такой товар не найден'); |
| 312 | 312 | } |
| 313 | - if(!$item->isVisible()){ |
|
| 313 | + if (!$item->isVisible()) { |
|
| 314 | 314 | Tools::redirect('/ecommerce/', 'Этот товар сейчас недоступен'); |
| 315 | 315 | } |
| 316 | 316 | $active = $item->category_id; |
@@ -310,7 +310,7 @@ |
||
| 310 | 310 | if (!$item) { |
| 311 | 311 | Tools::redirect('/ecommerce/', 'Такой товар не найден'); |
| 312 | 312 | } |
| 313 | - if(!$item->isVisible()){ |
|
| 313 | + if(!$item->isVisible()) { |
|
| 314 | 314 | Tools::redirect('/ecommerce/', 'Этот товар сейчас недоступен'); |
| 315 | 315 | } |
| 316 | 316 | $active = $item->category_id; |