特定商店视图的Magento API产品信息?

2024-05-14 21:51:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用python-magento API获取产品的所有信息。它工作得很好。它返回默认存储视图的值。在

>>> magento = MagentoAPI("xx.com", "80", "xx", "xxx", "/api/xmlrpc")
>>> product_info = magento.catalog_product.info(1234)

产品信息为我提供了默认(英语)视图的dict。我的网站上有19家商店。如何获得特定商店视图的product_info,比如store_id=11?在

^{2}$

这很管用。但相同的dict过滤器{"store_id":11}在^{中不起作用。在


Tags: storeinfocom视图api信息id产品
1条回答
网友
1楼 · 发布于 2024-05-14 21:51:21

事实证明,您可以传递一个可选参数store_id来获取该存储的详细信息。在

>>> product_info = magento.catalog_product.info(1234, store_id)

相关问题 更多 >

    热门问题