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を使用した一括更新に制限がある場合は?