0
我怎樣才能獲得產品ID,而在代碼的產品ID的某一點與REST API creaing它傳遞給這個方法:如何獲得Magento的產品ID,而與REST API創建ID
class Mage_Catalog_Model_Api2_Product_Rest_Admin_V1
...
$this->_multicall($product->getId()); #line 172
...
的問候,
我怎樣才能獲得產品ID,而在代碼的產品ID的某一點與REST API creaing它傳遞給這個方法:如何獲得Magento的產品ID,而與REST API創建ID
class Mage_Catalog_Model_Api2_Product_Rest_Admin_V1
...
$this->_multicall($product->getId()); #line 172
...
的問候,
好吧,我做到了。我重寫Mage_Catalog_Model_Api2_Product_Rest_Admin_V1
與我和_create()
$this->_multicall($product->getId());
之前我已經加入:
# Return magento product id in response
$this->getResponse()->setBody(json_encode(array(
'magento_product_id' => $product->getId()
)));