Taxes Shipping? : LUSENET : S-Mart Shopping Cart : One Thread

Has anyone rewritten the calculation so taxes are added before shipping.

-- Jeff (, November 06, 1998


The shipping is being calculated before the tax routine. Just move the tax routine before the shipping in the cgi file.

Move tax routine from and including both of these lines if ($tax eq '1') { ... (around 50 lines of code) ... else { print ""; }

just above the shipping line that follows: if ($shipping eq '0') { # print nothing

I hope this helps out and makes sense.


-- Rob (, February 10, 1999.

A way the change the shipping being taxed is; where the script calls for $totalprice*$tax change it to ($totalprice-$shipamt)*$tax Worked for me. Good Luck Randy

-- Randy (, February 16, 1999.

Moderation questions? read the FAQ