1

I wanted to add an additional field or remove the "Fax" field in Magento Onepage checkout.

Has anyone had to do something similar?

If anyone could share with me how I can change or add these fields so they they appear in Customer account page, Sales_Order/View page and invoices etc I would be very thankful.

4

The easiest way is definitely renaming Fax field into Mobile. To do so create (or edit if exists) locale/en_US/translate.csv file of your theme and add the following line:

"Fax","Mobile"

If you have different locale then English you have to create a directory with your locale code instead of en_US.

| improve this answer | |
1

There are the basic step to remove the unnecessary fields from the one page checkout. Just delete the following template file.

1./app/design/frontend/base/default/template/checkout/onepage/billing.phtml

2./app/design/frontend/base/default/template/checkout/onepage/shipping.phtml

But, it would be better to setting up & editing a new templates via layout XML rather than to changes on the core template.

Check this for a help:

  <?xml version="1.0"?>
  <layout version="0.1.0">
    <checkout_onepage_index>
        <reference name="checkout.onepage.billing">
           <action method="set Template"><template>new/checkout/onepage/billing.phtml</template></action>
        </reference>       
        <reference name="checkout.onepage.shipping">
           <action method="setTemplate"><template>new/checkout/onepage/shipping.phtml</template></action>
        </reference>
    </checkout_onepage_index>
  </layout>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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