-
1 Attachment(s)
Tax 0%: checkout confirmation
Merry Christmas Everyone!
Its been awhile since I configured my ZC, so tell me if this is something normal that I forgot about it or some quick fix.
On my checkout_confirmation page, under cart contents:
The tax is displayed (0%) on orders for customers outside my tax state.
Tax (correctly) does not appear in order total.
---->How do I make the "Tax 0%" on non-tax (out of state) orders go away? <----
Other info:
Everything works fine.
all my products are taxable.
On in state (taxed) orders: The tax is NOT displayed under cart contents, but does correctly appear in the order total.
Out of State Customers See This:
-
Re: Tax 0%: checkout confirmation
Admin - configuration - my store - tax zero display
-
1 Attachment(s)
Re: Tax 0%: checkout confirmation
Hello Again DrByte!:cool:
Do you mean this setting? It was set to "Off"
Changing this setting does not have an affect.
-
Re: Tax 0%: checkout confirmation
Okay, your problem appears to be related to your actual tax rates. See admin - locations/taxes - tax rates.
Maybe you've added a zone which has a zero rate somehow.
-
Re: Tax 0%: checkout confirmation
Locations/Taxes > Tax Rates:
1 Tax Rate (My State) > Define Zones:
[SCR]http://i418.photobucket.com/albums/pp268/42p4V2Q6P7Q79PH/zc/ZoneDefinitions.jpg[/SCR]
I set my admin stuff a long time ago, so I created these other zones for a reason (shipping maybe...getting rusty on my zc) .....but don't remember seeing this issue before, could it be in the last upgrade code?
here is what I have on the cc page around line 133:
PHP Code:
<?php
// If there are tax groups, display the tax columns for price breakdown
if (sizeof($order->info['tax_groups']) > 1) {
?>
<th scope="col" id="ccTaxHeading"><?php echo HEADING_TAX; ?></th>
<?php
}
?>
<th scope="col" id="ccTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
</tr>
-
Re: Tax 0%: checkout confirmation
What tax rate is set up for each of those zones?
-
Re: Tax 0%: checkout confirmation
Quote:
Originally Posted by
DrByte
What tax rate is set up for each of those zones?
see photo above, 3 zones, only one with a tax rate:
International (no tax rate)
USA (no tax rate)
Taxes & Zones Defined in my state only:
http://i418.photobucket.com/albums/p...zc/taxrate.jpg
-
Re: Tax 0%: checkout confirmation
Admin->Configuration->My Store->Show Split Tax Lines ... is that set to true for some reason?
Quote:
Show Split Tax Lines
If multiple tax rates apply, show each rate as a separate line at checkout
-
Re: Tax 0%: checkout confirmation
Quote:
Originally Posted by
DrByte
Admin->Configuration->My Store->Show Split Tax Lines ... is that set to true for some reason?
That value is set to false.
Is there an admin setting that turns on/off:
Display the TAX % heading/column in checkout confirmation/orders?
or a code work around?
-
Re: Tax 0%: checkout confirmation
It should not show if there is no tax to display. Does your USA zone include NY? If so then maybe you've got it tricked into thinking it needs to do "group taxes", and thus you're forcing it to display anyway.
-
Re: Tax 0%: checkout confirmation
Quote:
Originally Posted by
DrByte
It should not show if there is no tax to display. Does your USA zone include NY? If so then maybe you've got it tricked into thinking it needs to do "group taxes", and thus you're forcing it to display anyway.
Yes I had my USA zone include NY, and My International include all countries.
Ok, so I'm going to delete and re-define the zones. Just to be clear I need to create 2 zones:
1 for NY:
Country> United states> New York
and another zone for everywhere else?
United states> New Jersey
United states> California
+58 more USA states
Country> Zimbabwe
Country> Zambia
+ every other country in the world? (as we ship world wide)
this would take some time to configure, is this the correct method? According to ZC's wiki it is, but it seems a bit extreme.
-
Re: Tax 0%: checkout confirmation
No, you shouldn't need to create thousands of new zone definitions.
Why did your International zone include all countries? If your primary country is US then US isn't "international" to you. What was the reason for including US in the International zone in the first place?
-
Re: Tax 0%: checkout confirmation
When I set up my ZC I had 3 zones, USA, NY and International (not including USA) this is how I thought it should be set up. I have learned a lot since then, but am still confused by this.
I ship everywhere in the world but need to charge sales tax in NY, I tried setting up one zone - NY and the tax rate for that one zone, but it didn't work.
Am I missing something here?:bangin:
BTW everything works fine, except for the 0% tax display (on all orders outside NY)
-
Re: Tax 0%: checkout confirmation
Quote:
Originally Posted by
dharma
When I set up my ZC I had 3 zones, USA, NY and International (not including USA) this is how I thought it should be set up. I have learned a lot since then, but am still confused by this.
Yes, That is how I'd probably do it.
Quote:
Originally Posted by
dharma
I ship everywhere in the world
Using what shipping approach? Are you using zones for any shipping modules?
Quote:
Originally Posted by
dharma
but need to charge sales tax in NY, I tried setting up one zone - NY and the tax rate for that one zone, but it didn't work.
What exactly didn't work?
-
Re: Tax 0%: checkout confirmation
I just did a test on a fresh clean uncustomized install, containing demo data.
1. Created a new Zone Definition for New York, added just USA+NewYork in the details.
2. Created a new Zone Definition for USA, added United States, All Zones in the details.
3. Created a new Zone Definition for International, added a handful of countries other than USA in the details.
4. Created a new Tax Rate, setting it to the New York zone, Taxable Goods class, and Tax Rate of 8.875% and gave it a description of "NY Tax".
5. Added a product to my cart, began checkout, created an account using a New York address, chose flat rate shipping, and on the payment screen it shows me the tax properly calculated for the product, so I selected a payment method.
6. On the checkout-confirmation screen I'm presented with 3 columns in the Shopping Cart Contents section: Qty, Title, Total.
No mention of 0% tax anywhere.
I tried changing the Display 0 Sales Tax setting (which isn't relevant in this case, since it only applies when the actual tax amount is 0.00). No difference.
Tried changing the Show Split Tax Lines setting, and that made no difference either.
Tried changing Admin->Configuration->My Store->Store Zone to New York too, to make it match up with taxes, just in case, and that made no difference.
Seems to me like you're using those other zones for multiple purposes which might be conflicting with each other.
What else am I missing that I'd need to do to make my otherwise-default-uncustomized-unaltered store work like yours so I can trigger the same problem?
-
Re: Tax 0%: checkout confirmation
Quote:
What else am I missing that I'd need to do to make my otherwise-default-uncustomized-unaltered store work like yours so I can trigger the same problem?
Quote:
5. Added a product to my cart, began checkout, created an account using a New York address,
The 0% Tax only appears on non-NY state orders, try a shipping address/account outside NY, to see if that triggers the issue.
-
Re: Tax 0%: checkout confirmation
Changed to a California address. Same results. Checkout confirmation screen shows Shopping Cart Contents of Qty, Item Name, Total.
The "display 0 taxes" shows Taxes: $0.00 when enabled, and blank when disabled, as expected. But, as discussed, that's not relevant to your issue.
Basis of Product Tax is set to the default of: Shipping
-
Re: Tax 0%: checkout confirmation
I tried all your settings, no result.
I deleted the tax rate, no result.
I deleted all the zone definitions, no result.
With no tax rate or zone definitions, what is other setting would make this 0% tax still appear?
-
Re: Tax 0%: checkout confirmation
Hold the phone, I might have got it.
let me do some more testing.
-
Re: Tax 0%: checkout confirmation
No dice, still appears.
I'll do some more testing and see if I can find any more symptoms.
-
Re: Tax 0%: checkout confirmation
Judging from the code it suggests that that whole column's display is related to multiple tax groups being active, or varying taxes applicable to different items in the cart. Do you have multiple items in your cart which are using different tax classes?
-
Re: Tax 0%: checkout confirmation
Again, what modules are you using for shipping? Are you assessing taxes on shipping? Have you set a tax class on the shipping module you use for non-NY orders?
-
Re: Tax 0%: checkout confirmation
Only one item in cart used in testing.
Only one tax class defined: "Taxable Goods", all products are "Taxable Goods".
The 0% disappears if sales tax is applied, and reappears if sales tax does not apply.
-
Re: Tax 0%: checkout confirmation
Quote:
Originally Posted by
DrByte
Again, what modules are you using for shipping? Are you assessing taxes on shipping? Have you set a tax class on the shipping module you use for non-NY orders?
Yup. That's it.
You've set a tax class on your shipping. So, it's charging tax on the shipping but not the products. And since the 0% rate for the product is different from the 8.875% rate on the shipping, it knows that there's more than one tax rate applicable to the order, and so it displays the tax rate on a per-line-item basis.
-
Re: Tax 0%: checkout confirmation
Quote:
Originally Posted by
DrByte
Again, what modules are you using for shipping? Are you assessing taxes on shipping? Have you set a tax class on the shipping module you use for non-NY orders?
USPS shipping module, tax on shipping.
Quote:
Yup. That's it.
You've set a tax class on your shipping.
was this set by these settings?
My Store settings for shipping:
Basis of Product Tax Shipping
Basis of Shipping Tax Shipping
since I am required to collect sales tax on the product and shipping, am I stuck with this 0%?
-
Re: Tax 0%: checkout confirmation
Yes, you're stuck with it, at least as far as core code goes.
Or, here's a coding workaround that might take care of it. Haven't tested it for any side effects though:
/includes/modules/order_total/ot_shipping.php
At line 67 (line number based on v1.5.0 code) you'll see this section of code. Add the highlighted lines as shown:
Code:
$shipping_tax_amount = zen_calculate_tax($order->info['shipping_cost'], $shipping_tax);
$order->info['shipping_tax'] += $shipping_tax_amount;
// if the order has no tax on products (non taxable or out of taxable zones), then reset list of tax classes that would have applied to any products in the order
if ($order->info['tax'] == 0) $order->info['tax_groups'] = array();
$order->info['tax'] += $shipping_tax_amount;
-
Re: Tax 0%: checkout confirmation
Ok, I'll try your code and do some testing.
Thanks Dr.Byte, its been awhile since I've needed help and your spot on posts are a pleasant reminder of how excellent the support here is at ZC.
Thanks again!:bigups:
-
Re: Tax 0%: checkout confirmation
Quote:
Originally Posted by
DrByte
Yup. That's it.
You've set a tax class on your shipping. So, it's charging tax on the shipping but not the products. And since the 0% rate for the product is different from the 8.875% rate on the shipping, it knows that there's more than one tax rate applicable to the order, and so it displays the tax rate on a per-line-item basis.
I just had this issue as well and wanted to help clarify the resolution.
I corrected this by going into the admin and from Modules => Shipping
I highlighted the Shipping set I had enabled (e.g. Standard Rate) and clicked [Edit]
Then changed "Tax Class" to "--none--"
I had created a "non-taxable goods" tax group but it appears that was not needed and just made 0% tax show up on the confirmation page. (D'oh!)