【问题标题】:Get all categories by store with SOAP Magento使用 SOAP Magento 按商店获取所有类别
【发布时间】:2015-08-18 22:27:46
【问题描述】:

我可以在 Magento 文档中看到可以使用可选的商店视图参数调用 categories.tree,但我无法使其工作。

我正在做以下事情:

$store = 'gl'; // This is my store view code
return self::$client->call( self::$session, 'catalog_category.tree' , $store );

但是我收到一个 SOAP 错误。我该怎么做?

谢谢

【问题讨论】:

    标签: php magento soap


    【解决方案1】:
    $client->call(self::$session, 'catalog_category.tree' , null, $store );
    

    您没有传递第二个参数,即 (as per documentation) 对应于 parentId,我认为您想忽略它。

    SOAPv2 API 的等效调用是:

    $client->catalogCategoryTree(self::$session, null, $store);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-28
      • 1970-01-01
      相关资源
      最近更新 更多