Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发 Magento 1.5。我的商店中有两个主要类别,比如说产品和实用程序。
Products - Product 1 - Product 2 Utilities - Utility 1 - Utility 2
我需要添加一个下拉列表,允许我使用产品列表表上的这两个类别进行过滤,就像产品类型下拉列表允许我使用产品类型进行过滤一样。
我想在管理面板中实现。有人有什么主意吗?请帮忙...
您可以在模板中添加一个下拉列表,并将 onChange 事件绑定到 changed window.location.href。可以像在分层导航中一样生成目标 URL(在产品列表的左侧,您可以单击类别)。
window.location.href
示例网址:/furniture.html?cat=22
/furniture.html?cat=22