Magento: catalog in /catalog url path

旧街凉风 提交于 2019-12-24 02:02:38

问题


I hav a navigation with cms pages and a button 'catalog'. This one links to www.website.nl/catalog

I want to display the catagories under this url. I tried to rename the root categorie to 'catalog' and show the root category in the navigation, but that isn't possible ( http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/catalog/creating_and_assigning_root_categories )

Now I have 'catalog' as a cms-page with a static block wich shows the categories. It works, but when the visitor clicks a categorie, the breadcrumbs don't show 'catalog' anymore. Just: 'Home -> Category name'.

And the url is www.website.nl/categorypath and not www.website.nl/catalog/categorypath.

Is it possible to setup the store like this?

I hope I explained my problem clearly enough.

Greets Niek


回答1:


Move your categories to a subcategory of root called "Catalog", then reindex.

You can display products in a grid on your homepage with the following shortcode in the content area of the cms editor (or layout updates with slightly different syntax which you should know if you are messing with layout updates):

{{block type="catalog/product_list" category_id="4" template="catalog/product/list.phtml"}}

Where 4 in category_id="4" would be replaced with your "Catalog" subcategory's ID



来源:https://stackoverflow.com/questions/9992365/magento-catalog-in-catalog-url-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!