Magento – How to display all products on the home page

Magento – How to display all products on the home page

To add all products at home page just go to your admin panel, navigate to CMS -> Manage Pages and then from pages click on your selected homepage ( as in my case it is home) and add the following code snippet into the WYSIWYG:

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" template="catalog/product/list.phtml"}}

Now go to categories and from Display Settings tab set the Is Anchor select field to “yes”. categories Now all set and your products are loaded at home page.

By Specific Category

To get categories & sub-categories of a specific category, category id should be known. Just mention the category_id inside the block code, the desired category will be loaded.

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="3" template="catalog/product/list.phtml"}}

Control the number of columns in product listing

To control the number of columns in product listing, use the below code:

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="3" column_count="4" template="catalog/product/list.phtml"}}

Where the column_count value is the number of columns.

Setting Block Permissions

In order to show block on frontend, add and set the permissions of blocks to Allowed

Navigate to System > Permissions > Blocks

Now click on Add New Block button. Specify block name catalog/product_list & allow the Block by selecting YES from the Dropdown items.


How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply

Your email address will not be published. Required fields are marked *