Categories

Featured templates

Magento. How to edit the Orders and Returns page

Alice Weasley August 6, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial shows how to edit the Orders and Returns page in Magento.

Magento. How to edit the Orders and Returns page

  1. Navigate to app/design/frontend/base/default/template/sales/guest/form.phtml inside your site directory on the server via FTP or on your hosting cPanel and copy the form.phtml file to app/design/frontend/default/themeXXX/template/sales/guest. If you do not have the guest folder, you need to create it first.

    We strongly recommend that you back up the file before editing it:

    Magento_How_to_edit_Orders_and_Returns_page_1

  2. There you can edit the form code:

    Magento_How_to_edit_Orders_and_Returns_page_2

    1. The Order ID field is set by this code:

    2. If you want the field not to be required, you need to take away the “required” class from the item. For example:

      instead of

    3. The Billing Last Name code:

    4. __('Enter the billing last name and email/ZIP as in the order billing address') ?>.
    5. The code for Find Order By:

    6. The code that shows the Email address field when it is selected from Find Order By: is the following:

    7. The code that shows the Billing ZIP Code field when it is selected from Find Order By: is the following:

       
    8. And the Continue button is set with the help of this code:

      __('* Required Fields') ?>

  3. You can remove the fields if needed. When all the necessary changes are made, click Save and refresh the site to see the changes.

You may also need to clear the cache.

Feel free to check the detailed video tutorial below:

Magento. How to edit the Orders and Returns page

Themes for Magento
This entry was posted in Magento Tutorials and tagged Magento, orders, page, returns. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket