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;
}
頁面已成功加載。所以請建議我如何獲得帶圖像的產品列表。