Hello everyone,
Hope you all are doing good.
I am trying to subscribe new customers through importing csv.
Mage::getModel('newsletter/subscriber')->setImportMode(true)->setData('country','')->subscribe($email);
here i want to set country to NULL. But it is not happening.
But when i used setFlagImport(true) insted of setImportMode(true), it works fine.
Mage::getModel('newsletter/subscriber')->setFlagImport(true)->setData('country','')->subscribe($email);
So, my question is why is it so? Can anyone tell me the difference between setFlagImport(true) and setImportMode(true) while importing csv.
Magento Developer
Ankita Biswas