Skip to content

Commit

Permalink
ENGCOM-2241: magento-engcom/import-export-improvements#88: Set store …
Browse files Browse the repository at this point in the history
…id on import product category initialization to 0 #112
  • Loading branch information
Stanislav Idolov authored Jul 18, 2018
2 parents a3e285f + 5eab03b commit ac0c755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ protected function initCategories()
$collection->addAttributeToSelect('name')
->addAttributeToSelect('url_key')
->addAttributeToSelect('url_path');
$collection->setStoreId(\Magento\Store\Model\Store::DEFAULT_STORE_ID);
/* @var $collection \Magento\Catalog\Model\ResourceModel\Category\Collection */
foreach ($collection as $category) {
$structure = explode(self::DELIMITER_CATEGORY, $category->getPath());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
product_websites,store_view_code,attribute_set_code,product_type,categories,sku,price,name,url_key
base,,Default,simple,Default Category/category-defaultstore,product,123,product,product
base,,Default,simple,Default Category/category-admin,product,123,product,product
,default,Default,simple,,product,,product-default,product-default
,fixturestore,Default,simple,,product,,product-fixture,product-fixture

0 comments on commit ac0c755

Please sign in to comment.