当我单击产品评论页面时,我的URL会更改。例如产品URL:https://beyondgallery.com/dark-blue-kurta.html评论网址:https://beyondgallery.com/review/product/list/ID/5047/category/274/#review-form
需要获得类似的URL:深蓝色kurta-reivew
一种可能的解决方案是创建和使用自定义路由器。
请参阅此参考博客以在Magento中创建自定义路由器:http://inchoo.net/magento/custom-router-in-magento/
在match
功能中,您可以添加条件,例如在请求路径中找到-review
,然后添加逻辑。
我们可以将审核列表链接更改为https://beyondgallery.com/dark-blue-kurta-reivew by retrite getReviewsUrl
Mage_Review_Block_Helper
helper的函数。
希望它有帮助!