Commit 63fbf03df1e0efbf6ac3649728b9c6f22cd21fc6

Authored by Administrator
1 parent 1d13b8aa

rm node nodule

Showing 1 changed file with 8 additions and 3 deletions   Show diff stats
frontend/views/search/index.php
... ... @@ -47,9 +47,14 @@ $this->params['seo']['meta']= 'noindex,follow';
47 47 <div class="ten"></div>
48 48 <div class="products pn">
49 49 <ul>
50   - <?php foreach($productProvider->models as $product) :?>
51   - <?= $this->render('product_item.php', ['product' => $product])?>
52   - <?php endforeach?>
  50 + <?php foreach($productProvider->models as $product) :
  51 + if(isset($product->variant)){
  52 + ?>
  53 + <?= $this->render('product_item.php', ['product' => $product])?>
  54 +
  55 + <?php
  56 + }
  57 + endforeach?>
53 58 </ul>
54 59 <div class="both"></div>
55 60 </div>
... ...