我尝试使用 magento api 更新我的产品价格,但批量数据失败
$result = sybase_query("SELECT PartCode,CurrBasicSalesPrice FROM BasicCustPartSalesPrice WHERE CustId='FOO'"); //around 654 results
while ($row = sybase_fetch_object($result) ) {
try {
$r = $this->_client->call($this->_session, 'product.update', array($row->PartCode, array('price' => $row->CurrBasicSalesPrice)));
}catch(Exception $e){
echo $e->getMessage();
}
}
如果我使用此查询,这将正常工作
sybase_query("SELECT PartCode,CurrBasicSalesPrice FROM BasicCustPartSalesPrice WHERE CustId='FOO' AND someother='bar'"); //around 30 results
使用 api 进行批量更新是否有任何限制?