如何在magento中创建依赖属性 [英] How to create dependent attributes in magento

查看:81
本文介绍了如何在magento中创建依赖属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在magento中,有什么方法可以创建依赖属性,例如颜色取决于大小,而大小取决于制造商?.

解决方案

让我假设您通过简单地说出属性来表示产品属性.<​​/p>

要回答您的问题,无法直接或直接在管理属性"下创建从属产品属性.但是您可以通过创建可配置产品来使属性相互依赖.

让我们说您有2种颜色(黑色和蓝色)和2种尺寸(L,XL),并且要根据尺寸选择颜色.

  1. 首先,在管理属性"下创建2个属性大小和类型下拉列表的颜色,然后创建属性选项和值.并将其分配给正确的属性集.

  2. 现在创建简单的产品,比如说产品A的尺寸为L,颜色为黑色,产品B的颜色为蓝色,尺寸为XL.

  3. 现在创建一个可配置的产品,比如说AB并将这两个简单的产品A和B关联起来.保存该产品.

如果客户打开产品AB,并且他们选择尺寸L,则只能找到黑色.这样可以使您的产品属性相互依赖.

As there any way in magento where i can create dependent attributes like color depends on size and size depends on manufacturer ?.

解决方案

Let me assume you mean product attributes by saying attributes plainly.

To answer your question its not possible to create dependent product attributes directly or straight forwardly under Manage Attributes. But you can make your attributes depend on each other by creating Configurable products.

Lets say you have 2 colors (black and blue) and 2 sizes (L,XL) and you want to make your colors depend on sizes.

  1. At first create 2 attributes size and color of type dropdown under Manage attributes and create the attribute options and values. and Assign it to the right attribute set.

  2. Now create the simple products , lets say product A with size L and color Black and product B with color Blue and size XL.

  3. Now create a configurable product lets say AB and associate these two simple products A and B. Save the product.

if the customer opens the product AB and if they choose size L they can find only color Black. This is how you can make your product attributes dependent on each other.

这篇关于如何在magento中创建依赖属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆