2
我正在努力让产品收集在滑块中显示magento2。我试图magento2产品集合继续加载
http://blog.chapagain.com.np/magento-2-get-product-collection/
获得产品的集合。但我的网页不断加载。所以我评论了功能中的所有内容
public function getProductCollection()
{
$collection = $this->_productCollectionFactory->create();
$collection->addAttributeToSelect('*');
$collection->setPageSize(3); // fetching only 3 products
return $collection;
}
页面已成功加载。所以请建议我如何获得带图像的产品列表。