Magento News
How to pull all products and their attributes off Magento using SOAP v2
After three days of occasionally fruitful headbanging I am able to pull a collection of products off a Magento website and obtain the extra attributes for a specific product, but I really need a full dump of all products and their attributes.
So this works for an individual product:
$sku='HHAM-6';
$attributes = new stdClass();
$attributes->attributes = array('description', 'short_description', 'price');
$list = $client->catalogProductInfo($session, $sku, NULL, $attributes,'');
print_r($list);
and this works to get the basic info on all products:
$params = '';
$result = $client->catalogProductList($session, $params);
print_r($result);
So how do I meld the two? The output of the latter includes:
[product_id] => 1
[sku] => HHAM-6
How do I then integrate the first routine for each product? Some kind of foreach construct?
Sorry if this is too obvious but any assistance welcome.
Tim
How to pull all products and their attributes off Magento using SOAP v2
Possibly Related Posts:
- Database query different results
- Menu highlight in magento under admin
- magento disable a banner on certain category pages or have a banner with multiple links
- Magento, using ACL for frontend. Possible?
- Magento IE-7 Fix In Windows XP
RSS Feed