I created a custom tab in the Admin Panel under Customers -> Manage Customers -> My Custom Tab At this point how can I get information about the customer I'm looking at, not the Admin User logged in.

The only tricky way I see is using getUrl and parsing through the url since the ID is in there but is there an easier way?

1 Answer 1


You can access the current customer whose details are editing by following code.

$customer = Mage::registry('current_customer');

Customer instance is already stored in registry so that you can access it anywhere you need.

Hope that helps you.

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.