Commit 2cfcefd9 by lmf

首页新品增加加购物车功能

parent da807075
...@@ -24,7 +24,8 @@ foreach($ids as $pid): ...@@ -24,7 +24,8 @@ foreach($ids as $pid):
if(!$product) continue; if(!$product) continue;
$productImage = $imageHelper->init( $product, 'category_page_list' ) ->getUrl(); $productImage = $imageHelper->init( $product, 'category_page_list' ) ->getUrl();
?> ?>
<div class="flash-sale-item"> <div class="flash-sale-item add-product-shop-car">
<div class="product-item-info">
<a href="<?php echo $product->getProductUrl()?>" > <a href="<?php echo $product->getProductUrl()?>" >
<img src="<?php echo $productImage;?>" loading="lazy" /></a> <img src="<?php echo $productImage;?>" loading="lazy" /></a>
<div class="flash-sale-info"> <div class="flash-sale-info">
...@@ -33,6 +34,7 @@ foreach($ids as $pid): ...@@ -33,6 +34,7 @@ foreach($ids as $pid):
<?= /* @noEscape */ $blocklist->getProductPrice($product) ?> <?= /* @noEscape */ $blocklist->getProductPrice($product) ?>
</div> </div>
</div> </div>
</div>
<?php <?php
endforeach; endforeach;
?> ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment