Commit 945d3944c3d1ea3ccd62a98c516002d1512c5941
1 parent
f145ede4
-
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
frontend/views/catalog/product.php
@@ -100,6 +100,7 @@ $this->registerJs (" | @@ -100,6 +100,7 @@ $this->registerJs (" | ||
100 | <div class="begin">Цветовые решения</div> | 100 | <div class="begin">Цветовые решения</div> |
101 | <ul class="product_mod"> | 101 | <ul class="product_mod"> |
102 | <?php foreach ($product->variants as $variant): ?> | 102 | <?php foreach ($product->variants as $variant): ?> |
103 | + <?php if (!is_null($variant->stock) && empty($variant->stock)) continue;?> | ||
103 | <li> | 104 | <li> |
104 | <a id='m<?= $variant->product_variant_id ?>' href="#" | 105 | <a id='m<?= $variant->product_variant_id ?>' href="#" |
105 | data-cost="<?= $variant->price ?>" | 106 | data-cost="<?= $variant->price ?>" |