I have a form here:
http://remingtontopsoil.com/order-online
I recently added this code to automatically add VA sales tax to my order:
http://pastie.org/2102201
This code works. However the sales tax should not be charged on the delivery fee.
So the tax is calculated like this:
return total + (total * 0.05);
Is there a way to identify the delivery fee field on my form, so that I can subtract it from the total before applying the sales tax? The field label on my form is "Delivery Fee by Zip Code". Would I use the field name or is there a way to get the field "id"?
So can I change the code to something like this?
return total - delivery fee by zip code;
return total + (total * 0.05);
return total + delivery fee by zip code;