Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Blank line of $0.00 in "your order total"

Locked
This thread is locked. New replies are disabled.
27 Aug 2008, 5:52 PM
#1
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Post #1 by member

I am trying to find out how to eliminate the blank total line that my out of state customers get on the order total page. The line I am refering to shown in the example below says this: : $0.00

My out of state customer gets this output:

Qty. Item Name Tax Total
1 x product description 0.000% $19.99

Sub-Total: $19.99

Standard Shipping: $4.95

Sales Tax: $0.00

: $0.00

Total: $24.94


My in state customer gets this output:

Qty. Item Name Tax Total
1 x product description $19.99

Sub-Total: $19.99

Standard Shipping: $4.95

MO Sales Tax 6.725%: $1.67

Total: $26.61

I do charge tax on shipping, at this time I am listing products and shipping under one tax class based on the store address. Thanks for any suggestions!

28 Aug 2008, 7:40 PM
#2
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Post #2 by member

I found out that this is controlled in includes/modules/order_total/ot_tax.php

This is where is is controlled(around line 23-35:

function process() {
global $order, $currencies;

  reset($order->info['tax_groups']);
  while (list($key, $value) = each($order->info['tax_groups'])) {
    if ($value > 0 or STORE_TAX_DISPLAY_STATUS == 1) {
      $this->output[] = array('title' => $key . ':',
                              'text' => $currencies->format($value, true, $order->info['currency'], $order->info['currency_value']),
                              'value' => $value);
    }
  }
}

I can remove the : in: $this->output[] = array('title' => $key . ':',

But any other effort removes the line that renders Sales Tax: $0.00. I can't get rid of this line or it messes up my taxable in state orders.

What do I need to change to only remove the part that renders the line : $0.00?

Thanks!

28 Aug 2008, 11:12 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

Do you have any tax rates set up that don't have a description?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Aug 2008, 3:57 PM
#4
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Post #4 by member

No, my in state tax rates are described. I went back to two rates, one for products and one for tax on shipping (so the rounding error won't make me look stupid). The outcome for out of state customers is the same either way.

5 Sep 2008, 12:50 AM
#5
member avatar

member

Zen Follower

Join Date:
Dec 2004
Posts:
102
Plugin Contributions:
0

Post #5 by member

I finally figured it out

in configuration >store

under Sales Tax Display Status

You would think (using 1) is the way to go, but when you click on the edit it says the following:

Sales Tax Display Status
Always show Sales Tax even when amount is $0.00?
0= Off
1= On

If you have tax it shows and if you don't have tax the entries don't show (when using 0).