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