1
0
mirror of synced 2024-11-25 14:56:09 +03:00
This commit is contained in:
gorokh 2020-04-07 13:55:59 +03:00
parent d14a078804
commit fa207afd15

View File

@ -623,6 +623,8 @@ class RetailCrmICML
$offer .= "<price>" . $this->PrepareValue($arOffer['PRICE']) . "</price>\n"; $offer .= "<price>" . $this->PrepareValue($arOffer['PRICE']) . "</price>\n";
if ($arOffer['PURCHASE_PRICE'] && $this->loadPurchasePrice) { if ($arOffer['PURCHASE_PRICE'] && $this->loadPurchasePrice) {
$offer .= "<purchasePrice>" . $this->PrepareValue($arOffer['PURCHASE_PRICE']) . "</purchasePrice>\n"; $offer .= "<purchasePrice>" . $this->PrepareValue($arOffer['PURCHASE_PRICE']) . "</purchasePrice>\n";
} else {
$offer .= "<purchasePrice>0</purchasePrice>\n";
} }
foreach ($categories as $category) { foreach ($categories as $category) {
$offer .= "<categoryId>" . $category['ID'] . "</categoryId>\n"; $offer .= "<categoryId>" . $category['ID'] . "</categoryId>\n";