File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1459,13 +1459,13 @@ protected function _saveProductCategories(array $categoriesData)
14591459
14601460 foreach ($ categoriesData as $ delSku => $ categories ) {
14611461 $ productId = $ this ->_newSku [$ delSku ]['entity_id ' ];
1462- $ delProductId [] = $ productId ;
14631462
14641463 foreach ($ categories as $ categoryId => $ position ) {
1464+ $ delProductId [$ productId ] = $ productId ;
14651465 $ categoriesIn [] = array ('product_id ' => $ productId , 'category_id ' => $ categoryId , 'position ' => (int ) $ position );
14661466 }
14671467 }
1468- if (Mage_ImportExport_Model_Import::BEHAVIOR_APPEND != $ this ->getBehavior ()) {
1468+ if (Mage_ImportExport_Model_Import::BEHAVIOR_APPEND != $ this ->getBehavior () && sizeof ( $ delProductId ) ) {
14691469 $ this ->_connection ->delete (
14701470 $ tableName ,
14711471 $ this ->_connection ->quoteInto ('product_id IN (?) ' , $ delProductId )
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function _initAttributes()
7575 'code ' => $ attribute ->getAttributeCode (),
7676 'for_configurable ' => $ attribute ->getIsConfigurable (),
7777 'is_global ' => $ attribute ->getIsGlobal (),
78- 'is_required ' => $ attribute -> getIsRequired () ,
78+ 'is_required ' => false ,
7979 'is_unique ' => $ attribute ->getIsUnique (),
8080 'frontend_label ' => $ attribute ->getFrontendLabel (),
8181 'is_static ' => $ attribute ->isStatic (),
Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ public function saveData()
183183 $ productData = $ newSku [$ rowData [Mage_ImportExport_Model_Import_Entity_Product::COL_SKU ]];
184184 } else {
185185 $ colAttrSet = Mage_ImportExport_Model_Import_Entity_Product::COL_ATTR_SET ;
186- $ productData = $ newSku [$ rowData [Mage_ImportExport_Model_Import_Entity_Product::COL_SKU ]];
187186 $ rowData [$ colAttrSet ] = $ productData ['attr_set_code ' ];
188187 $ rowData [Mage_ImportExport_Model_Import_Entity_Product::COL_TYPE ] = $ productData ['type_id ' ];
189188 }
Original file line number Diff line number Diff line change 1010<config >
1111 <modules >
1212 <AvS_FastSimpleImport >
13- <version >0.8.0 </version >
13+ <version >0.8.2 </version >
1414 </AvS_FastSimpleImport >
1515 </modules >
1616
You can’t perform that action at this time.
0 commit comments