Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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');
Expand Down