如果我点击类别或子类别,如何重定向Magento中的URL它应该显示我创建的页面,因为响应式设计我这样做
我已经创建了网页的网址,使得类别和子类别网址都等于网页网址。
答案 0 :(得分:0)
为此,您所要做的就是添加URL重写。例如,如果您的类别ID为10且cms页面链接为" cmspage.html",则在magento后端管理员转到
catalog->URLrewrite Management and search for id 10 in ID path column copy the "Target Path" field data now write a custom url rewrite for this "Target Path"
go to Catalog->URL rewrite Management, Click Add URL rewrite button. choose “Custom” from “Create URL Rewrite” drop-down list. add the details like belwo
Request Path — It must be the Target path which copied before (catalog/category/view/id/10) in above.
Target Path — It should be the CMS page URL
您将链接类别与自定义cms页面