I am trying to update the Stock data,Using SOAP V1, but many values are not updating.
$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($product);
$stockItemData = array(
'qty' => $qty,
'is_in_stock' => $product->getIsInStock(),
'manage_stock' => $stock->getManageStock(),
'use_config_manage_stock' => $stock->getUseConfigManageStock(),
'min_qty' => $stock->getMinQty(),//not updated
'use_config_min_qty' => $stock->getUseConfigMinQty(),//not updated
'min_sale_qty' => $stock->getMinSaleQty(),//not updated
'use_config_min_sale_qty' => $stock->getUseConfigMinSaleQty(),//not updated
'max_sale_qty' => $stock->getMaxSaleQty(),//not updated
'use_config_max_sale_qty' => $stock->getUseConfigMaxSaleQty(),//not updated
'is_qty_decimal' => $stock->getIsQtyDecimal(),//not updated
'backorders' => $stock->getBackorders(),//not updated
'use_config_backorders' => $stock->getUseConfigBackorders(),//not updated
'notify_stock_qty' => $stock->getNotifyStockQty(),//not updated
'use_config_notify_stock_qty' => $stock->getUseConfigNotifyStockQty(),//not updated
'stock_status_changed_auto' => $stock->getStockStatusChangedAuto(),//not updated
'use_config_qty_increments' => $stock->getUseConfigQtyIncrements(),//not updated
'qty_increments' => $stock->getQtyIncrements(),//not updated
'use_config_enable_qty_inc' => $stock->getUseConfigEnableQtyInc(),
'enable_qty_increments' => $stock->getEnableQtyIncrements(),//not updated
'is_decimal_divided' => $stock->getIsDecimalDivided(),//not updated
'type_id' => $stock->getTypeId(),
'stock_status_changed_automatically' => $stock->getStockStatusChangedAutomatically(),//not updated
'use_config_enable_qty_increments' => $stock->getUseConfigEnableQtyIncrements()
);
$proxy->call($sessionId, 'product_stock.update', array($product->getId(), $stockItemData));
I have checked, all the passed values, and its correct,and even tried to pass static value to test, but not worked. Please help.