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条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 Revit2020下载问题
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大