Is it possible to make a category page a master page in magento?

I would like to display the catergory page as my homepage, not the CMS page, since it seems to be difficult to get the CMS page to display elements correctly.

I went to

URL Navigation

and created url-rewrite for the category

Then go to

System | Configuration | Web | Default Pages |

and changed

Default Web URL

for my new url-rewrite from cms, but I get 404 error when I go to the root of my site. Is there a way to redirect the root to a category and not to a CMS page?

+6
php magento
source share
4 answers

You can simply add this to any CMS page (replace the category identifier you want to display), you can find it in Admin-> Catalog-> Manage categories):

{{block type="catalog/product_list" category_id="8" template="catalog/product/list.phtml"}} 
+2
source share

Here is an easier way to do this. First find the category identifier. Then go to "System"> "Configuration"> "Web" and "Default Pages") and enter the following option for the "Default for web url" parameter: directory / category / view / identifier / 50 (where 50 is this is the category identifier).

Note. In version 1.3.2.4 there is an error in one of the main files. So, if you use this, first look at this fix: http://www.magentocommerce.com/bug-tracking/issue?issue=6168

+11
source share

Idea with

"Standard website link": directory / category / view / id / 50 (where 50 is the category identifier).

Works great in version 1.9.2.4 too, but when you go to page 2, the category name is missing:

domain.com//p/2

+1
source share

This is just a clue.

You will need to edit or create a new page in cms. then go to the design tab and refresh the xml layout with category information. I have never done this, but looking at the default home, I think it can be done. It may look something like this, but it was invented, so you have to research.

 <block type="catalog/category" name="home.catalog.category.5" alias="categ_5" template="catalog/category/id/5" after="cms_page"> <action method="addPriceBlockType"> <type>bundle</type> </block> 
0
source share

All Articles