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

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

问题描述

在 magento 中,我可以通过任何方式创建依赖属性,例如颜色取决于大小,而大小取决于制造商?.

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.

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

假设您有 2 种颜色(黑色和蓝色)和 2 种尺寸(L、XL),并且您想让颜色取决于尺寸.

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. 首先在管理属性下创建 2 个属性大小和类型下拉列表,然后创建属性选项和值.并将其分配给正确的属性集.

  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.

现在创建简单的产品,假设产品 A 的尺寸为 L,颜色为黑色,产品 B 的颜色为蓝色,尺寸为 XL.

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

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

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

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

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天全站免登陆