How to create dependent attributes in magento

一世执手 提交于 2019-12-13 11:35:01

问题


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


回答1:


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.




回答2:


Configurable products are the best route for dependent options (unless you have tons of options as configurable products can only have a few hundred simple products assigned before they fail).

There are also a few extensions that allow you to do this for custom options on simple products. See: http://www.magentocommerce.com/magento-connect/dependent-custom-options.html http://www.magentocommerce.com/magento-connect/advanced-product-options.html



来源:https://stackoverflow.com/questions/15103680/how-to-create-dependent-attributes-in-magento

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!