1
0
mirror of synced 2024-11-22 05:16:09 +03:00

Merge pull request #85 from KMityai/master

fixed getting product price from order basket
This commit is contained in:
Alex Lushpai 2019-10-03 15:45:03 +03:00 committed by GitHub
commit da0f976f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -689,7 +689,12 @@ class RetailCrmHistory
}
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');
if (isset($itemCost) && $itemCost >= 0) {