close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple tax rules for Canada

Thread began 5/12/2010 1:57 pm by nathan405389 | Last modified 5/13/2010 4:27 pm by nathan405389 | 2249 views | 1 replies

Maggie Simpson

Jason, you have been so helpful, thank you. A couple more questions regarding details for coding the tax rules...
I have coded different tax rules based on cities within certain states. Am I correct in my coding per the following example?

//eCart Rule
function WAEC_eCart1_Nebraska7SalesTax() {
$totalTax = 0;
if (true && ((isset($_SESSION['eCartCheckoutForm_shipping_state_province'])) && ((isset($_SESSION['eCartCheckoutForm_shipping_state_province'])?$_SESSION['eCartCheckoutForm_shipping_state_province']:"") == "NE") && ((isset($_SESSION['eCartCheckoutForm_shipping_city'])?$_SESSION['eCartCheckoutForm_shipping_city']:"") == "Ainsworth") || ((isset($_SESSION['eCartCheckoutForm_shipping_city'])?$_SESSION['eCartCheckoutForm_shipping_city']:"") == "Albion") || ((isset($_SESSION['eCartCheckoutForm_shipping_city'])?$_SESSION['eCartCheckoutForm_shipping_city']:"") == "Alliance") ||



and so on...
for all the cities within Nebraska that have a 7% tax rate? I am thinking that I set up the criteria correctly so that it identifies if the shipping_state_province variable is equal to "NE" AND the shipping_city variable is equal to one of many values (a OR b OR c), then assess this tax rate...
Also, how picky is the rule based on how people fill out the form with capitalization for their shipping cities? If someone fails to capitalize their city, will it not meet the rule and therefore not have tax assessed on the purchase? Thanks. Sorry to be such a headache.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...