Commit 93ca3a1c by lmf

优化首页热销产品ID

parent ffe2e847
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<div class="flash-sale-inner"> <div class="flash-sale-inner">
<?php <?php
$templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW; $templateType = \Magento\Catalog\Block\Product\ReviewRendererInterface::SHORT_VIEW;
$ids = explode(',',"64,65,66,68,86,108"); $ids = explode(',',"133,138,148,158,167,172");
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$pr = $objectManager->create('Magento\Catalog\Model\ProductRepository'); $pr = $objectManager->create('Magento\Catalog\Model\ProductRepository');
......
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