From 1a0d4e48b3362e0137dd7f324b6ed28e69ad5a76 Mon Sep 17 00:00:00 2001 From: Jorge Venzon Date: Fri, 9 Feb 2024 23:47:03 -0300 Subject: [PATCH] Fixed acceptsMarketing on customer update. --- Customer/Model/Customer.php | 1 + Customer/composer.json | 2 +- Customer/etc/module.xml | 2 +- composer.json | 2 +- marketplace-composer.json | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Customer/Model/Customer.php b/Customer/Model/Customer.php index 8a78223..0fd6edc 100644 --- a/Customer/Model/Customer.php +++ b/Customer/Model/Customer.php @@ -240,6 +240,7 @@ public function updateCustomers() $numberOfCustomers = (int)$this->customerHelper->getNumberOfCustomers(); $customers = $this->customerResourceCollectionFactory->create() ->addAttributeToSelect('ac_contact_id') + ->addAttributeToSelect('ac_customer_id') ->addAttributeToFilter('ac_contact_id', ['neq' => null]) ->addAttributeToFilter(self::AC_SYNC_STATUS, ['eq' => CronConfig::SYNCED]) ->addAttributeToFilter('updated_at', ['gt' => $lastUpdate]) diff --git a/Customer/composer.json b/Customer/composer.json index 42245a1..7adcb4a 100644 --- a/Customer/composer.json +++ b/Customer/composer.json @@ -9,7 +9,7 @@ "config": { "sort-packages": true }, - "version": "2.1.6", + "version": "2.1.7", "require": { "php": "~7.3.0||~7.4.0||~8.0||~8.1||~8.2", "activecampaign/core": "2.1.*" diff --git a/Customer/etc/module.xml b/Customer/etc/module.xml index 95c184a..3b4ab7e 100644 --- a/Customer/etc/module.xml +++ b/Customer/etc/module.xml @@ -1,6 +1,6 @@ - + diff --git a/composer.json b/composer.json index 4023226..b3d2d2c 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "activecampaign/module-integration", "description": "ActiveCampaign extension for Magento 2.3 and 2.4", "type": "magento2-component", - "version": "2.0.14", + "version": "2.0.15", "license": "OSL-3.0", "require": { "php": "~7.3.0||~7.4.0||~8.0||~8.1||~8.2" diff --git a/marketplace-composer.json b/marketplace-composer.json index a0178c4..ecbd1fe 100644 --- a/marketplace-composer.json +++ b/marketplace-composer.json @@ -2,7 +2,7 @@ "name": "activecampaign/module-integration", "description": "ActiveCampaign extension for Magento 2.3 and 2.4", "type": "metapackage", - "version": "2.0.14", + "version": "2.0.15", "license": [ "OSL-3.0" ],