使用SOAP Api v2 Magento删除/更新可配置产品

时间:2015-03-12 22:14:38

标签: api magento soap

我正在尝试使用Api SOAP v2在shoppingCartProductRemove中删除购物车中的可配置产品,但是api返回

  

请指定产品的选项

这是我的Soap requets:

<?xml version="1.0" encoding="UTF-8"?>
<v:Envelope xmlns:v="http://schemas.xmlsoap.org/soap/envelope/" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <v:Header />
   <v:Body>
      <shoppingCartProductRemove xmlns="http://dev.WEBPAGE.mx/index.php/api/v2_soap" id="o0" c:root="1">
         <sessionId>e6ad1063fd8f8a5b1637ec7b2bedb0ed</sessionId>
         <quoteId>1016</quoteId>
         <products>
            <shoppingcartproductentity>
               <product_id>5730</product_id>
               <sku i:null="true" />
               <qty>0.0</qty>
               <qtySpecified>false</qtySpecified>
               <options i:type="d:anyType"> 
                  <associativeentity>
                     <key>92</key>
                     <value>410</value>
                  </associativeentity>
                  <associativeentity>
                     <key>138</key>
                     <value>406</value>
                  </associativeentity>
               </options>
               <bundle_option i:type="d:anyType">
                  <associativeentity>
                     <key>92</key>
                     <value>410</value>
                  </associativeentity>
                  <associativeentity>
                     <key>138</key>
                     <value>406</value>
                  </associativeentity>
               </bundle_option>
               <bundle_option_qty i:null="true" />
               <links i:null="true" />
            </shoppingcartproductentity>
         </products>
         <storeId>1</storeId>
      </shoppingCartProductRemove>
   </v:Body>
</v:Envelope>

可配置产品是5730 ......这与一个简单的产品(id:5735)相关联,具有以下属性:

attributeID = 92 value = color(Attribute)

valueID = 410 value = black(属性选项)

attributeId = 138 value =大小(属性)

valueId = 406 value = tall(属性选项)

有什么问题? 。如何删除可配置产品?

0 个答案:

没有答案