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
- Host: GitHub
- URL: https://github.com/opsway/magento-mod-emptyvalue
- Owner: opsway
- Created: 2013-06-14T11:40:04.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-27T12:58:01.000Z (almost 13 years ago)
- Last Synced: 2025-01-19T11:17:57.005Z (over 1 year ago)
- Language: PHP
- Size: 121 KB
- Stars: 0
- Watchers: 47
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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();