Forums / Upgrading from 1.3.x to 1.3.9 / Tax title/description blank on orders

Tax title/description blank on orders

Locked

Views: 830

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
16 Jul 2010, 8:34 PM
#1
aeolidia avatar

aeolidia

Zen Follower

Join Date:
Mar 2005
Posts:
166
Plugin Contributions:
0

Tax title/description blank on orders

We upgraded to version 1.3.9d, and now California orders are working fine (should be taxed, order page, invoice, and packing slip all say "CA TAX 8.25%:" and the amount).

However, all non-California orders are displaying strangely. When the order is edited, or you view the packing slip/invoice, there is a blank spot where the "CA TAX 8.25%" is on the CA orders, and next to it it says $0.00.

Here are two examples from the "edit order" page:

GOOD:
Total Weight is lbs. oz.
Sub-Total: $0.65
Store Pickup (Pick up at our Ventura, CA location): $0.00
CA TAX 8.25%: $0.05
Total: $0.70

BAD:
Total Weight is lbs. oz.
Sub-Total: $43.80
Zone Rates (Shipping to US): $5.95
: $0.00
Total: $49.75

Any idea what happened to the display here, and how I can get the tax line to only show for Californians?

On a side issue, the site doesn't track weights, so why does "Total Weight is lbs. oz." show here?

We're using these add-ons:

  • Newsletter subscribe
  • Image Handler
  • PDF Order Center
  • Stock by Attributes
  • Database backup
  • Email Address Exporter
  • Sales Report
  • USPS.com Click-n-Ship AutoFill Button
  • Wordpress on Zen
  • Products Profit Margin Calculator Report
  • quickbooks_import_qbi_3-21b
  • time_zone_offset_v1-3-8a

Thanks!

22 Jul 2010, 4:32 AM
#2
aeolidia avatar

aeolidia

Zen Follower

Join Date:
Mar 2005
Posts:
166
Plugin Contributions:
0

Re: Tax title/description blank on orders

I have dug into this some more, but I'm still stuck.

In the admin orders.php (and invoice.php and packingslip.php), here is the code that's causing me trouble:

<?php
  for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    echo '          <tr>' . "\n" .
         '            <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' . $order->totals[$i]['title'] . '</td>' . "\n" .
         '            <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] . '</td>' . "\n" .
         '          </tr>' . "\n";
  }
?>

Before the upgrade, it wouldn't display the tax line when the customer wasn't charged tax. Now it displays it no matter what, with no title and $0.

I had a Eureka! moment when I found this in Configuration > My Store:

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

I turned it off, but no change! Maybe this doesn't apply to the admin?

29 Jul 2010, 8:27 PM
#3
aeolidia avatar

aeolidia

Zen Follower

Join Date:
Mar 2005
Posts:
166
Plugin Contributions:
0

Re: Tax title/description blank on orders

Solved-ish! I renamed my tax zone from "California" to "California Tax" and all seems fine now.