0

I have a custom module with an event observer that sends an e-mail to the admin as soon as a new user registers.

In my registration form i am using also the company field. Now I would like to show the company name also in my e-mail to the admin.

How can I call this value? Everything I tried so far did not work. Who can help ?

thanks

1 Answer 1

1

You can try to get it from POST request.

Mage::app()->getRequest()->getParam('your_field_name')
4
  • Now I am trying to get also the Country field but what is field name? It does not work with 'country' . Any idea? Aug 24, 2017 at 12:55
  • Try to do this: $data = Mage::app()->getRequest()->getPost('billing', array()); $country = $data['country'];
    – olkuznw
    Aug 25, 2017 at 12:15
  • Thanks for your effort but unfortunately it does not work (it does not show the country value). Aug 29, 2017 at 11:28
  • Get country input name from phtml template and write here. I will try to help you.
    – olkuznw
    Aug 30, 2017 at 9:04

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.