Display all products in the homepage? Anyone who have had done this?
Note: This can be done in the CMS pages by adding manually each and every category id.. I don't want to do that.. Too much hassle if I have hundreds of categories..
I think this can be coded but I don't know where to start? Thanks and more power!
Go to the homepage in the CMS -> Manage pages 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"}}
This should then list all of the products in your shop on that page.
You could also use the same code to drill down into a specific category, by adding the category variable, e.g.
{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="9" template="catalog/product/list.phtml"}}
This is the code for all products
{{widget type="catalog/product_widget_new" display_type="all_products" products_count="10" template="catalog/product/widget/new/content/new_grid.phtml"}}
Put it under >
Go to CMS > Manage pages > Edit 'Home page'
Navigate to content TAB > Click on Show Hide Editor
Put this above script
Or
Recently Viewd Products
{{widget type="reports/product_widget_viewed" page_size="5" template="reports/widget/viewed/content/viewed_grid.phtml"}}
Recently Compared Products
{{widget type="reports/product_widget_compared" page_size="5" template="reports/widget/compared/content/compared_grid.phtml"}}
Orders and returns
{{widget type="sales/widget_guest_form" template="sales/widget/guest/form.phtml"}}
Must be working for you tested till Magento 1.9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With