1
0
Fork 0
mirror of synced 2025-04-04 14:23:33 +03:00

Fixed loyalty program rewrite in order

Игнорируем данные из битрикса, если в заказе указана программа лояльности.
This commit is contained in:
Viktor 2023-10-25 12:14:25 +03:00 committed by GitHub
parent 693031012d
commit a834716ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,8 +253,8 @@ class LoyaltyAccountService
$file = 'loyaltyStatus';
$privilegeType = 'none';
if (!empty($arParams['customerCorporate']['privilegeType'])) {
$privilegeType = $arParams['crmOrder']['privilegeType'];
if (isset($arParams['crmOrder']['privilegeType'])) {
return $arParams['crmOrder']['privilegeType'];
} elseif (ConfigProvider::getLoyaltyProgramStatus() === 'Y' && self::getLoyaltyPersonalStatus()) {
$privilegeType = 'loyalty_level';
}