Commit ebb59fed9e257753a7e7923d799ca711c061d02c
1 parent
c5c80cc0
big commti
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/views/event/_product_item.php
@@ -91,7 +91,7 @@ $category = $model->category; | @@ -91,7 +91,7 @@ $category = $model->category; | ||
91 | 91 | ||
92 | // есть скидка | 92 | // есть скидка |
93 | echo '<p class="cost">'; | 93 | echo '<p class="cost">'; |
94 | - if($model->enabledVariants[ 0 ]->price_old != 0 && $model->enabledVariants[ 0 ]->price_old != $model->enabledVariants[ 0 ]->price) { | 94 | + if($model->variant->price_old != 0 && $model->variant->price_old != $model->variant->price) { |
95 | echo '<strike><span id=\'old_cost\' itemprop="price">' . $model->variant->price_old . '</span> грн.</strike> '; | 95 | echo '<strike><span id=\'old_cost\' itemprop="price">' . $model->variant->price_old . '</span> грн.</strike> '; |
96 | echo $model->variant->price . ' <span>грн.</span></p>'; | 96 | echo $model->variant->price . ' <span>грн.</span></p>'; |
97 | } else { | 97 | } else { |