开发者

Magento UPC API

开发者 https://www.devze.com 2023-04-06 11:51 出处:网络
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:

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

精彩评论

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