Skip to main content
 首页 » 编程设计

c#之Magento 1.4 产品标识符类型

2024年02月24日29yxwkf

我在检索我的产品时遇到问题,在 1.3 中它起作用了,我只是在 1.4 中添加了一些产品,但是 capalogProductInfo 中有一个称为产品标识符的新函数,我不知道该放什么,我尝试传递产品类型表单列表,但我不断收到一条错误消息,提示该产品未退出。

谁能帮忙?

catalogProductInfo(sessionId, Product_id, CurrentStore, attributes, productIdentifierType) 

请您参考如下方法:

在我定义我想要返回的属性之前,我不断收到同样的错误(产品不退出):

catalogProductRequestAttributes attrib = new catalogProductRequestAttributes(); 
attrib.attributes = new string[] { "description", "name" }; 
 
catalogProductInfo(sessionId, Product_sku, CurrentStore, attrib, null) 

不知道 productIdentifierType,但 booth null 和“sku”对我有用。