fixed getting product price from order basket
This commit is contained in:
parent
d06567ce7f
commit
3ea5e69e81
@ -689,7 +689,12 @@ class RetailCrmHistory
|
||||
}
|
||||
|
||||
if (array_key_exists('discountTotal', $product)) {
|
||||
$itemCost = $item->getField('PRICE');
|
||||
|
||||
if (empty($itemCost)) {
|
||||
$itemCost = $item->getField('BASE_PRICE');
|
||||
}
|
||||
|
||||
$discount = (double) $item->getField('DISCOUNT_PRICE');
|
||||
|
||||
if (isset($itemCost) && $itemCost >= 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user