2016-04-27 126 views

回答

2

好吧,我做到了。我重寫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() 
)));