magento 1.7-API-确定细节是简单的、捆绑的还是捆绑的组件
我正在使用API提取Magento中的新订单。我想知道如何判断这是一个简单的产品、捆绑包还是捆绑包的组件 要获取详细信息,我对“sales\u order.info”使用soapObject方法magento 1.7-API-确定细节是简单的、捆绑的还是捆绑的组件,api,magento-1.7,Api,Magento 1.7,我正在使用API提取Magento中的新订单。我想知道如何判断这是一个简单的产品、捆绑包还是捆绑包的组件 要获取详细信息,我对“sales\u order.info”使用soapObject方法 $details = $this->soapObject->call($this->sessionId, 'sales_order.info', $orderId); 当我转储详细信息时,如下所示: array(15) { ["product_id"]=> strin
$details = $this->soapObject->call($this->sessionId, 'sales_order.info', $orderId);
当我转储详细信息时,如下所示:
array(15) {
["product_id"]=>
string(3) "232"
["weight"]=>
string(6) "1.0000"
["sku"]=>
string(12) "BD22"
["name"]=>
string(28) "BUNDLED_PRODUCT22"
["qty_ordered"]=>
string(6) "2.0000"
["price"]=>
string(6) "0.0000"
["discount_percent"]=>
string(6) "0.0000"
["discount_amount"]=>
string(6) "0.0000"
["base_discount_amount"]=>
string(6) "0.0000"
["discount_invoiced"]=>
string(6) "0.0000"
["base_discount_invoiced"]=>
string(6) "0.0000"
["tax_percent"]=>
string(6) "0.0000"
["tax_amount"]=>
string(6) "0.0000"
["row_weight"]=>
string(6) "0.0000"
["price_incl_tax"]=>
string(6) "0.0000"
}
您需要使用另一个SOAP服务 假设
product\u id
*是Magento产品实体id,将其传递给catalog\u product.info
SOAP调用以获取产品详细信息
响应将包含一个名为type
的字段,其中包含产品类型
*Afaik
it\u product\u id
不是原始的Magento字段。看起来您正在使用覆盖Magento API的第三方模块 辉煌!我找错地方了。顺便说一句,前缀可能是内部的东西。我离职了。