diff --git a/src/app/code/community/AvS/FastSimpleImport/Model/Import/Entity/Product.php b/src/app/code/community/AvS/FastSimpleImport/Model/Import/Entity/Product.php index 02ef8e18..5b6b9c23 100644 --- a/src/app/code/community/AvS/FastSimpleImport/Model/Import/Entity/Product.php +++ b/src/app/code/community/AvS/FastSimpleImport/Model/Import/Entity/Product.php @@ -1411,6 +1411,7 @@ protected function _saveStockItem() /** @var $stockItem Mage_CatalogInventory_Model_Stock_Item */ $stockItem = Mage::getModel('cataloginventory/stock_item'); + $stockItem->setStockId($row['stock_id']); $stockItem->loadByProduct($row['product_id']); $existStockData = $stockItem->getData(); @@ -1454,7 +1455,7 @@ protected function _saveStockItem() protected function _getUploader() { if (is_null($this->_fileUploader)) { - $this->_fileUploader = new Mage_ImportExport_Model_Import_Uploader(); + $this->_fileUploader = Mage::getModel("importexport/import_uploader", null); $this->_fileUploader->init(); $this->_fileUploader->removeValidateCallback('catalog_product_image');