- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
Magento. How to edit the Orders and Returns page
August 6, 2015
This tutorial shows how to edit the Orders and Returns page in Magento.
Magento. How to edit the Orders and Returns page
-
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:
-
There you can edit the form code:
-
The Order ID field is set by this code:
-
If you want the field not to be required, you need to take away the “required” class from the item. For example:
instead of
-
-
The Billing Last Name code:
-
__('Enter the billing last name and email/ZIP as in the order billing address') ?>.
-
-
The code for Find Order By:
-
-
The code that shows the Email address field when it is selected from Find Order By: is the following:
-
-
The code that shows the Billing ZIP Code field when it is selected from Find Order By: is the following:
-
And the Continue button is set with the help of this code:
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: