| @@ 426-428 (lines=3) @@ | ||
| 423 | } |
|
| 424 | ||
| 425 | /* Add translation data for new category */ |
|
| 426 | foreach ($this->allLanguages as $val) { |
|
| 427 | $this->db->insert('shop_category_i18n', ['id' => $newCategoryId, 'locale' => $val, 'name' => trim($part)]); |
|
| 428 | } |
|
| 429 | ||
| 430 | $this->content[$key]['CategoryId'] = $pathIds[] = $parentId = $newCategoryId; |
|
| 431 | $this->content[$key]['CategoryIds'] = $pathIds; |
|
| @@ 722-724 (lines=3) @@ | ||
| 719 | if (!($result instanceof stdClass)) { |
|
| 720 | $this->db->insert('shop_brands', ['url' => translit_url($node['brd'])]); |
|
| 721 | $brandId = $this->db->insert_id(); |
|
| 722 | foreach ($this->allLanguages as $val) { |
|
| 723 | $this->db->insert('shop_brands_i18n', ['name' => $node['brd'], 'locale' => $val, 'id' => $brandId]); |
|
| 724 | } |
|
| 725 | BaseImport::create()->content[$key]['BrandId'] = $brandId; |
|
| 726 | } else { |
|
| 727 | BaseImport::create()->content[$key]['BrandId'] = $result->BrandId; |
|