2 Tax Modification

Completed modifications to the NOP Shopping Cart. Additions, modifications, and more.

Moderators: Koibito, Stefko, Randy, Rosey

2 Tax Modification

Postby Randy » Thu Apr 24, 2003 2:36 am

I have modified the nopcart.js for 2 sales taxes.

Here in Canada we have a Federal Goods & Services tax on everything from postage stamps to toilet paper, and all services...like dentists and auto mechanic's labour and phone bills.
Then we have the Provincial Sales Tax on most items (but not all).

To make it less confusing, some Provinces have no sales tax, while others charge GST and PST on everything. They call it the "Harmonized Sales Tax" or HST.

Attached is the nopcart.js and the language-en.js files ziped up.
They include the mod for non-taxible items.

Enjoy
Only in Canada eh?

Randy

I forgot to add the GST on shipping!

Add the following in function ManagCart() somewhere around line 595
and again in function CheckoutCart() arond line 769
The fShipping line is already there...just add the fGst line following.

fShipping += (parseInt(fields[1]) * parseFloat(fields[4]) );
fGst = ((fShipping + fTotal) * GstRate);


Randy
Last edited by Randy on Sun Nov 30, 2003 5:57 pm, edited 5 times in total.
Randy
Guru
 
Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

Postby Steven Nyland » Sun Apr 27, 2003 11:08 am

Hey Randy,

There are more countries that have multiple tax rates (e.g. Holland), -so- I am sure other people would appreciate your modification re multiple tax rates.

Steven
[ If it ain't Dutch ... it ain't Much ]
Steven Nyland
Guru
 
Posts: 274
Joined: Thu Jan 02, 2003 1:20 pm
Location: Still here ...

2 Tzx Modification

Postby papavader » Mon Apr 28, 2003 12:33 am

Randy

Received your email but no attachment. However I saw that you put in the forum. Great Work!!!
Few minor errors but I was able to correct them.
Thanks again EH!! for the mod.
papavader
 
Posts: 1
Joined: Sun Apr 27, 2003 7:36 pm

What about HST

Postby tuggermac » Fri May 02, 2003 9:35 pm

IS there a way to integrate the HST as well? Everything else works great! Thanks!

Michelle
tuggermac
 
Posts: 2
Joined: Fri May 02, 2003 3:25 am
Location: Canada

Shipping Tax Error

Postby Randy » Sun May 11, 2003 2:54 pm

We wern't using "shipping" so I missed it the first time around...
I forgot to add GST to the cost of shipping.

search for fShipping and add the fGst line following it in both the ManageCart() and CheckoutCart() functions in nopcart.js...

fShipping += (parseInt(fields[1]) * parseFloat(fields[4]) );
fGst = ((fShipping + fTotal) * GstRate);

R
Randy
Guru
 
Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

Postby tuggermac » Sun May 11, 2003 7:25 pm

That works great, is there a way to get the PST to do the same thing? It is not taking into account shipping either.

Michelle : :D
tuggermac
 
Posts: 2
Joined: Fri May 02, 2003 3:25 am
Location: Canada

Postby Scribe » Mon Jun 09, 2003 12:44 am

The 2-tax mod appears to be exactly what I've been looking for but I'm having a problem with it. The original cart has been running on my sites but it fails when I replace nopcart.js with the mod.
I made no changes other than renaming nopcart.js.txt to nopcart.js. When I click on a "B" button, I get no response at all (it should display the confirmation) and nothing appears on the CheckOut page.
Did I miss something in the setup?
Any hints?
I can't wait to see this work! I already blew about a week last year trying to learn enough JS to modify it myself.
Scribe
 
Posts: 1
Joined: Mon Jun 09, 2003 12:32 am
Location: London ON

help with taxs

Postby Ziggler » Wed Aug 13, 2003 8:48 pm

Hi.. this looks like what is needed here in Eastern Canada. I don't know for sure, as I havn't been able to get it working to see. From reading here, I think it has options for 2 taxs?

Im hoping someone can help me here. I have the cart working (very nice peice of work btw) But I need to make it Canadian friendly.

What I need are 3 tax choice buttons on the cart as follows:

button 1 = Hst (15% - NB, NS, NFLD)
button 2 = Gst (7% - rest of Canada)
button 3 = no tax (0% - outside Canada)

Would it be a big job for someone to make these changes?

Please contact me about this. I would be able to trade multimedia work, give a leg or kidney..lol. I need it bad.

Thanks in advance for your help, your the greatest!
Ziggler
 
Posts: 10
Joined: Wed Jul 30, 2003 4:28 pm
Location: dialup country

also need help with taxes

Postby browndirt2003 » Wed Sep 03, 2003 1:22 am

Hello....

Has anyone used this shopping cart for Canadian use. I have the cart working fine. It adds a tax called GST of 7% to the items and shipping. That's great.... However, some Provinces don't pay GST they pay a tax called HST.

I want the user to select a radio button on the mangecart.html page that selects there region for the particular provinces.

Example: When the shopper checks out to the mange cart page I want to have the option of choosing their region. Once this is done, then the tax with be calculated onto the items and shipping.

Radio button 1 HST Only
Radio button 2 GST Only
Radio button 3 Other Country no tax

I'm attaching my js file in hopes that you guys can help. I'm not very good a javascript to any help would be appreciated..
browndirt2003
 
Posts: 2
Joined: Tue Sep 02, 2003 11:40 pm

2 Tax Modification

Postby Randy » Mon Oct 20, 2003 3:38 pm

I tried to attach the corrected files to the original message without success.
Sometimes this forum drives like a bag of hammers...

Hopefully this message will contain the language-en and nopcart.js files with the GST/PST modifications

There was a glitch in the way the GST was calculated on Shipping, now corrected...

Sorry for the inconvenience...

Randy
Randy
Guru
 
Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

2 Tax Modification

Postby Waysom » Tue Nov 18, 2003 7:45 pm

Randy, I didn't see any attached files. I sure would appreciate any help with some of the code for this & what I need to insert in the nopcart.js scipt. In view of the fact that there are so many countries with a multiple tax-tiered structure, I would think that this is a common issue.

Thanks to anyone that can help!

Wayne
Wayne
Waysom
 
Posts: 1
Joined: Tue Nov 18, 2003 3:34 am

2 tax files

Postby Randy » Sun Nov 30, 2003 6:07 pm

NOTE: No attachments are allowed on this forum, so grab them from http://www.girlguidestore.ca by hitting File, Save As and saving the page in a new folder on your hard drive. From there you can test it out...

Here are the files you need:
Nopcat.js and language-en.txt

Do a text search for GST to see the mods.
Tax rate is set at the top part, and the rest of the mods are in manageCart() and checkoutCart().

If you cannot download the files for any reason, just send me a PM with your email address, and I'll send them off.

Randy
Last edited by Randy on Sun Mar 21, 2004 3:17 pm, edited 1 time in total.
Randy
Guru
 
Posts: 1511
Joined: Tue Apr 22, 2003 12:21 pm
Location: Thunder Bay, Ontario

Re: 2 tax files

Postby Sirje » Tue Dec 02, 2003 8:15 pm

[quote="Randy"]Here are the files:
Nopcat.js and language-en.txt

Do a text search for GST to see the mods.
Tax rate is set at the top part, and the rest of the mods are in manageCart() and checkoutCart(). .....

In Sweden we have 3 tax rates as well. I would really like to see your modification, but I cannot see the attachments. Could you please email them to me:
sirje@telia.com

Thanks in advance
Sirje
 
Posts: 5
Joined: Sun Jun 22, 2003 11:37 am
Location: Sweden

Postby LALALU » Sun Mar 21, 2004 8:49 am

Randy .. I too can't see any link, or place to download, or an attachement .. could you please send this to me at
lala@psped.com

Much appreciated :)

Blessings
LALALU


Or... if anyone has this? I'd really appreciate getting my hands on it :)
Thanks again
LALALU
 
Posts: 3
Joined: Sun Mar 21, 2004 8:41 am

GST/PST

Postby WillemG » Thu Apr 15, 2004 1:55 pm

:D

I have it figured out, beta testing now. Next week I will post the script!
Life's great in Canada
WillemG
 
Posts: 2
Joined: Thu Apr 15, 2004 1:52 pm
Location: Ontario, Canada

Next

Return to Modifications

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron