If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Currencies & Sales Taxes, VAT, GST, etc. / Local Sales Tax Mod (with admin!) for testing

Local Sales Tax Mod (with admin!) for testing

Locked

Started by ladyhlg on 30 Mar 2007, 7:51 PM · Views: 63,404

Results 181 to 200 of 287
This thread is locked. New replies are disabled.
27 Apr 2008, 3:04 AM
#181
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Post #181 by jaylyns

Please help!!!! I uploaded all the files and tried to run the sql file patch and it said failed. What do I do now? Don't even know where to begin. Tried to upload the files again same error. Could it be because of the override system or customer template? Please help me get this working.

My site is https://www.jaylyns.com. Warning: this site sells products of adult nature.

Thanks for anyone's help.

www.jaylyns.com (Note: Contains Adult Products)

27 Apr 2008, 3:08 AM
#182
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #182 by ladyhlg

I need to know more about what you are trying to do. Is this an upgrade? What version of zen are you using? Have you tried to apply the sql directly to the sql server instead of through zen?

LadyHLG

27 Apr 2008, 3:11 AM
#183
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Post #183 by jaylyns

LadyHLG:

I need to know more about what you are trying to do. Is this an upgrade? What version of zen are you using? Have you tried to apply the sql directly to the sql server instead of through zen?

LadyHLG
This is a new install. I am using version 1.3.8a of zen cart. Not sure how to apply the sql directly to the sql server. Have only done it through zen.

www.jaylyns.com (Note: Contains Adult Products)

27 Apr 2008, 3:16 AM
#184
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #184 by ladyhlg

I zen giving you anything more than just the sql failed?

27 Apr 2008, 3:19 AM
#185
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Post #185 by jaylyns

No it wasn't. I did find out how to run it through my sql server. And that made it show up under modules>order total. I installed it there. However when I went to the next step locations/taxes>local taxes I get the following error.

1146 Table 'jaylyns_zc1.zen_tax_rates_local' doesn't exist
in:
[select count(*) as total FROM (zen_tax_rates_local st LEFT JOIN zen_tax_class tc ON st.local_tax_class_id = tc.tax_class_id) LEFT JOIN zen_zones z ON st.zone_id = z.zone_id]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

www.jaylyns.com (Note: Contains Adult Products)

27 Apr 2008, 3:24 AM
#186
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #186 by ladyhlg

Sorry its a little late and I forgot to tell you that you need to make sure that if you run the sql directly on the server not to forget to add the zen prefix to the table name. Do you know how to change the table's name on the server to add the prefix to the name? That is what is causing the problems.
LadyHLG

27 Apr 2008, 3:26 AM
#187
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Post #187 by jaylyns

Yes I can rename it. Is that the only table I have to rename?

www.jaylyns.com (Note: Contains Adult Products)

27 Apr 2008, 3:27 AM
#188
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #188 by ladyhlg

Yes, there is only one.

27 Apr 2008, 3:30 AM
#189
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Post #189 by jaylyns

thank you so much for your help. Working now. Although it adds the zip code to the begining of the description and percentage to the end durring check out. Is there a way to make it hide the zip in front? Not too worried about the percentage but looks funny with the zip in front. Thanks again.

www.jaylyns.com (Note: Contains Adult Products)

27 Apr 2008, 3:39 AM
#190
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #190 by ladyhlg

You have to edit the following file
\includes\modules\order_total\ot_local_sales_taxes.php

Go to line 128 and look for the following:

$ot_local_sales_taxes_rate_description = $ot_local_sales_taxes_rate_description . " " .$myfield;

Comment out the line by putting two slashes in front of it like this:

//$ot_local_sales_taxes_rate_description = $ot_local_sales_taxes_rate_description . " " .$myfield;

That will remove the zip code from the front of the sales tax line.

LadyHLG

27 Apr 2008, 3:45 AM
#191
jaylyns avatar

jaylyns

New Zenner

Join Date:
Feb 2008
Posts:
61
Plugin Contributions:
0

Post #191 by jaylyns

Thank you so much for your help. And thanks for creating the much needed mod. :clap:

www.jaylyns.com (Note: Contains Adult Products)

27 Apr 2008, 3:47 AM
#192
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #192 by ladyhlg

You are welcome!

Have a good evening.

LadyHLG

30 Apr 2008, 5:14 PM
#193
joelmmcc avatar

joelmmcc

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Post #193 by joelmmcc

I have a strange situation. We have Local Sales Tax Mod 2.0a (I wish the version number in the header comments of ot_local_sales_tax.php file included the “a”!) originally installed in Zen Cart 1.3.7, which has since been upgraded to 1.3.8a.

It used to work fine under Zen Cart 1.3.7, but now does not show the tax. It calculates the tax just fine, but does not show it in the “Your Total” section of the Checkout Step 2 — Payment Information page (?main_page=checkout_payment). It shows the Sub-Total, Shipping, and State Sales Tax, then the Total.

Configuration in Admin / Modules / Order Total is as follows:

This module is installed
true

Sort Order
350

Debugging is active
false

Local Sales Taxes are set up as follows:

ID | Tax Zone | Apply To | Look For | Tax Rate | Tax Description | Tax Shipping | Tax Class
3 | Louisiana | postcode | 71101 | 4.6000 | Shreveport and Caddo Parish (incl. School Board) sales tax | true | Taxable Goods
4 | Louisiana | postcode | 71103-to-71109 | 4.6000 | Shreveport and Caddo Parish (incl. School Board) sales tax | true | Taxable Goods
5 | Louisiana | postcode | 71111-to-71112 | 5.0000 | Bossier City and Parish sales tax | true | Taxable Goods
6 | Louisiana | postcode | 71115 | 4.6000 | Shreveport and Caddo Parish (incl. School Board) sales tax | true | Taxable Goods
7 | Louisiana | postcode | 71118-to-71119 | 4.6000 | Shreveport and Caddo Parish (incl. School Board) sales tax | true | Taxable Goods
8 | Louisiana | postcode | 71129 | 4.6000 | Shreveport and Caddo Parish (incl. School Board) sales tax | true | Taxable Goods

Originally I only had two entries (IDs 1 & 2, thus the gap at the beginning), one for Shreveport and one for Bossier City (I edited and overrode the Address Book collection templates to only allow those two cities via Radio Buttons, and their respective Zip Codes using a SELECT list, with JavaScript to force-match Zip Code to City, to minimize the chances of customer input error [misspelling the City name, for instance] messing things up), using “City” as the Apply To. But when it stopped appearing, I tried switching to “postcode” thinking that it wasn’t detecting at all, but turning on Debug and also doing the calculations myself showed that it is, but just not showing.

HALLLLP!!:frusty:

30 Apr 2008, 5:22 PM
#194
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #194 by ladyhlg

JoelMMCC,
Just so I understand this correctly is the local tax being added to the total in the cart and just not outputting the line that say what the tax was?

LadyHLG

30 Apr 2008, 6:10 PM
#195
joelmmcc avatar

joelmmcc

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Post #195 by joelmmcc

Here is what we currently see with Debug enabled, for a user in a zip code within the range for Local Sales Tax Zone ID #4:

—Your Total———
Local Tax Rec ID: 4
Tax Name: Shreveport and Caddo Parish (incl. School Board) sales tax 4.60% — 3.27

Sub-Total: $71.03

Free Delivery (Next Tue. or Thur. within Shreveport / Bossier City): $0.00

Louisiana State sales tax: $2.84

Total: $77.14

Note that the Louisiana State sales tax is displaying, but not the Shreveport + Caddo Parish* sales tax. Note also that the calculated Total does include the Shreveport + Caddo Parish sales tax ($71.03 + 0.00 + 2.84 + 3.27 = $77.14).

*(Louisiana has Parishes instead of Counties, being of French rather than English origin.)

30 Apr 2008, 6:25 PM
#196
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #196 by ladyhlg

JoelMMCC,
Change the sort order for the local sales tax mod to a number lower than the tax in the order total admin.
So if your tax is set to a sort order of 300, set the local tax to 299.
Let me know if that makes a difference.

LadyHLG

30 Apr 2008, 6:38 PM
#197
joelmmcc avatar

joelmmcc

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Post #197 by joelmmcc

LadyHLG:

JoelMMCC,
Change the sort order for the local sales tax mod to a number lower than the tax in the order total admin.
So if your tax is set to a sort order of 300, set the local tax to 299.
Let me know if that makes a difference.

LadyHLGThat did it! Thanks much!

I’m extremely impressed with how well you support your work, and how quickly you responded! Within minutes each time! Not bad for a free Mod!

Oh, and the Mod itself is awesome, too! I got both it and the Sales Tax Report, which hasn’t been a problem at all!

:bigups: :clap: :flex: :yes:

30 Apr 2008, 6:51 PM
#198
ladyhlg avatar

ladyhlg

Zen Follower

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

Post #198 by ladyhlg

Glad things are working again!
Thank-you for the feedback on the mod, I am happy so many people have found it useful and its always nice to know its appreciated! :smile:

FYI - I am sorry about the confusion with the version number in the file header comments. I was rushing to post a correction to a big calculation error and forgot to change it. I guess it always pays to take your time and do things right! :yes:

LadyHLG

7 May 2008, 9:00 PM
#199
ixboat avatar

ixboat

New Zenner

Join Date:
May 2008
Location:
Colorado
Posts:
10
Plugin Contributions:
0

Post #199 by ixboat

LadyHLG,

Please accept my most sincere thanks for this local sales tax module, it seems to be working great on my 1.3.8 ZenCart site, but I have no orders through the system yet, it's a brand new site that I'd like to go live with this week.

I'm just learning ZenCart these past few months and it's great to have such an active contributing developer community, and so much help.

I wanted to let you know that I had one little challenge with the install of this version: Local Sales Tax Mod for Zen Cart Version 2.0n

Here's what happened:
(1) Copy all files inside the catalog folder to your cart
WORKED
(2) Run the LocalSalesTaxv2.0.sql file
WORKED
(3) In Cart Admin navigate to Modules -> Order Total, and click on "Local Sales Taxes"
(4) Click the "install" button.
WORKED
(5) In Cart Admin navigate to Locations/Taxes --> Local Sales Taxes and edit accordingly
Here, got an error about it not seeing the required MySQL db filename

SO, i changed the first line in LocalSalesTax2.2.sql
from
CREATE TABLE tax_rates_local (
to
CREATE TABLE zen_tax_rates_local (

and that ran OK,

and the Local Sales Tax is calculating and displaying ok, seem like.

Questions:

  1. did I miss something in the (very clear) install instructions?
  2. is there something else to worry about that I don't know about yet?

and, now I shall try out the reporting module!

Thanks
ixboat

7 May 2008, 9:10 PM
#200
ixboat avatar

ixboat

New Zenner

Join Date:
May 2008
Location:
Colorado
Posts:
10
Plugin Contributions:
0

Post #200 by ixboat

Sorry, that version # above is off....

The readme.txt says:
Local Sales Tax Mod for Zen Cart Version 2.0

and the file date is 12-18-2007

should I go to 2.0a
and if so, where is that file please?

thnx
ixboat