FireGento_FastSimpleImport2 icon indicating copy to clipboard operation
FireGento_FastSimpleImport2 copied to clipboard

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

Open coresh opened this issue 8 years ago • 1 comments

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?

coresh avatar Jan 24 '17 14:01 coresh

Here is sample category import: https://github.com/firegento/FireGento_FastSimpleImport2_Demo/blob/master/Console/Command/Category/ImportCategory.php

maxinesbridge avatar Feb 25 '19 11:02 maxinesbridge