如何使用子属性(或)嵌套属性
我正在使用 Magento 构建一个网站。我必须使用嵌套/子属性。在magento中可以吗?
我的要求: 我有一个属性设置为“艺术风格”。在此下有 4 个属性。1. 美术,2. 装饰艺术,3. 复古艺术,4. 摄影。同样,在美术中我有以下类别:a. 时代, b. 运动,c. 我怎样才能实现这一目标。我的产品已经有类别和子类别(抽象、动物、建筑等)。
I am building a site using Magento. I have to use nested / sub attributes. Is it possible in magento?
My requirement:
I have an attribute set as "Art Style”. Under this there are 4 attributes. 1. Fine Art, 2. Decorative art, 3. Vintage Art, 4. Photography. Again in Fine art I have these categories: a. Era, b. Movement, c. Nationality. How can I achieve this.I already have categories and subcategories (Abstract, Animals, Architecture etc.) for my products.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不相信 Magento 的本机属性模型支持子属性,但是您可以使用标签,因为它们是非分层的。并不是说我对艺术了解很多(!),但我猜想某些形式的艺术无论如何都会跨越层次边界...
一个缺点是它们在分层导航中无法过滤,但您可能会编写一个扩展以在层中包含标签。
您可以在“目录”>“所有标签”中管理标签列表,并在“产品标签”选项卡下的“编辑产品”屏幕上将标签分配给各个产品。
I don't believe that Magento's native attribute model supports sub-attributes, however you could use Tags as they are non-hierarchical. Not that I know much about art(!), but I would guess that some forms of art would cross the hierarchical boundaries anyway...
One downside is that they won't be filterable in the Layered Navigation, but you could potentially write an extension to include tags in the Layers.
You can manage the list of tags in Catalog>All Tags, and assign tags to individual products on the Edit Product screen under the Product Tags tab.