magento soap api v2 catalogProductInfo不起作用 [英] magento soap api v2 catalogProductInfo not working

查看:68
本文介绍了magento soap api v2 catalogProductInfo不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我如下调用api函数时

When i call the api function as follows

<?php $result = $client->catalogProductInfo($session, $id, null, 'sku'); ?>

我收到以下错误.我肯定所有传递的变量都已正确设置,因为其他magento api函数也能正常工作.

I get the following error. I'm positive that all the passed variables are set correctly, as other magento api functions work just fine.

产品不存在 错误:发生内部错误.

Product not exists Error: An Internal Error Has Occurred.

我假设调用语法有问题.我找不到用sku而不是产品ID调用 catalogProductInfo 的正确示例. 文档 http://www.magentocommerce.com/api/soap /catalog/catalogProduct/catalog_product.info.html 告诉我我的电话是正确的.

I'm assuming that it's a fault with the call syntax. I couldn't find a proper example of calling catalogProductInfo with sku instead of product id. The documentation http://www.magentocommerce.com/api/soap/catalog/catalogProduct/catalog_product.info.html suggests to me that my call is correct.

任何关于我在做错事情的想法都将受到高度赞赏.

Any ideas as to what I'm doing wrong are highly appreciated.

推荐答案

尝试提交一个空格作为SKU的最后一个字符. 例如如果SKU为"1234",请提交"1234 ".

Try to submit a space as last character of your SKU. e.g. if SKU is "1234" submit "1234 ".

如果您提交的sku仅包含数字,则有时会出现此问题.

This issue sometimes occurs, if your submitted sku only contains numbers.

这篇关于magento soap api v2 catalogProductInfo不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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