Commit c8ed9f00 by lmf

优化首页最新产品模块产品价格转化错位bug

parent a1befcc4
......@@ -40,6 +40,10 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
<?= /* @noEscape */ '<!-- ' . $image . '-->' ?>
<div class="products-<?= /* @noEscape */ $mode ?> <?= /* @noEscape */ $mode ?>">
<ol class="product-items <?= /* @noEscape */ $type ?>">
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$blocklist = $objectManager->get('\Magento\Catalog\Block\Product\ListProduct');
?>
<?php foreach ($items as $_item) :?>
<li class="product-item">
<div class="product-item-info">
......@@ -55,7 +59,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
<?= $block->escapeHtml($_item->getName()) ?>
</a>
</strong>
<?= $block->getProductPriceHtml($_item, $type); ?>
<?= $blocklist->getProductPrice($_item); ?>
<?php if ($templateType) :?>
<?= $block->getReviewsSummaryHtml($_item, $templateType) ?>
......
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