How can I change the order of input fields in billing information page? I am setting up our store with Magento CE image description here

  • what is mean by " change the order of input fields in billing information page"?
    – Amit Bera
    Apr 17, 2015 at 20:25
  • For example i need to have "Email Address" input field before "Company" input field.
    – user24183
    Apr 17, 2015 at 20:36

1 Answer 1


i am going to assume that this is the default code for magento v. and that you are using one page checkout. If so, then you can find the code for this Billing Section in frontend>base>default>template>checkout>onepage>billing.phtml

In that file you will find on line 44-57 the code for email and company fields, you just need to switch the block of code i marked below.

Email-Company Code

Furthermore, i would not suggest doing it on this file as it is very bad practice to edit magento core file, one option would be to create you own theme, copy this file into it and make the changes there(frontend>mypackage>mytheme>template>checkout>onepage>billing.phtml. I am not going to into the details of magento theming here as its a big topic but you can read this article to get a good idea about theming

http://www.magentocommerce.com/knowledge-base/entry/magentos-theme-hierarchy http://code.tutsplus.com/tutorials/magento-for-designers-part-3--net-11050

P.S you can easily find more article on google

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.