If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

OpenCart 2.x. How to edit the Returns page

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