1
0
mirror of synced 2024-11-24 05:56:05 +03:00

fix product quantity

This commit is contained in:
Dmitry Mamontov 2015-11-23 11:47:22 +03:00
parent f46e80c88d
commit 2d764de64d

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,
@ -101,4 +100,4 @@ class Parser {
'patronymic' => $patronymic 'patronymic' => $patronymic
); );
} }
} }