The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Extra tax logic
Author Message
Reply with quote
Post Extra tax logic 
we have an extra county tax where I live, in ID.

What I am trying to do is add logic that will include all the cities ( I show 3 of the 13 to be listed)in the county. This is what I have so far, is this the correct format?


Code:
$sc_city_tax_variable = "Ecom_ShipTo_Postal_City";
$city_variable = $form_data{$sc_city_tax_variable};
if ($city_variable =~ /Post Falls, Coeur D Alene, Athol/i) { # replace city name with yours
$city_tax = ($subtotal *0.065);  # replace decimal values with your tax amount


Also the tax amount shown is the TOTAL tax, county and state. Is this correct or do I just show the additional tax needed?

View user's profile Send private message
Reply with quote
Post  
hell-o
looks ok to me. have you tested it? add a few more statements and test for different cities.
regards,
dan

Reply with quote
Post city tax not working 
Hello, I'm using the extra tax logic for other cities, but it's just adding the state tax. I am using the AuthorizeNet form. This form uses a zip code variable, but not a city. Is this causing the problem? Do I need to update the tax logic to recognize zip codes instead of cities?

View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum