Categories

Featured templates

OpenCart 2.x. How to edit the Returns page

Alice Weasley March 16, 2016
Rating: 5.0/5. From 2 votes.
Please wait...
OpenCart 2.x. How to edit the Returns page

This tutorial shows how to edit the Returns page in OpenCart:

Opencart_2_How_to_edit_Returns_page_1
  1. 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.

  2. There you can edit the form code.

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

      <b><?php echo $text_return_id; ?></b> #<?php echo $return_id; ?>
        
    2. The Date added code:

      <b><?php echo $text_date_added; ?></b> <?php echo $date_added; ?></td>
      
    3. The Order ID code:

      <b><?php echo $text_order_id; ?></b> #<?php echo $order_id; ?>
    4. The Order Date code:

       <b><?php echo $text_date_ordered; ?></b> <?php echo $date_ordered; ?></td>
    5. 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>
    6. 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>
    7. 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>
    8. 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>
    9. 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>
    10. 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>
    11. 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 } ?>
        
  3. To remove the fields, delete the code used for them.

  4. To change the fields width, change the percentage in the code. Make sure the percents amount fits the row for nice layout.

  5. When all the necessary changes are made, click Save and refresh the site to see the changes:

    Opencart_2_How_to_edit_Returns_page_2

Feel free to check the detailed video tutorial below:

OpenCart 2.x. How to edit the Returns page
Templates for OpenCart
This entry was posted in OpenCart Tutorials and tagged opencart, page, return. 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