-
- hmpierson

-
Total Posts: 100
Joined: 2008-11-15
|
Does this code help? I think I found the “magic” value of ‘visibility’ by doing an print_r for product.info of an existing “visible” product
$attributeSets = $proxy->call($sessionId, ‘product_attribute_set.list’);
$set = current($attributeSets);
$newProductData = array(
‘name’ => $name,
‘description’ => $CONTENT,
‘websites’ => array(’web1’, ‘web2’) ,
‘short_description’ => $shortdesc,
‘price’ => $price,
‘special_price’ => $special_price,
‘manufacturer’ => $ip[1],
‘type_id’ => ‘simple’,
‘tax_class_id’ => ‘0’,
‘status’ => ‘1’,
‘visibility’ => ‘4’,
‘weight’ => $weight,
‘category_ids’ => $cat_array,
‘url_key’ => $url_key,
‘organic’ => (string) $organic,
‘vegetarian’ => (string) $vegetarian
);
$proxy->call($sessionId, ‘product.create’, array(’simple’, $set[’set_id’], $sku, $newProductData));
pennychau - 06 October 2009 05:34 AM webmagic, of course we do have “status” defined. what i really need is importing product frohm API.
|