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

Local Sales Tax Mod - Support Thread

Views: 273,272

Results 641 to 659 of 659
12 Mar 2025, 18:11
#641
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Local Sales Tax Mod - Support Thread

Small tweak: in readme_local_sales_tax.html, the h1 title is wrong. (Says "Optional/Required Shipping Insurance")

12 Mar 2025, 19:10
#642
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

swguy:

Small tweak: in readme_local_sales_tax.html, the h1 title is wrong. (Says "Optional/Required Shipping Insurance")
Thanks, updated on GitHub.

13 Mar 2025, 05:54
#643
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

Re: Local Sales Tax Mod - Support Thread

For anyone trying to use the 2.5.3 uninstall script to move up to 3.0.0, there is a problem with the uninstall script:

Around line 36 in /YOUR_ADMIN/includes/init_includes/init_local_sales_taxes_uninstall.php:

if(defined(MODULE_ORDER_TOTAL_COUNTY_LOCAL_TAX_STATUS)) {

Replace with :

if(defined('MODULE_ORDER_TOTAL_COUNTY_LOCAL_TAX_STATUS')) {

This should clear the 500 server errors that pop up.

13 Mar 2025, 11:35
#644
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

retched:

For anyone trying to use the 2.5.3 uninstall script to move up to 3.0.0, there is a problem with the uninstall script:

Around line 36 in /YOUR_ADMIN/includes/init_includes/init_local_sales_taxes_uninstall.php:

if(defined(MODULE_ORDER_TOTAL_COUNTY_LOCAL_TAX_STATUS)) {

> 
> Replace with :
> 
> ```php
if(defined('MODULE_ORDER_TOTAL_COUNTY_LOCAL_TAX_STATUS')) {

This should clear the 500 server errors that pop up.
FWIW, the encapsulated version takes care of the upgrade itself.

13 Mar 2025, 12:37
#645
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

BTW the doubling issue that both @retched and I experienced is resolved for new orders by this update. Thanks for your hard work, @lat9!

13 Mar 2025, 13:34
#646
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

Re: Local Sales Tax Mod - Support Thread

PHP 8.3 / ZC 2.1.0 / Local Sales Tax 3.0.0

Running into a problem. The module installs correctly (had to remove the Smash Taxes module changes). The table is currently set up for NY State (4.0%) and a tax rate based off of Zip Code (4.875%). However, checking out, I get the following:

The local sales tax rate works fine but for some reason the state sales tax isn't being calculated. When I disable the Local Sales Tax Plugin, the state sales tax is being calculated.

Should I just give up and dump the 4% onto the Local Sales tax table?

13 Mar 2025, 13:56
#647
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

Do you have a 4% tax defined for the NY State zone?

13 Mar 2025, 14:26
#648
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

Re: Local Sales Tax Mod - Support Thread

lat9:

Do you have a 4% tax defined for the NY State zone?

Correct. New York has a zone defined with the 4% tax rate.

Again, I can disable the Local Sales Tax and the 4% tax rate is applied. But if I enable LST, the 4% tax setting is ignored.

13 Mar 2025, 15:08
#649
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

Didn't you modify Squash Taxes to include state tax? Maybe check that logic or even uninstall Squash Taxes.

Possibly useful data point: I have ZC 2.1.0 + Latest Local Sales Tax, my LST rates do include State tax, but I have another state which is also taxed that does not use LST. Ordering with delivery to that state works as expected, with the native Zen Cart sales tax being applied properly.

13 Mar 2025, 15:19
#650
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

Re: Local Sales Tax Mod - Support Thread

swguy:

Didn't you modify Squash Taxes to include state tax? Maybe check that logic or even uninstall Squash Taxes.

Possibly useful data point: I have ZC 2.1.0 + Latest Local Sales Tax, my LST rates do include State tax, but I have another state which is also taxed that does not use LST. Ordering with delivery to that state works as expected, with the native Zen Cart sales tax being applied properly.

I did have those changes but I reverted all of those changes to barebones ZC 2.1.0 files. Trying to track down what else could I have changed.

13 Mar 2025, 20:28
#651
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

retched:

I did have those changes but I reverted all of those changes to barebones ZC 2.1.0 files. Trying to track down what else could I have changed.
Nope, it's (again) my bad. The current implementation of the encapsulated version "assumes" (falsely, obviously) that the state's base tax-rate is baked into the local sales tax rates.

An update is forthcoming.

13 Mar 2025, 21:02
#652
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

Re: Local Sales Tax Mod - Support Thread

lat9:

Nope, it's (again) my bad. The current implementation of the encapsulated version "assumes" (falsely, obviously) that the state's base tax-rate is baked into the local sales tax rates.

An update is forthcoming.

While you're at it, there is one additional "old version" file that could be deleted by the upgrader, the admin version of "local_sales_taxes.php". You currently have it as local_sales_tax.php on line 80 of the ScriptedInstaller.php.

25 Mar 2025, 18:11
#653
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

I think that the local taxes are not applied for store pickup orders. When notify_order_cart_external_tax_rate_lookup() is called, $taxZoneId is the shipping address zone_id, not the store's zone_id. I do have "Store Pickup Tax Basis" in the local sales tax config set to the zone of the store.

25 Mar 2025, 23:38
#654
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

I have posted a possible fix in the repo for this plugin's Issues section.

13 May 2025, 16:33
#655
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

v3.0.1 of "Local Sales Tax" is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=422

This release contains changes associated with these GitHub issues:

#5: Include state's base tax-rate in the local sales tax.
#6: Correct previous plugin removal; the base admin tool's name was local_sales_taxes.php.
#8: Incorrect tax-rate charged for storepickup orders.

16 Aug 2025, 16:45
#656
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

v3.0.2 of "Local Sales Tax" is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=422

This version "really" corrects the calculation for storepickup orders (thanks @proseLA for the update).

21 Dec 2025, 20:34
#657
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

Re: Local Sales Tax Mod - Support Thread

Before I make a suggestion, the "state" sales tax is supposed to be added into the shipping tax rate, correct?

What I noticed is the regions tax isn't applied or added into the shipping tax rate? I have a way to fix but I wanted to be sure that was intended or not before I push something through.

22 Dec 2025, 12:35
#658
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Local Sales Tax Mod - Support Thread

retched:

Before I make a suggestion, the "state" sales tax is supposed to be added into the shipping tax rate, correct?

What I noticed is the regions tax isn't applied or added into the shipping tax rate? I have a way to fix but I wanted to be sure that was intended or not before I push something through.
Some states require tax on shipping, some don't.

22 Dec 2025, 16:29
#659
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
942
Plugin Contributions:
3

Re: Local Sales Tax Mod - Support Thread

lat9:

Some states require tax on shipping, some don't.

But that's what I mean, my shipping method has the tax class set and it calculates the local sales tax portion... but for some reason the state sales tax isn't added on.

For example, say a shipping method sent to NYC was $1.00. State tax is 4% and local (NYC) tax is 4.875%. I can see that the tax rate of 4.875% is set but for some reason, the state tax isn't. If I disable the local sales tax module, it's the inverse (the state tax of 4% would apply). But it should be both.