dp610807 2016-03-17 23:37
浏览 29

Magento如何通过SOAP API批量删除产品

I have the following function to delete individual products. It works perfectly but can be very slow if we're dealing with thousands of items. Is there a way to do this in bulk? I tried passing in an array but it didn't work.

function delete_magento_product($id) {
    $proxy = new SoapClient('http://example.com/api/v2_soap/?wsdl');
    $session = $proxy->login('admin','abc123');
    $result=$proxy->catalogProductDelete($session, $id);
    return $result;
}
  • 写回答

0条回答 默认 最新

    报告相同问题?