Get Customer Details using Email Id – Magento

Get Customer Details using Email Id – Magento

In this post we will show you how to Get Customer Details using Email Id in Magento. we will give you top for get Customer Details using Email Id.

For Get Customer Details using Email Id – Magento

  • If we have email id of customer and we need to get details of customer
  • This code will return customer object details and detail
    // Get Customer Details using Email Id 
    // add custome email id 
    $customerEmail = "ingo@onlinecode";
    $_customer = Mage::getModel("customer/customer");
    // load customer by email id
    // remove comments for display all detail of Customer
    // echo "<pre>";
    // print_r($_customer);
    // echo "</pre>";
    // basic detail of customer
	// customer Full Name
	// customer First Name
	// customer Middle Name
	// customer Last Name
    // customer other customer detail
	// get customer ID of website/store
	// get customer Entity Id
	// get customer Entity Type Id
	// get customer Attribute Set Id
	// get customer email Id
	// get customer Group Id
	// get customer Store Id
	// get customer created time
	// get customer Update time
	// yyyy-mm-dd hh:mm:ss
	// customer is active 1 or 0(not active)	
    $_customer->getIsActive(); //
	// Admin 
	// get customer Gender
    $_customer->getDefaultBilling(); // ID
    $_customer->getDefaultShipping(); // ID
	// get customer Dob (yyyy-mm-dd hh:mm:ss)
	// get customer dob
	// ID customer Tax Class 

You also like Get Order Details using Order and customer registration programmatically and Magento2 admin login user detail and Magento 2 Featured products

Leave a Comment

Your email address will not be published. Required fields are marked *

4  +  5  =  

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US