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 | 553 | } |
554 | 554 | } else { |
555 | 555 | $_product = new Product(); |
556 | + if(!empty($parsed_name['remote_id'])) { | |
557 | + $_product->remote_id = $parsed_name['remote_id']; | |
558 | + } | |
556 | 559 | $_product->generateLangs(); |
557 | 560 | $product_langs = $_product->model_langs; |
558 | 561 | foreach($product_langs as $product_lang) { |
... | ... | @@ -673,6 +676,9 @@ |
673 | 676 | $taxGroup->level = $level; |
674 | 677 | $taxGroup->categories = $catalog_names; |
675 | 678 | $taxGroup->is_filter = false; |
679 | + if(!empty($parsed_group_name['remote_id'])) { | |
680 | + $taxGroup->remote_id = $parsed_group_name['remote_id']; | |
681 | + } | |
676 | 682 | $taxGroup->save(false); |
677 | 683 | } |
678 | 684 | $filters_options = explode(',', $filter[ 2 ][ 0 ]); |
... | ... | @@ -703,6 +709,9 @@ |
703 | 709 | $option_lang->value = $parsed_option_name[ 'name' ]; |
704 | 710 | } |
705 | 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 | 715 | $option->save(false); |
707 | 716 | } |
708 | 717 | $options[] = $option->tax_option_id; | ... | ... |
frontend/views/collection/view.php