I need to get the account details of a registered customer and use them in the invoice PDF. The customer belongs to customer group "testgroup". By using the order details I can get the customer group and check if the customer belongs to "testgroup".
How do I get the customer ID and the rest of the account details?
Best Answer
Given $order, I can get the email from the order like this:
Then I can get the account details with the following code:
Credit: http://www.techdilate.com/code/magento-get-customer-details-by-email-id/