create customer programmatically magento
Hello Friends
If you want to create customer programmatically magento then you can use my below script.
$websiteId = Mage::app()->getWebsite()->getId();
$store = Mage::app()->getStore();
$customer = Mage::getModel("customer/customer");
$customer->website_id = $websiteId;
$customer->setStore($store);
$customer->firstname = "keyur";
$customer->lastname = "shah";
$customer->email = "keyurshah.it@gmail.com";
$customer->password_hash = md5("test123");
$customer->save();
If you want to create customer programmatically magento then you can use my below script.
$websiteId = Mage::app()->getWebsite()->getId();
$store = Mage::app()->getStore();
$customer = Mage::getModel("customer/customer");
$customer->website_id = $websiteId;
$customer->setStore($store);
$customer->firstname = "keyur";
$customer->lastname = "shah";
$customer->email = "keyurshah.it@gmail.com";
$customer->password_hash = md5("test123");
$customer->save();
Let me know if you have any query
0 comments:
Post a Comment