I want to get a list of all the products in my Magento stores. the problem is configurable and grouped products. i want to transfer products to another server with external framework, i want to get configurable and grouped products with their associated simple products as a field.
1 Answer
$client = new SoapClient('https://www.yourstoreURL.com/api/v2_soap/?wsdl');
$session = $client->login('xml/soap username', 'xml/soap password');
$complexFilter = array(
'complex_filter' => array(
array(
'key' => 'type',
'value' => array('key' => 'in', 'value' => 'configurable')
)
)
);
$result = $client->catalogProductList($session, $complexFilter);
echo "<pre>";
print_r($result);
-
Code-only answers are advised against, please provide a small explanation along with your piece of code. Commented Apr 21, 2017 at 13:30
json
text and send it to another server .