Magento-在单个XML-RPC调用中获取多个产品的详细信息 [英] Magento - Getting the Details of Multiple Products in a Single XML-RPC call

查看:59
本文介绍了Magento-在单个XML-RPC调用中获取多个产品的详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在一个xml-rpc调用中获取多个产品的所有详细信息.我有10个产品的SKU ID.我正在使用catalog_product.info检索单个产品的详细信息.但是我无法传递多个SKU ID,或者我做错了方法.进行10次相同的通话需要很长时间,因此绝对可以排除.

How do I get all the details of multiple products in a single xml-rpc call.I have the SKU ids of 10 products. I am using the catalog_product.info to retrieve the details of a single product. But I am not able to pass multiple SKU ids or maybe I am doing it the wrong way. Making the same call 10 times takes a long time so that is definitely ruled out.

推荐答案

您可以使用multiCall而不是10个单独的XMLRPC调用. Magento Wiki 中对此进行了解释.

You can use multiCall rather than 10 seperate XMLRPC calls. This is explained in the Magento wiki.

您还可以使用catalog_product.items并指定多个ID的过滤器.但是,该选项只会为您提供基本的产品信息(没有价格,说明等信息).

You could also use catalog_product.items and specify a filter of multiple ID's. But that option will only give you basic product information (no things like prices, descriptions, etc).

即使multiCall太慢,您可能也需要编写一个通过您自己的API方法公开产品集合的模块.

If even multiCall is too slow, you will probably need to write a module that exposes a product collection through your own API method.

这篇关于Magento-在单个XML-RPC调用中获取多个产品的详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆