I am using county codes to determine how much sales tax to charge for merchandise but for some strange reason it is not coming up with the correct answer. They select their county on the first page and on the second page it shows them the subtotal, tax (if applicable), shipping/handling and the Total.
Here is my code for the tax and shipping/handling:
<cfif #form.county# eq 0181 or 0321 or 0481 or 0441 or 0431 or 0511 or 0561 or 0711 or 0861 or 0831 or 1021 or 1131 or 1231 or 1811 or 1911 or 2111 or 2411 or 2511 or 2541 or 2611 or 2781 or 2911 or 3121 or 3481 or 3501 or 3551 or 3561 or 3621 or 3881 or 3911 or 4241 or 4321 or 4411 or 4511 or 4691 or 4611 or 4641 or 4921 or 5081 or 5111 or 5421 or 5621 or 5721><cfset event98_qty = (sub_total * '.08')></cfif>
<cfif #form.county# eq 0221><cfset event98_qty = (sub_total * '.085')></cfif>
<cfif #form.county# eq 0621 or 1421><cfset event98_qty = (sub_total * '.0825')></cfif>
<cfif #form.county# eq 0911 or 1521 or 2221 or 2321><cfset event98_qty = (sub_total * '.0775')></cfif>
<cfif #form.county# eq 1611 or 1711 or 1781 or 1721 or 2011 or 3281 or 3251 or 3261 or 4091 or 4111 or 4131 or 5281 or 5211 or 5311><cfset event98_qty = (sub_total * '.07')></cfif>
<cfif #form.county# eq 2811><cfset event98_qty = (sub_total * '.08625')></cfif>
<cfif #form.county# eq 8051 or 5521 or 6861 or 6511><cfset event98_qty = (sub_total * '.08375')></cfif>
<cfif #form.county# eq 3081 or 3091 or 3014 or 3016><cfset event98_qty = (sub_total * '.095')></cfif>
<cfif #form.county# eq 1311 or 3321><cfset event98_qty = (sub_total * '.08125')></cfif>
<cfif #form.county# eq 3721 or 5561><cfset event98_qty = (sub_total* '.07875')></cfif>
<cfif #form.county# eq ""><cfset event98_qty = 0></cfif>
<!--- Shipping and handling Costs Below--->
<cfif sub_total LTE "15.00"><cfset event99_qty = 7.95></cfif>
<cfif sub_total GTE "15.01" LTE "30.00"><cfset event99_qty = 8.95></cfif>
<cfif sub_total GTE "30.01" LTE "45.00"><cfset event99_qty = 9.95></cfif>
<cfif sub_total GTE "45.01" LTE "60.00"><cfset event99_qty = 10.95></cfif>
<cfif sub_total GTE "60.01" LTE "75.00"><cfset event99_qty = 11.95></cfif>
<cfif sub_total GTE "75.01"><cfset event99_qty = 12.95></cfif>
<!---Total (Equation)--->
<cfset total = sub_total + event99_qty + event98_qty>
My code for the shipping costs is not adding up correctly as well. I had something that had the sub_total of $23.50 and the shipping cost was $11.95