2012-07-03 2 views
0

임 젠토 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를 사용하여 일괄 업데이트에 대한 제한 사항이 있습니까?

+0

$ this-> _ client-> multiCall ($ this-> _ session, array ('product.update', array (params1)), array ('product.update', array (params2))), ...)'? 더 많은 정보 : http://www.magentocommerce.com/api/soap/introduction.html – Vinai

답변

1

표준 Magento의 모든 항목을 일괄 업데이트하면 일반적으로 문제가 발생합니다. Urapidflow 또는 Magmi와 같은 제품 업데이트에 대한 타사 대안을 볼 수 있습니다.

관련 문제