close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Tax Setup

Thread began 5/27/2011 5:36 pm by codamedia | Last modified 5/28/2011 9:02 am by codamedia | 679 views | 1 replies

codamedia

Solved - Per Item Taxes & Canadian Tax Rules

I managed to find a solution for this. It was a little difficult to envision and setup, but works fine and appears to be very flexible.

I will share the thought process here, in case anyone else is trying to setup per product taxes in Canada, where tax rates vary from Province to Province.

1: The product database needs three additional fields. GST, PST and HST. These fields are populated with 1 - 0 values. Simply check which taxes apply for each product. All this stores is whether or not the product is taxable, and which tax applies. For general product, you would check all three, food might be nothing, Books GST/HST (no PST), etc...

2: Create three new fields in the eCart Instance. gstVar, pstVar, hstVar

3: Create three new calculations in the eCart Instance.
gstTaxable = [TotalPrice]*[gstVar]
pstTaxable = [TotalPrice]*[pstVar]
hstTaxable = [TotalPrice]*[hstVar]

4: When creating the Add to Cart, bind the database values to the correct eCart variable. (ie: bind the DB GST field to gstVar, etc... etc...)

5: Create the tax rules based on the three calculations.
gstTotal = If the province is <add provinces that GST applies using OR statements>
Calculation = Based on column subtotal, gstTaxable * .05 (5%)

pstTotal = If the province is <usually just your home province>
Calculation = Based on column subtotal, pstTaxable * .07 (7%) (amount may vary)

HST is different. You will need to create a separte tax calculation for every province that uses HST.

hstTotal = If the province is <enter province here>
Calculation = Based on column subtotal, hstTaxable * <place province hst value here>


In the end, this gives you full control of whether or not a product needs to be taxed, and how much for each province. It is also very easy to change the tax values as the provinces change their minds on how much we owe them :)

This is a general "how-to" and will need to be adjusted to your cart. Hopefully it saves others a few hours of thought process!

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...