An open API service indexing awesome lists of open source software.

https://github.com/opsway/magento-mod-emptyvalue

Empty value importer
https://github.com/opsway/magento-mod-emptyvalue

Last synced: about 1 month ago
JSON representation

Empty value importer

Awesome Lists containing this project

README

          

Importing empty values


For the module operation need to override the _saveProducts.

Which is located:


/app/code/core/Mage/ImportExport/Model/Import/Entity/Product.php



replaced:



$rowData = $this->_productTypeModels[$productType]->prepareAttributesForSave($rowData);



to:



$rowDataBefore = $rowData;

$rowData = $this->_productTypeModels[$productType]->prepareAttributesForSave($rowData);

$rowData = new Varien_Object($rowData);

Mage::dispatchEvent('prepare_attributes_empty_value', array('before' => $rowDataBefore, 'after' => $rowData));

$rowData = $rowData->getData();