Magento Layered Navigation Categories [closed]

江枫思渺然 提交于 2019-12-08 12:52:45

问题


I would like the user to be sent to the category landing page when the user clicks the category in layered navigation.

So instead of the user getting /category.html?cat=11, they would get /category/RedWidget.html?cat=11 when they click the RedWidget category.

I found this link, but his code doesn't work.

Thanks ahead of time!


回答1:


If I understand you correctly, I came across a similar problem. My eventual fix was to display both the left.phtml and layered navigation at the same time, then hide the category in layered navigation. (if($showBlock && $this->__($_filter->getName()) != "Category"):)

Then in left.phtml I parsed the $_GET variable and appended it to the end of the URL string for each category, ensuring that the layered navigation search terms persisted between categories.

Slightly dirty but it does the job.




回答2:


Category landing pages are usually defined in the same place where you created the category. Set the display mode to CMS block or CMS block + products and you should see your content displayed for the user.

If this isn't what you are expecting, please elaborate on what you are using as a "category landing page".



来源:https://stackoverflow.com/questions/3453827/magento-layered-navigation-categories

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