Commit e1d67a8e7cafcbaaa29301f5784bb61fc41d162e
1 parent
c74e7832
Import
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
common/modules/product/models/Import.php
@@ -553,6 +553,9 @@ | @@ -553,6 +553,9 @@ | ||
553 | } | 553 | } |
554 | } else { | 554 | } else { |
555 | $_product = new Product(); | 555 | $_product = new Product(); |
556 | + if(!empty($parsed_name['remote_id'])) { | ||
557 | + $_product->remote_id = $parsed_name['remote_id']; | ||
558 | + } | ||
556 | $_product->generateLangs(); | 559 | $_product->generateLangs(); |
557 | $product_langs = $_product->model_langs; | 560 | $product_langs = $_product->model_langs; |
558 | foreach($product_langs as $product_lang) { | 561 | foreach($product_langs as $product_lang) { |
@@ -673,6 +676,9 @@ | @@ -673,6 +676,9 @@ | ||
673 | $taxGroup->level = $level; | 676 | $taxGroup->level = $level; |
674 | $taxGroup->categories = $catalog_names; | 677 | $taxGroup->categories = $catalog_names; |
675 | $taxGroup->is_filter = false; | 678 | $taxGroup->is_filter = false; |
679 | + if(!empty($parsed_group_name['remote_id'])) { | ||
680 | + $taxGroup->remote_id = $parsed_group_name['remote_id']; | ||
681 | + } | ||
676 | $taxGroup->save(false); | 682 | $taxGroup->save(false); |
677 | } | 683 | } |
678 | $filters_options = explode(',', $filter[ 2 ][ 0 ]); | 684 | $filters_options = explode(',', $filter[ 2 ][ 0 ]); |
@@ -703,6 +709,9 @@ | @@ -703,6 +709,9 @@ | ||
703 | $option_lang->value = $parsed_option_name[ 'name' ]; | 709 | $option_lang->value = $parsed_option_name[ 'name' ]; |
704 | } | 710 | } |
705 | $option->tax_group_id = $taxGroup->tax_group_id; | 711 | $option->tax_group_id = $taxGroup->tax_group_id; |
712 | + if(!empty($parsed_option_name['remote_id'])) { | ||
713 | + $option->remote_id = $parsed_option_name['remote_id']; | ||
714 | + } | ||
706 | $option->save(false); | 715 | $option->save(false); |
707 | } | 716 | } |
708 | $options[] = $option->tax_option_id; | 717 | $options[] = $option->tax_option_id; |
frontend/views/collection/view.php