0

How could I get the customer Id selected in magento admin for new order in my payment method block

new order - magento admin

My payment method block extends to Mage_Payment_Block_Form

2
  • What do you mean by "selected"? Commented Apr 19, 2014 at 7:41
  • @Tim for creating new order admin selects a customer or creates a customer. see screenshot Commented Apr 19, 2014 at 8:20

1 Answer 1

2

This is only a single line of code and caused me to wait for hours.

Mage::getSingleton('adminhtml/session_quote')->getCustomerId();

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.