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

ref #91040 правки в коде

This commit is contained in:
Ivan Chaplygin 2023-07-17 16:47:02 +03:00
parent c1a70ac905
commit facf231c5d
5 changed files with 3 additions and 11 deletions

View file

@ -201,7 +201,7 @@ class CustomerBuilder extends AbstractBuilder implements RetailcrmBuilderInterfa
$this->buildAddress();
}
// клиент подписан при значении равном null
// клиент считается подписанным при значении равном null
if (array_key_exists('emailMarketingUnsubscribedAt', $this->dataCrm)) {
if (empty($this->dataCrm['emailMarketingUnsubscribedAt'])) {
$this->customer->setSubscribe('Y');

View file

@ -155,6 +155,7 @@ class RetailCrmHistory
if ($registerNewUser === true) {
$customerBuilder->buildPassword();
$customerArray = $customerBuilder->getCustomer()->getObjectToArray();
if (!array_key_exists('UF_SUBSCRIBE_USER_EMAIL', $customerArray)) {

View file

@ -42,7 +42,7 @@ ServiceLocator::registerServices([
LoyaltyService::class,
CustomerService::class,
OrderLoyaltyDataService::class,
CustomerBuilder::class,
CustomerBuilder::class
]);
$arJsConfig = [

View file

@ -251,14 +251,6 @@ class intaro_retailcrm extends CModule
$this->addAgreement();
$this->addUserFields();
/* $this->addLPUserFields();
$this->addLPEvents();
$this->addAgreement();
$this->CopyFilesSubscribe();
$this->addSubscribeUserFields();
$this->addSubscriberEvents();*/
OrderLoyaltyDataService::createLoyaltyHlBlock();
$service = new OrderLoyaltyDataService();

View file

@ -101,7 +101,6 @@ class Constants
public const LP_EVENTS = [
['EVENT_NAME' => 'OnSaleOrderSaved', 'FROM_MODULE' => 'sale'],
['EVENT_NAME' => 'OnSaleComponentOrderResultPrepared', 'FROM_MODULE' => 'sale'],
//['EVENT_NAME' => 'OnAfterUserRegister', 'FROM_MODULE' => 'main'],
];
public const SITES_AVAILABLE = 'sites_available';
}