Commit c3d7bd92846367c430e26502fa446676887308b1
1 parent
945d3944
-
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
frontend/views/catalog/product_item.php
... | ... | @@ -52,6 +52,7 @@ use yii\helpers\Url; |
52 | 52 | <div class="mycarousel"> |
53 | 53 | <ul class="jcarousel jcarousel-skin-tango"> |
54 | 54 | <?php foreach ($product->variants as $variant) : ?> |
55 | + <?php if (!is_null($variant->stock) && empty($variant->stock)) continue;?> | |
55 | 56 | <?php if (!empty($variant->image)) :?> |
56 | 57 | <li> |
57 | 58 | <a href="<?= Url::to([ | ... | ... |