logic fix
This commit is contained in:
parent
30555f8146
commit
735b0f977d
@ -624,11 +624,15 @@ class RetailCrmICML
|
|||||||
$offer .= "<url>" . $this->protocol . $this->serverName . $this->PrepareValue($arOffer['DETAIL_PAGE_URL']) . "</url>\n";
|
$offer .= "<url>" . $this->protocol . $this->serverName . $this->PrepareValue($arOffer['DETAIL_PAGE_URL']) . "</url>\n";
|
||||||
|
|
||||||
$offer .= "<price>" . $this->PrepareValue($arOffer['PRICE']) . "</price>\n";
|
$offer .= "<price>" . $this->PrepareValue($arOffer['PRICE']) . "</price>\n";
|
||||||
if ($arOffer['PURCHASE_PRICE'] && $this->loadPurchasePrice) {
|
|
||||||
|
if ($this->loadPurchasePrice) {
|
||||||
|
if ($arOffer['PURCHASE_PRICE']) {
|
||||||
$offer .= "<purchasePrice>" . $this->PrepareValue($arOffer['PURCHASE_PRICE']) . "</purchasePrice>\n";
|
$offer .= "<purchasePrice>" . $this->PrepareValue($arOffer['PURCHASE_PRICE']) . "</purchasePrice>\n";
|
||||||
} elseif ("Y" == $this->purchasePriceNull) {
|
} elseif ("Y" == $this->purchasePriceNull) {
|
||||||
$offer .= "<purchasePrice>0</purchasePrice>\n";
|
$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";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user