diff --git a/frontend/views/event/_product_item.php b/frontend/views/event/_product_item.php index 73ce57e..dd44862 100755 --- a/frontend/views/event/_product_item.php +++ b/frontend/views/event/_product_item.php @@ -91,7 +91,7 @@ $category = $model->category; // есть скидка echo '
';
- if($model->enabledVariants[ 0 ]->price_old != 0 && $model->enabledVariants[ 0 ]->price_old != $model->enabledVariants[ 0 ]->price) {
+ if($model->variant->price_old != 0 && $model->variant->price_old != $model->variant->price) {
echo '' . $model->variant->price_old . ' грн. ';
echo $model->variant->price . ' грн.