简体   繁体   English

如何使用API​​在magento中创建可配置的关联产品?

[英]how to create configurable associated products in magento using API?

I am creating 2 configurable products and 10 simple products in Magento using API. 我正在使用API​​在Magento创建2个可配置产品和10个简单产品。 I have assigned size and colors value in simple products and it's working fine. 我已经为简单的产品指定了尺寸和颜色值,并且效果很好。 Now how do I assign specific attribute to configurable product? 现在如何为可配置产品分配特定属性? and same like that I want to assign simple product to configurable product. 就像我想将简单产品分配给可配置产品一样。 Does anyone know how we can add simple product to configurable product? 有谁知道我们如何将简单产品添加到可配置产品中? I have already tried this: 我已经尝试过了:

http://www.magentocommerce.com/api/soap/catalog/catalogProductLink/catalog_product_link.assign.html http://www.magentocommerce.com/api/soap/catalog/catalogProductLink/catalog_product_link.assign.html

but it's not working to assign simple products to configurable product with attribute. 但无法将简单产品分配给具有属性的可配置产品。 I know which tables contains configurable attribute. 我知道哪些表包含可配置的属性。

catalog_product_super_attribute
catalog_product_super_attribute_label

I am able to modify existing API but I don't know which table contains configurable and simple products mapping. 我可以修改现有的API,但是我不知道哪个表包含可配置和简单的产品映射。

Tables used by All Products
-------------------------------------------------
catalog_product_entity                                                                change type_id to “simple”, “configurable” or “grouped”
catalog_product_entity_datetime
catalog_product_entity_decimal
catalog_product_entity_int
catalog_product_entity_text
catalog_product_entity_varchar
catalog_product_entity_media_gallery
catalog_product_entity_media_gallery_value
catalog_product_website

Tables used by Simple Products
--------------------------------
cataloginventory_stock_item
cataloginventory_stock_status

Tables used by Configurable Products
---------------------------------
catalog_product_super_attribute
catalog_product_super_attribute_label
catalog_product_relation
catalog_product_super_link
catalog_product_link

Tables used by Grouped Products
------------------------------------
catalog_product_link_attribute_decimal
catalog_product_link_attribute_int
catalog_product_link
catalog_product_relation

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

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