Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force to set the specified store id concerning to category import? #41

Open
coresh opened this issue Jan 24, 2017 · 1 comment
Open

Comments

@coresh
Copy link

coresh commented Jan 24, 2017

As described at:

http://firegento-fastsimpleimport2.readthedocs.io/en/latest/Category.html

This data is well done during importing a category regarding the default store:

$categoryArray = [
    [
        '_root' => 'Default Category',
        '_category' => 'FireGento TestCategory',
        'description' => 'Test',
        'is_active' => '1',
        'include_in_menu' => '1',
        'meta_description' => 'Meta Test',
        'available_sort_by' => 'position',
        'default_sort_by' => 'position',
    ],
];

File example: "example_categories.csv" no success to force the setting of store id:

regarding to the line 55, field "_store" - prep-ended to the csv file:
https://github.com/firegento/FireGento_FastSimpleImport2/blob/master/Model/Import/Category.php#L56
const COL_STORE = '_store';

example_categories_v.1.csv (regarding to update the specified store ID not worked):

"_store","_root","_category","description","is_active","include_in_menu","meta_description","available_sort_by","default_sort_by"
"5","Default Category","Category__5__store__5","Description__2__store__5","1","1","Meta__2__store__5","position","position"
"5","Default Category","Category__7__store__5","Description__2__store__5","1","1","Meta__2__store__5","position","position"
"12","Default Category","Category__12__store__12","Description__2__store__12","1","1","Meta__2__store__12","position","position"
"12","Default Category","Category__14__store__12","Description__2__store__12","1","1","Meta__2__store__12","position","position"

example_categories_v.2.csv (regarding to update the specified store CODE also not worked):

"_store","_root","_category","description","is_active","include_in_menu","meta_description","available_sort_by","default_sort_by"
"ru_ru","Default Category","Category__5__store__5","Description__2__store__5","1","1","Meta__2__store__5","position","position"
"ru_ru","Default Category","Category__7__store__5","Description__2__store__5","1","1","Meta__2__store__5","position","position"
"en_us","Default Category","Category__12__store__12","Description__2__store__12","1","1","Meta__2__store__12","position","position"
"en_us","Default Category","Category__14__store__12","Description__2__store__12","1","1","Meta__2__store__12","position","position"

How can i add the field with the specified store id / store code into csv file?

@maxinesbridge
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants