1
0
mirror of synced 2024-11-24 22:16:06 +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(); $items = array();
$xmlItems = $xml->items; $xmlItems = $xml->items->item;
foreach($xmlItems as $xmlItem) { foreach($xmlItems as $xmlItem) {
$xmlItem = $xmlItem->item;
$items[] = array( $items[] = array(
'productId' => (string)$xmlItem['id'], 'productId' => (string)$xmlItem['id'],
'productName' => (string)$xmlItem->name, 'productName' => (string)$xmlItem->name,