Commit e1d67a8e7cafcbaaa29301f5784bb61fc41d162e

Authored by Yarik
1 parent c74e7832

Import

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
... ... @@ -52,7 +52,7 @@
52 52 </div>
53 53 <table>
54 54 <tr>
55   - <td><?php echo Yii::t('app', 'Номер по каталогу'); ?>:</td>
  55 + <td><?php echo Yii::t('app', 'Название'); ?>:</td>
56 56 <td>
57 57 <?php
58 58 echo $variant->sku;
... ...