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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -