From 124df61f39987759dc17514c0509565df4ce4e8e Mon Sep 17 00:00:00 2001 From: Oleg <109225168+frescoref@users.noreply.github.com> Date: Sun, 5 Mar 2023 23:31:51 +0300 Subject: [PATCH 1/3] Fix: 2.04.1CBitrix --- Core.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Core.php b/Core.php index 313d870..9e33b2a 100644 --- a/Core.php +++ b/Core.php @@ -2439,11 +2439,6 @@ protected function getVariationParentAttributes(array $attributes, ProductContra */ public function assignProductsItemAttributes(ProductContract $internal_product, ProductDataContract $external_product, string $mode, Reader $reader): ProductContract { - if($reader->getFiletype() !== 'import') - { - return $internal_product; - } - if('create' === $mode && 'yes' !== $this->getOptions('products_create_adding_attributes', 'yes')) { return $internal_product; @@ -2474,7 +2469,7 @@ public function assignProductsItemAttributes(ProductContract $internal_product, { $this->log()->info(__('Processing of product properties.', 'wc1c-main')); - $classifier_properties = maybe_unserialize($this->configuration()->getMeta('classifier-properties:' . $reader->getFiletype() . ':' . $reader->catalog->getClassifierId())); + $classifier_properties = maybe_unserialize($this->configuration()->getMeta('classifier-properties:' . $reader->catalog->getClassifierId())); foreach($external_product->getPropertyValues() as $property_id => $property_value) { From 9049b985963bb65c7652783dfa4d209b445411d5 Mon Sep 17 00:00:00 2001 From: Oleg <109225168+frescoref@users.noreply.github.com> Date: Sun, 5 Mar 2023 23:32:44 +0300 Subject: [PATCH 2/3] Version: 0.10.2 --- Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core.php b/Core.php index 9e33b2a..7f088ad 100644 --- a/Core.php +++ b/Core.php @@ -57,7 +57,7 @@ class Core extends SchemaAbstract public function __construct() { $this->setId('productscml'); - $this->setVersion('0.10.1'); + $this->setVersion('0.10.2'); $this->setName(__('Products data exchange via CommerceML', 'wc1c-main')); $this->setDescription(__('Creation and updating of products (goods) in WooCommerce according to data from 1C using the CommerceML protocol of various versions.', 'wc1c-main')); From cb21d13f71a5d5e00eccbe41934f53874f3e156b Mon Sep 17 00:00:00 2001 From: Oleg <109225168+frescoref@users.noreply.github.com> Date: Sun, 5 Mar 2023 23:35:14 +0300 Subject: [PATCH 3/3] Fix: more --- Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core.php b/Core.php index 7f088ad..f16dc7f 100644 --- a/Core.php +++ b/Core.php @@ -2691,7 +2691,7 @@ public function assignOffersItemAttributes(ProductContract $internal_product, Pr $property_values_from_characteristics = $external_product->getCharacteristics(); } - $classifier_properties = maybe_unserialize($this->configuration()->getMeta('classifier-properties:' . $reader->getFiletype() . ':' . $reader->offers_package->getClassifierId())); + $classifier_properties = maybe_unserialize($this->configuration()->getMeta('classifier-properties:' . $reader->offers_package->getClassifierId())); foreach($external_product->getPropertyValues() as $property_id => $property_value) {