1
0
mirror of synced 2024-11-21 20:46:04 +03:00

Merge pull request #2 from dmamontov/master

fix product quantity
This commit is contained in:
Alex Lushpai 2015-11-23 11:49:46 +03:00
commit b0fc046f96

View File

@ -64,9 +64,8 @@ class Parser {
}
$items = array();
$xmlItems = $xml->items;
$xmlItems = $xml->items->item;
foreach($xmlItems as $xmlItem) {
$xmlItem = $xmlItem->item;
$items[] = array(
'productId' => (string)$xmlItem['id'],
'productName' => (string)$xmlItem->name,
@ -101,4 +100,4 @@ class Parser {
'patronymic' => $patronymic
);
}
}
}