Magento:分层导航中的自定义属性范围

Magento: Custom attribute ranges in layered navigation

1) 在 Magento 中,我可以将价格设置在这样的范围内:

Price ranges

2) 除此之外,我可以轻松地操纵范围并给它一些单独的值,例如:

Individual price ranges

What I need is a custom attribute e.g. height but with the same functionalities like the price attribute (Range and individual values).

我已经尝试过这个解决方案:https://magento.stackexchange.com/questions/60467/how-to-group-numeric-attribute-ranges-similar-to-prices-in-layered-navigation 它会给我我需要的范围,但不幸的是不是我在第 2 部分中提到的个别部分。

任何人都可以给我一些如何实现它的建议吗?

您可以使用 Improved Layered Navigation 扩展来完成此操作。

要创建新的数字属性(例如长度、宽度、高度),请按照以下步骤操作:

  1. 转到管理面板 > 目录 > 属性 > 管理属性 > 新建
  2. 如果您想为数值属性使用滑块,请为它们选择目录输入类型“价格”。
  3. 将“在分层导航中使用”选项设置为“可过滤”。
  4. 创建“价格”属性后,请转到“目录”>“改进的导航”>“过滤器”,然后单击“加载”按钮。之后,数字属性将出现在过滤器列表中。