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 being calculated before discount

Thread began 2/15/2010 9:53 am by adam106173 | Last modified 2/23/2010 5:59 pm by adam106173 | 6696 views | 11 replies

Eric Mittman

Thanks for the example, I think it illustrates perfectly what I'm getting at here. In the charge rule that is applying the tax how does it know the total to apply tax to? In your example you would want to apply the tax to the discounted amount of the cd's. How does the cart calculate the discounted price of the cd's?

In this specific example you would want to take the price of the cd's minus the discount that is specific to them, then tax that amount. The problem is that this is not how discounts are organized in the cart. You are not actually changing the price of the cd's but you are applying a discount to the subtotal of the cart. To figure out the price that is charged for the cds you would need to take a total of the total price for that item, minus the specific discount. You would need to be able to do this for each item in the cart, essentially calculating the new item price to charge tax on the fly.

This would get very complex depending on the item and discount combinations that you would need to take account for. If you could store the discount price for the items it would be much easier to find the taxable total. Also, if discounts were only given to taxable items you could rely on that to make it easier to write this tax rule.

So in a nutshell the problem is determining the discounted price for the items, applying the tax amount would be very simple if you could determine the proper total first.

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





Ease of use


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