0

If I am on the admin section for creating manual orders and I have selected to use an existing customer rather than create a new one how can I access that customers details?

To clarify, by manual orders I mean by clicking - Sales -> Orders -> Create New Order and then selecting a customer to create an order for.

I'm hoping there is a function similar to the Mage::registry for products and categories so that I can select the customer email address within a template loaded via a custom module.

1 Answer 1

2

Customer is saved in session. Assuming you are on the order create page, you can retrieve it like this:

Mage::getSingleton('adminhtml/session_quote')->getCustomer();
2
  • perfect - thank you! Jan 13, 2015 at 17:26
  • And for Magento 2? Dec 18, 2019 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.