Fixed loyalty program rewrite in order
Игнорируем данные из битрикса, если в заказе указана программа лояльности.
This commit is contained in:
parent
693031012d
commit
a834716ea0
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue