application/modules/import_export/classes/CategoryImport.php 1 location
|
@@ 86-88 (lines=3) @@
|
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
/* Add translation data for new category */ |
| 86 |
|
foreach ($this->allLanguages as $val) { |
| 87 |
|
$this->db->insert('shop_category_i18n', array('id' => $newCategoryId, 'locale' => $val, 'name' => trim($part))); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
$this->create()->content[$key]['CategoryId'] = $pathIds[] = $parentId = $newCategoryId; |
| 91 |
|
$this->create()->content[$key]['CategoryIds'] = $pathIds; |
application/modules/import_export/classes/BaseImport.php 1 location
|
@@ 589-591 (lines=3) @@
|
| 586 |
|
} |
| 587 |
|
|
| 588 |
|
/* Add translation data for new category */ |
| 589 |
|
foreach ($this->allLanguages as $val) { |
| 590 |
|
$this->db->insert('shop_category_i18n', ['id' => $newCategoryId, 'locale' => $val, 'name' => trim($part)]); |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
$this->content[$key]['CategoryId'] = $pathIds[] = $parentId = $newCategoryId; |
| 594 |
|
$this->content[$key]['CategoryIds'] = $pathIds; |
application/modules/import_export/classes/ProductsImport.php 1 location
|
@@ 701-703 (lines=3) @@
|
| 698 |
|
if (!($result instanceof stdClass)) { |
| 699 |
|
$this->db->insert('shop_brands', ['url' => translit_url($node['brd'])]); |
| 700 |
|
$brandId = $this->db->insert_id(); |
| 701 |
|
foreach ($this->allLanguages as $val) { |
| 702 |
|
$this->db->insert('shop_brands_i18n', ['name' => $node['brd'], 'locale' => $val, 'id' => $brandId]); |
| 703 |
|
} |
| 704 |
|
BaseImport::create()->content[$key]['BrandId'] = $brandId; |
| 705 |
|
} else { |
| 706 |
|
BaseImport::create()->content[$key]['BrandId'] = $result->BrandId; |