dweeves / magmi-git

Magmi GitHub
364 stars 307 forks source link

Re-open categories not assigned to correct root category #214

Open mag-extension opened 9 years ago

mag-extension commented 9 years ago

Hi,

Not sure how I can reopen an issue or if you see comments on closed issues. Anyway, can we reopen this issue? I have the same problem in the latest verson.

https://github.com/dweeves/magmi-git/issues/127

So the issue is that categories are not assigned to the correct root category, I have the correct store in my upload file.

Nesse commented 9 years ago

I'm also having the same problem. I've set the correct store view code and all categories are still added to the default root category. This is how I create and update my catalog:

  1. I create my products with the admin store as default and don't use the categories. => watch csv
  2. Now I update all the products with the correct translated data and assign categories to the products. => watch csv

I'm I doing something wrong. I'm using the latest version.

dweeves commented 9 years ago

To have to explicitely define "which" root category to use corresponding to your store.

Say , your french store with store view name "fr" has a root category called "Produits fr"

To have new categories created under the "Produits fr" you need to have:

store column : fr categories column : [Produits fr]/Categorie fr 1/Categorie fr 2

The name of the root category of the store has to be put between []

see http://wiki.magmi.org/index.php?title=On_the_fly_category_creator/importer#Multiple_Store_roots_management

Nesse commented 9 years ago

Thx for the fast response.

I've already tried both approaches without success. This is my csv with the root categories in front.

And here is a list of my errors:

SKU 5172 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5173 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5174 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5175 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5176 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5177 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5178 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5179 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands
SKU 5180 - On the fly category creator/importer v0.2.5 - Cannot find site root with names : Nederlands,Nederlands

This is a screenshot from my stores:

Magento Stores

dweeves commented 9 years ago

For whatever reason, magmi does not see the Nederlands root category correctly. maybe due to 2 stores sharing this root cat. it may be more efficient for me to trace the problem that you give me access to the magmi install and send me credentials by mail.

Nesse commented 9 years ago

Thx @dweeves for the great support. Can I give you access to my local test environment with some teamviewer credentials? Otherwise I will need to setup an online test environment and send you the credentials.

Nesse commented 9 years ago

Hi @dweeves. I was on holiday the past 2 weeks. Is this issue resolved or should i setup a test environment?

dweeves commented 9 years ago

Le 23/04/2015 11:02, Nesse a écrit :

Hi @dweeves https://github.com/dweeves. I was on holiday the past 2 weeks. Is this issue resolved or should i setup a test environment?

— Reply to this email directly or view it on GitHub https://github.com/dweeves/magmi-git/issues/214#issuecomment-95498078.

I'll be interested by a test environment

virfaure commented 9 years ago

Hello, The same here with 2 stores and 2 root categories. In the csv, I only put the store column and the products are assigned to the category with smallest ID (default 2). Tracking down the code, it seems that there is a problem in plugins/extra/itemprocessors/categories/categoryimport.php on line 367.

$sids contains the store id of the item but with:

$sids = array_keys($this->_catroots);

you loose this information as $this->_catroots is not filtered by the item store id.

Next line returns the category info with the smallest id :

$srp = $this->_catroots[$sids[0]];
pmainguet commented 8 years ago

Hi! Have the same issue under 0.7.21, even by correctly configuring store, root category ... I have products added to the correct root category AND the default one. Was it resolved in the next version or is it still pending ?

madnazz commented 8 years ago

Hi dweeves, we had also the problem with root category (magenot:1.9.2.4) We had 3 Stores in 3 Languages per Stores, we had a test envoirment you can test there, let me know...