Skip to content

Commit

Permalink
Fix: 2.04.1CBitrix
Browse files Browse the repository at this point in the history
  • Loading branch information
frescoref committed Mar 5, 2023
1 parent 19671a3 commit 124df61
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Core.php
Original file line number Diff line number Diff line change
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

0 comments on commit 124df61

Please sign in to comment.