I have defined a featured product template in a cms static page as below:
{{block class="Magento\Catalog\Block\Product\ListProduct" template="Magento_Catalog::product/featured.phtml"}}
Now I want to load original product collection(without any filters applied, which I am gonna apply later) inside my template "featured.phtml"
, but I can't find a way to do it directly without creating a module for such a tiny task.
Somebody let me know, how to do something like below in Magento2, in this case: Mage::getModel('catalog/product')->getCollection()
\Magento\Catalog\Block\Product\ListProduct::getLoadedProductCollection
? It is accessible in your template just as$this->getLoadedProductCollection()
.$this->getCollection()