我尝试使用以下代码将产品添加到 magento 目录库存中,但该复选框仍处于选中状态,我如何取消选中 magento 目录库存中的“使用默认值”复选框,请任何人帮助我。
catalogInventoryStockItemUpdateEntity inventory = new catalogInventoryStockItemUpdateEntity();
inventory.qty = "0";
inventory.manage_stock =1;
inventory.use_default_website_stock = 0;
inventory.use_default_website_stockSpecified = false;
catalogProductCreateEntity productEntity = new catalogProductCreateEntity();
productEntity.stock_data=inventory;
var client = new Mage_Api_Model_Server_V2_HandlerPortTypeClient();
client.catalogProductUpdate(sessionId, productId, productEntity, storeView, "ID");