更改侧面分层导航中的Magento子类别以指向实际类别 [英] Change Magento Subcategories in Side Layered Navigation to Point to Actual Categories

查看:56
本文介绍了更改侧面分层导航中的Magento子类别以指向实际类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何方法可以将侧边栏导航的URL更改为指向实际类别.

I was wondering if there is any way to change URLs of sidebar navigation to point to actual categories.

例如,有一个父类别的小部件,其子类别包括计算机小部件,笔记本电脑小部件和电话小部件.如果您通过主导航导航到电话小部件,那么SEO友好的URL将是www.example.com/widgets/phone-widgets,但是如果单击小部件类别,则默认情况下将具有带有类别的侧边栏过滤导航电脑小部件,笔记本电脑小部件,电话小部件.如果在此页面上单击电话"小部件,则该页面的URL为www.example.com/widgets?cat=3.

For example there is a parent category widgets with subcategories Computer widgets, Laptop widgets, Phone widgets. If you navigate through main navigation to phone widget SEO friendly URL will be www.example.com/widgets/phone-widgets, but if you click on widget category, by default you going to have sidebar filtering navigation with categories Computer widgets, Laptop widgets, Phone widgets. If, on this page you will click on Phone widgets, the URL of the page will be www.example.com/widgets?cat=3.

有什么方法可以使那些侧类别链接指向www.example.com/widgets/phone-widgets而不是www.example.com/widgets?cat=3?我真的很想通过Magento代码而不是扩展或301重定向来做到这一点.

Is there any way to make those side category links to point to www.example.com/widgets/phone-widgets instead of www.example.com/widgets?cat=3? I would really like to do it through Magento code rather than extension or 301 redirect.

提前谢谢!

推荐答案

我创建了一个解决此错误的模块.

I created a module that solves this error.

https://github.com/jruzafa/Devopensource_LayerCatSeo

谢谢

这篇关于更改侧面分层导航中的Magento子类别以指向实际类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆