Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Location
    Brownsville, Texas, USA.
    Posts
    22
    Plugin Contributions
    1

    Default Removing columns in Orders Page.

    Searching in the forum I didn't find any information about this topic.

    In the orders page, clicking on the button "Edit", we can see the Product, Model, Tax and other headers with their data inside.

    I only need the headers "Products" and "Total" (with Subtotal and Total under them, of course).

    So, what can I do to remove the headers Model, Tax, Price (ex), Price (inc) and Total (ex)?

    Please click on the image below to see it in a bigger size.
    I uploaded a graphic attached to this post in order to see what I mean in my question.

    Name:  removingcolumns.jpg
Views: 447
Size:  39.3 KB

    Regards.
    Kirk.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Removing columns in Orders Page.

    You can remove the columns in the page by editing the file. You will need to know how to edit nested HTML tables and watch out for the php code. Also, that is in the admin and there are no template overrides. You will also have to edit the invoice.

  3. #3
    Join Date
    Jul 2006
    Location
    Brownsville, Texas, USA.
    Posts
    22
    Plugin Contributions
    1

    Default Re: Removing columns in Orders Page.

    Quote Originally Posted by Kim
    You can remove the columns in the page by editing the file. You will need to know how to edit nested HTML tables and watch out for the php code. Also, that is in the admin and there are no template overrides. You will also have to edit the invoice.
    Hello, Kim.

    Thank you for your useful response.

    Does exist another way to do that job?

    Is there any configuration in Admin to make them invisible instead of removing them?

    Warm regards.
    Kirk.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Removing columns in Orders Page.

    Is there any configuration in Admin to make them invisible instead of removing them?
    Not at this time - The admin is scheduled for a major rebuild in the future and features like that will be considered.

  5. #5
    Join Date
    Jul 2006
    Location
    Brownsville, Texas, USA.
    Posts
    22
    Plugin Contributions
    1

    Default Re: Removing columns in Orders Page.

    Quote Originally Posted by Kim
    Not at this time - The admin is scheduled for a major rebuild in the future and features like that will be considered.
    I see, Kim.

    For now, I'm using only the comment tag "<!-- ..... -->" enclosing the code inside of each cell in order to make the content invisible:


    HTML Code:
               '            <td class="dataTableContent" align="right" valign="top"> <!-- <strong>' .
                              $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) .
                              ($order->products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->format(zen_add_tax($order->products[$i]['onetime_charges'], $order->products[$i]['tax']), true, $order->info['currency'], $order->info['currency_value']) : '') .
                            '</strong> --> </td>' . "\n" .

    Also, regarding the headers, I changed each definition using blank spaces instead of the original value:

    PHP Code:
    define('TABLE_HEADING_PRICE_EXCLUDING_TAX''          '); 

    That way, headers and content are not removed but they are now invisible.


    I'm aware that the mine is a "home remedy"
    but it works!

    Thanks to you I didn't miss editing the invoice.php where the changes must be done too.

    These are the paths:

    admin/includes/languages/english/orders.php
    admin/includes/languages/english/invoice.php
    admin/orders.php
    admin/invoice.php



    I appreciate your support.



    Kirk.

 

 

Similar Threads

  1. v151 Customizing columns that display on orders page
    By iheartguts in forum Managing Customers and Orders
    Replies: 1
    Last Post: 6 Nov 2013, 05:30 PM
  2. v150 Removing side columns from main page ONLY
    By meljen in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Sep 2012, 11:03 PM
  3. Removing Both Columns!
    By autoace in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Aug 2009, 11:03 PM
  4. Can I hide some columns in admin orders page?
    By ebaobao in forum Managing Customers and Orders
    Replies: 0
    Last Post: 18 Aug 2008, 05:58 PM
  5. Dropdowns, attribute images, & removing columns from index page
    By avara222 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jul 2008, 04:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg