I am looking for solution to display all products on custom cms page or need root category url link on which in can get all product.

I tried with catalog product list widget having product for category id 2 which is root catetory but didn't get success. I am working on magento 2.2.2

1 Answer 1


I got solution, Hope it helps to others.

Use "Magento\Catalog\Block\Product\ListProduct" class and add below content in any cms page.

{{block class="Magento\Catalog\Block\Product\ListProduct" category_id="category_id" template="Magento_Catalog::product/list.phtml" name="allproducts"}}

Here category_id is ID of Category.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.