简体   繁体   English

Magento忽略分层导航中的子属性

[英]Magento Ignore Child Attributes in Layered Navigation

I have some bundled products that have attributes associated with them. 我有一些捆绑的产品,这些产品具有与之相关的属性。 The child products also have the same attributes associated with them, however they are sometimes different. 子产品也具有与其关联的相同属性,但是有时会有所不同。 My issue is that with layered navigation, it is looking at both the bundled product and all the child products' attributes. 我的问题是,使用分层导航时,它将同时查看捆绑的产品和所有子产品的属性。 I was wondering if there was any way to edit the layered navigation to ignore child products for bundled products. 我想知道是否有任何方法可以编辑分层导航以忽略捆绑产品的子产品。 Thanks! 谢谢!

For some more information: I am setting up a store for HVAC equipment. 有关更多信息:我正在为HVAC设备设置商店。 I have an attribute called Nominal Capacity. 我有一个称为标称容量的属性。 The air condenser unit might be 2 tons, the coil might be 1.5 to 2 tons. 空气冷凝器单元可能为2吨,盘管可能为1.5至2吨。 When I put them together in a bundle product, I set the Nominal Capacity attribute for the bundled product to 2 tons, however the layered navigation still shows 1.5 to 2 ton and 2 ton when I need it to only show 2 tons. 当我将它们组合在一起放在捆绑产品中时,我将捆绑产品的名义容量属性设置为2吨,但是分层导航仍显示1.5到2吨,而当我只需要显示2吨时,它会显示2吨。

From magento's point of view you have 3 products (following exapmle) air condenser(1), coil(2), bundle of 1 and 2(3). 从magento的角度来看,您有3种产品(例如),空气冷凝器(1),盘管(2),1和2(3)束。 If you only want the bundled products info to appear then in 'manage products' select the air condenser or coil. 如果只希望显示捆绑的产品信息,则在“管理产品”中选择空气冷凝器或盘管。 Once in the 'edit product' form find the field for 'visibility' and change this value to 'Not Visible individually'. 进入“编辑产品”表单后,找到“可见性”字段,然后将此值更改为“不可见”。

This will fix your layered navigation behavior however it will also make it impossible to purchase a individual element of your bundle. 这将修复您的分层导航行为,但是也将使您无法购买捆绑包中的单个元素。 If you want a customer to be able to purchase your bundle or single elements of a bundle then the current layered navigation behavior is correct. 如果您希望客户能够购买您的捆绑包或捆绑包中的单个元素,那么当前的分层导航行为是正确的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM