php - Delete a Customer Progmatically in Magento -
how can delete customer in magento refering or using object mage::getmodel("customer/customer") ?
i researched in google , bad luck found nothing.
i find out. customer eav products can deleted using delete() method. flag object deleteable using $customer->setisdeleteable(true) because customer model class mage_customer_model_customer implements mage_core_model_abstract contains delete() method
i used following codes below
$customer->loadbyemail('test@test.com'); $customer->setisdeleteable(true); $customer->delete(); if want deletion workout in frontend(in case backend) need initiate mage::register('issecurearea', true)
Comments
Post a Comment