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 中的分层导航会在价格属性中显示我
从 0 到 1000 从 1001 到 2000 等等等等。
是否可以通过配置或代码更改此设置?如果必须通过代码,您能否提供代码示例以及我需要修改哪些文件。
去
系统 > 配置 > 目录 > “分层导航”部分 > “价格导航步骤计算”
将“价格导航步骤计算”设置为手动并更改出现的设置。
“默认价格导航步骤”是一个范围。例如,如果我们将其设置为 500,那么价格范围将是:
0 - 500 500 - 1000 1000 - 1500 1500 - 2000 等等。
在“最大价格区间数”中,如果我们输入 3,那么价格范围将是:
0 - 500 500 - 1000 1000及以上