Zen Cart Logo
Forums / Currencies & Sales Taxes, VAT, GST, etc. / Local Sales Tax Mod - Support Thread

Local Sales Tax Mod - Support Thread

Views: 273,299

Results 261 to 280 of 659
8 Oct 2009, 11:22 PM
#261
artcoder avatar

artcoder

Zen Follower

Join Date:
Jan 2007
Posts:
166
Plugin Contributions:
0

Local Sales Tax Mod - Support Thread

My problem is that when I create a new Local Sales Taxes. The "Edit Tax Rate" has a Zone drop list for me to select the zone. But the drop list is empty. It only have "Select Zone". I want to select a zone of new york.

In "Admin -> Locations/Taxes -> Zones", I do have four pages of zones listing all the states (including new york).

In "Admin -> Configuration -> customer Detail -> State -Always display as pulldown" I have set as true.

I had installed 2.2 and 2.3 and ran the SQL statements. All else seems well. Except I can not select zone in the drop list.

Any ideas?

9 Oct 2009, 1:40 AM
#262
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: Local Sales Tax Mod - Support Thread

Thank you LadyG

can a dropdown be used for the suburbs?

It can be done but will require quite a bit of hacking. There use to be directions on this but its been a long time since I've seen anything.

LadyHLG

9 Oct 2009, 2:45 PM
#263
webman1 avatar

webman1

New Zenner

Join Date:
Jul 2009
Posts:
35
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

LadyHLG:

It can be done but will require quite a bit of hacking. There use to be directions on this but its been a long time since I've seen anything.

LadyHLG

last question...I think.

do you know where that suburb field lives?

thanks.

9 Oct 2009, 4:27 PM
#264
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: Local Sales Tax Mod - Support Thread

I'm afraid not. I can tell you the field isn't in just one file as there are a couple of places where it can be edited.

LadyHLG

12 Oct 2009, 1:12 PM
#265
ptogel avatar

ptogel

New Zenner

Join Date:
Aug 2007
Location:
Seneca, SC
Posts:
5
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

How do you turn off the debugging for this module?

12 Oct 2009, 2:39 PM
#266
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: Local Sales Tax Mod - Support Thread

Modules -> Order Total -> Local Sales Taxes ->
Debugging is active = False

LadyHLG

29 Oct 2009, 3:54 PM
#267
jabbawest avatar

jabbawest

Zen Follower

Join Date:
Oct 2009
Location:
Texas
Posts:
197
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

I'm looking for a Module that will recognize when someone from my state makes a purchase and will then automatically add my local sales tax rate to their total.
Will this module accomplish that?

Thank you,

Stephen

29 Oct 2009, 5:29 PM
#268
artcoder avatar

artcoder

Zen Follower

Join Date:
Jan 2007
Posts:
166
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

jabbawest:

I'm looking for a Module that will recognize when someone from my state makes a purchase and will then automatically add my local sales tax rate to their total.
Will this module accomplish that?

yes, it will.

30 Oct 2009, 12:08 AM
#269
awesome avatar

awesome

New Zenner

Join Date:
Oct 2009
Location:
USA
Posts:
13
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

nsirago:

Google Checkout Solution

I have only tested this for about 5 minutes but it worked every time. :) Give this a shot to incorporate this mod into your Google Checkout.

In gcheckout.php (on or around line 719 there is a SQL query, I changed mine to:

$tax_result = $db->Execute("SELECT
zen_tax_rates_local.local_tax_id,
zen_tax_rates_local.zone_id,
zen_tax_rates_local.local_fieldmatch,
zen_tax_rates_local.local_datamatch,
zen_tax_rates_local.local_tax_rate,
zen_tax_rates_local.local_tax_label,
zen_tax_rates_local.local_tax_shipping,
zen_tax_rates_local.local_tax_class_id
FROM
zen_tax_rates_local
WHERE
zen_tax_rates_local.local_datamatch = " . SHIPPING_ORIGIN_ZIP . "");

on or around line 743 you should see
$rate = ((double)($tax_result->fields['tax_rate']))/100.0;
change that to
$rate = ((double)($tax_result->fields['local_tax_rate']))/100.0;

I also got rid of a few lines. You won't be able to copy/paste my changes but this will definitely get you 80% there. I have pasted the entire foreach below. Modify as necessary. I'm doing zip code lookups. It will only work with zip codes.

foreach($tax_array as $tax_table) {

$tax_result = $db->Execute("SELECT
zen_tax_rates_local.local_tax_id,
zen_tax_rates_local.zone_id,
zen_tax_rates_local.local_fieldmatch,
zen_tax_rates_local.local_datamatch,
zen_tax_rates_local.local_tax_rate,
zen_tax_rates_local.local_tax_label,
zen_tax_rates_local.local_tax_shipping,
zen_tax_rates_local.local_tax_class_id
FROM
zen_tax_rates_local
WHERE
zen_tax_rates_local.local_datamatch = " . SHIPPING_ORIGIN_ZIP . "");

$num_rows = $tax_result->RecordCount();
$tax_rule = array();

$GAtaxTable = new GoogleAlternateTaxTable((!empty($tax_name_array[$i])?$tax_name_array[$i]:'none'), 'false');

for($j=0; $j<$num_rows; $j++) {
$tax_result->MoveNext();

$rate = ((double)($tax_result->fields['local_tax_rate']))/100.0;
$GAtaxRule = new GoogleAlternateTaxRule($rate);
$GAtaxRule->SetStateAreas("CA");
	
			
$GAtaxTable->AddAlternateTaxRules($GAtaxRule);

}
$i++;
$Gcart->AddAlternateTaxTables($GAtaxTable);
}


 
Sorry for the long quote, but this is the only post I can find related to local sales tax and Google Checkout.

I have ZC v 1.3.8a, Local Sales Tax 2.2 upgraded to 2.3, Google Checkout 1.4.7. Before I added the Local Sales Tax I was able to get to GC from my cart. With LST I get a page at GC that says:

:oops:"OOPS. We were unable to process your request."

I tried to implement this revision, changed zen_tax_rates_local to tax_rates_local since that is the current name of the table, and changed the SetStateAreas to "WA" since I am in Washington. I still get the OOPS message. I set the GC sort order to 99 thinking that might get to GC after calculating the tax. No luck there either.

Any help would be appreciated. I see a lot of other folks from Washington here with problems created by our tax structure.
2 Nov 2009, 9:17 PM
#270
jabbawest avatar

jabbawest

Zen Follower

Join Date:
Oct 2009
Location:
Texas
Posts:
197
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

Really, I am trying to understand the instructions in the 2.3 readme but, what I really need this module to do is make everyone in the state of Texas pay the sales tax of 8.25%.

Do I need to make ALL of the per county edits to make this happen?

Thank you

3 Nov 2009, 1:47 AM
#271
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: Local Sales Tax Mod - Support Thread

jabbawest:

Really, I am trying to understand the instructions in the 2.3 readme but, what I really need this module to do is make everyone in the state of Texas pay the sales tax of 8.25%.

Do I need to make ALL of the per county edits to make this happen?

Thank you

If all you want to do is charge 8.25% for all of Texas then you do not need this module for that. The zen cart zones will do this on its own.

LadyHLG

3 Nov 2009, 2:53 PM
#272
tdblanchard avatar

tdblanchard

New Zenner

Join Date:
Sep 2009
Posts:
13
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

Hi there
I've successfully built and launched my very first ZenCart store!
The only persistent problem seems to be sales tax (or lack thereof).
I have yet to be able to get sales tax to show up in an order total.
I went through the step-by-step instructions in the Tutorials section (just so happens the physical address of the store is in Colorado!)
I thought that this Local Sales Tax mod would be the solution, but still can't seem to get it.
Can anyone maybe go through the basics of setting up sales tax on a ZenCart store?
The site's live and luckily the owner is super chill about this, but I'd really like to get this puppy buttered up and rockin'.

3 Nov 2009, 11:36 PM
#273
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: Local Sales Tax Mod - Support Thread

tdblanchard,
How to set up taxes really depends on how you need to charge them.
Are you charging a state wide tax? Do you need a local tax by zip code or city name? Or maybe its some combination of both.
Can you provide more information?

LadyHLG

8 Nov 2009, 6:06 AM
#274
valenk1 avatar

valenk1

New Zenner

Join Date:
Oct 2009
Posts:
8
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

zcnb:

For the benefit of NEW installs (i.e. not updates/upgrades) of this mod, I am including a .tgz file that, if you place in the store's root (aka 'catalog' or top-level directory) and perform a tar -zxvf, it will copy all necessary files in one step.

This can prevent problems of forgetting to copy one (or more) of the .php files nested in the various subdirectories (as happened to me).

Please note: this file is attached as a ZIP file, but it is not a zip file. You need to change its extension to .tgz or .tar.gz before attempting to ran 'tar -zxvf' on it.

LadyHLG, you are welcome to include this in your package (along with clear instructions as how to use it).

Here are the instructions how to use this file:

  1. Copy local_sales_tax_mod_2.2.2.zip to your store's <catalog> directory (usually "store" or "shop").
  1. Rename it to local_sales_tax_mod_2.2.2.tgz
  1. Run (from the shell) the following command:
  1. tar -zxvf local_sales_tax_mod_2.2.2.tgz
  1. Delete the file local_sales_tax_mod_2.2.2.tgz

LadyHLG, if you want to generate this file for future versions, the way to do this from the command line is:```
cd LocalSalesTaxModv2.2/FullVersion/catalog
tar --owner 0 --group 0 -zcvf local_sales_tax_mod_2.2.2.tgz *

> 
> I hope this will be helpful to others as much as it is helpful to me.
> 
> Daniel






I've done this but i don't see the tax prompt come up in the check out...
8 Nov 2009, 9:27 PM
#275
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: Local Sales Tax Mod - Support Thread

If you have install and set up the mod and you are not seeing any tax, you may need to change the mod's sort order.

Modules -> Order total

LadyHLG

10 Nov 2009, 6:11 AM
#276
valenk1 avatar

valenk1

New Zenner

Join Date:
Oct 2009
Posts:
8
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

do you have a suggested number? this is designer for 1.3.8 right?

10 Nov 2009, 2:09 PM
#277
ladyhlg avatar

ladyhlg

Zen Follower

Join Date:
May 2005
Posts:
361
Plugin Contributions:
1

Re: Local Sales Tax Mod - Support Thread

It usually has to be a number higher than the cart tax.
But every cart set up is different, so you may have to play with the numbers a bit.
And, yes this is for 1.3.8.

LadyHLG

18 Nov 2009, 4:58 PM
#278
partyguy avatar

partyguy

New Zenner

Join Date:
Sep 2009
Posts:
5
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

Is there a sales tax mod that works with Washington State destination sales tax and calls the state lookup tool? I am using a 1.38 cart. Thanks.

18 Nov 2009, 5:45 PM
#279
crunch avatar

crunch

Zen Follower

Join Date:
Mar 2009
Posts:
227
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

partyguy:

Is there a sales tax mod that works with Washington State destination sales tax and calls the state lookup tool? I am using a 1.38 cart. Thanks.

I'm not aware of an existing Zen Cart mod for washington destination tax specifically. There are about 4 to 6 threads on this going back to 2008 (search for washington destination sales tax) and each thread has died off with no concrete results. It would be nice to know what other Washington businesses using Zen Cart are doing. My cart is still in development and I haven't researched the destination tax enough to figure out a easy solution (other than non-compliance).
*
[Moderator Comment]*
Might be good to continue such discussion in one of the threads already devoted to the topic of Washington destination sales tax, rather than hijacking this one.

26 Nov 2009, 2:35 PM
#280
donplay avatar

donplay

New Zenner

Join Date:
Jun 2007
Posts:
72
Plugin Contributions:
0

Re: Local Sales Tax Mod - Support Thread

Hi LadyHLG,

Hope you're having a good holiday weekend. First off thank you for the great contribution. I've been trying to upgrade from a previous to the most current version but have run into a problem. I was on 1.0 or 1.1 (not positive, it was so long ago) and followed the upgrade instructions to go up to 2.0a first, then 2.2, then added 2.3 (per instructions that 2.3 was upgrade only). I seem to be close but I see 2 things wrong, maybe you can help pinpoint the problem which seem debug related. I've gone back and done manual file by file comparisons with the 2.2 and 2.3 upgrade files and everything seems like it's right.

  1. I don't seem to have the Debug Option visible in the admin in Modules -> Order Total -> Local Sales Tax.
  2. On the payment page during checkout it lists a line for every single local tax rate in the following format. Seems like the debug option is on which I can't turn off in admin because of issue #1.

*Local Tax Rec ID: 2196
Tax Name: 11201 NYC Sales Tax 4.375% - 6.13

[etc...lists 2205 of these, one for each local sales tax]

Tax based on customer shipping zone 43
2205 matching tax zones found*

Appreciate the mod contribution and all your help...hope you have a good holiday weekend.

thanks,
Don