【问题标题】:how to create configurable associated products in magento using API?如何使用 API 在 magento 中创建可配置的关联产品?
【发布时间】:2012-10-27 07:47:48
【问题描述】:

我正在使用 API 在Magento 中创建 2 个可配置产品和 10 个简单产品。我已经为简单的产品分配了尺寸和颜色值,并且工作正常。现在如何为可配置产品分配特定属性?就像我想将简单的产品分配给可配置的产品一样。有谁知道我们如何将简单的产品添加到可配置产品中?我已经试过了:

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

但是将简单产品分配给具有属性的可配置产品不起作用。 我知道哪些表包含可配置属性。

catalog_product_super_attribute
catalog_product_super_attribute_label

我可以修改现有 API,但我不知道哪个表包含可配置和简单的产品映射。

【问题讨论】:

    标签: php api magento xml-rpc magento-1.7


    【解决方案1】:
    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-19
      相关资源
      最近更新 更多