Skip to content

Commit

Permalink
Merge pull request #16 from wc1c/dev
Browse files Browse the repository at this point in the history
Dev 0.10.2
  • Loading branch information
frescoref authored Mar 5, 2023
2 parents 9e8c7d7 + cb21d13 commit 263501b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -2696,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)
{
Expand Down

0 comments on commit 263501b

Please sign in to comment.