- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
OpenCart 2.x. How to edit the Returns page
March 16, 2016
OpenCart 2.x. How to edit the Returns page
This tutorial shows how to edit the Returns page in OpenCart:

-
Navigate to catalog/view/theme/themeXXX/template/account/return_info.tpl inside your site directory on server via FTP or in your hosting cPanel and open it with any code editor.
We strongly recommend backing up the file before editing it.
-
There you can edit the form code.
-
The Return ID field is set by this code:
<b><?php echo $text_return_id; ?></b> #<?php echo $return_id; ?>
The Date added code:
<b><?php echo $text_date_added; ?></b> <?php echo $date_added; ?></td>
The Order ID code:
<b><?php echo $text_order_id; ?></b> #<?php echo $order_id; ?>
The Order Date code:
<b><?php echo $text_date_ordered; ?></b> <?php echo $date_ordered; ?></td>
To remove the Product name section, you need to delete these parts of code:
line 37
<td class="text-left" style="width: 33.3%;"><?php echo $column_product; ?></td>
and line 44
<td class="text-left"><?php echo $product; ?></td>
The code for Model section:
line 38
<td class="text-left" style="width: 33.3%;"><?php echo $column_model; ?></td>
and line 45
<td class="text-left"><?php echo $model; ?></td>
The code that shows the Quantity fields is the following:
line 39
<td class="text-right" style="width: 33.3%;"><?php echo $column_quantity; ?></td>
and line 46
<td class="text-right"><?php echo $quantity; ?></td>
The code that shows the Reason area:
line 53
<td class="text-left" style="width: 33.3%;"><?php echo $column_reason; ?></td>
and line 60
<td class="text-left"><?php echo $reason; ?></td>
The Opened status is set with the help of this code:
line 54
<td class="text-left" style="width: 33.3%;"><?php echo $column_opened; ?></td>
and line 61
<td class="text-left"><?php echo $opened; ?></td>
The Action field, that is the type of the returned product status, is displayed with the help of this code:
line 55
<td class="text-left" style="width: 33.3%;"><?php echo $column_action; ?></td>
and line 62
<td class="text-left"><?php echo $action; ?></td>
-
And the Returns Comments section is set by this code:
<?php if ($comment) { ?> <table class="list table table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $text_comment; ?></td> </tr> </thead> <tbody> <tr> <td class="text-left"><?php echo $comment; ?></td> </tr> </tbody> </table> <?php } ?>
-
To remove the fields, delete the code used for them.
To change the fields width, change the percentage in the code. Make sure the percents amount fits the row for nice layout.
When all the necessary changes are made, click Save and refresh the site to see the changes:
Feel free to check the detailed video tutorial below:
OpenCart 2.x. How to edit the Returns page