Forums / Managing Customers and Orders / Removing columns in Orders Page.

Removing columns in Orders Page.

Locked

Views: 1,711

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Jul 2006, 3:01 AM
#1
kinethic avatar

kinethic

New Zenner

Join Date:
Jul 2006
Location:
Brownsville, Texas, USA.
Posts:
22
Plugin Contributions:
0

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.

Attachment #360

Regards.
Kirk.

Best regards.
Kirk Neaven.


Zen Cart Contributions: Kinethic Realm Buttons Set (an enhanced buttons set)

31 Jul 2006, 3:35 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

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.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Aug 2006, 7:05 PM
#3
kinethic avatar

kinethic

New Zenner

Join Date:
Jul 2006
Location:
Brownsville, Texas, USA.
Posts:
22
Plugin Contributions:
0

Re: Removing columns in Orders Page.

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.

Best regards.
Kirk Neaven.


Zen Cart Contributions: Kinethic Realm Buttons Set (an enhanced buttons set)

2 Aug 2006, 2:06 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

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.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

2 Aug 2006, 4:09 PM
#5
kinethic avatar

kinethic

New Zenner

Join Date:
Jul 2006
Location:
Brownsville, Texas, USA.
Posts:
22
Plugin Contributions:
0

Re: Removing columns in Orders Page.

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:

           '            <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:

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" :P
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.
:wink2:

Kirk.

Best regards.
Kirk Neaven.


Zen Cart Contributions: Kinethic Realm Buttons Set (an enhanced buttons set)