Add new customer account by coding
Here is full code....
<?php $new_customer = Mage::getModel('customer/customer');
$email = 'example@gmail.com';
$new_customer->setWebsiteId(Mage::app()->getWebsite()->getId());
$new_customer->loadByEmail($email);
if(!$new_customer->getId()) {
$new_customer->setEmail($email);
$new_customer->setFirstname('Test');
$new_customer->setLastname('Test');
$new_customer->setPassword('12345');
}
try {
$new_customer->save();
$new_customer->setConfirmation(null);
$new_customer->save();
}
catch (Exception $ex) {
}
Labels: Magento