开发者

Magento UPC API

What is the Array options for Products.update? I need to add UPC information to all of my products and I want to build a script to perform this task:

$client->call($session, 'catalog_product.update', array($product['sku'], 'upc'=>$xml));

Its not working because I don't know the UPC - XML=>UPC equivalent. Any ideas?开发者_如何学运维


If indeed your custom attribute code is 'ups', then you need to do the following:

$client->call($session, 'catalog_product.update', array($product['sku'], array('upc' => $xml)));

There was an error with your code. You need to send the upc in an array, which you were not declaring. I assume your $xml is the upc value for the product?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜