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

Applying German tax rules

Thread began 12/14/2010 2:16 pm by henrik.schlegel400884 | Last modified 6/16/2011 3:00 am by henrik.schlegel400884 | 2288 views | 7 replies


Applying German tax rules

There were some threads before in the forum dealing with that subject but I found no solution for what I want to do.

In Germany it is usual praxis if you sell to 'normal' customers (not biz to biz) that the tax is included in the displayed price (Grand Total).

So, I would like the calculated tax just be a displayed amount and not adding itself to subtotal and shipping!

Let's give an example. Let's say we have a shopping cart with:

1 CD - Price: Euro 25.00

Sub-total: Euro 25.00
Shipping: Euro 4.00

Tax (included in Grand Total): Euro 4.63
Grand Total: Euro 29.00

This would be an usual German Invoice. You add the sub-total and shipping and get the Grand Total. The tax is 19 percent of Grand Total (in other words: Grand Total times 0.15967) and will just be displayed.

This is what I try to achieve in the shopping cart, confirm and checkout success pages. It seems to me that can't be achieved with the calculation of the "eCart Object Tax Rule". Because the calculated tax always adds to the sub-total and shipping.

So I have the following idea:

In the "eCart Object Tax Rule" I have calculated the correct tax amount. So the Shopping Cart is correct - except the Grand Total. This is to high - precisely at the amount of the tax.

This is the code which displayes the Grand Total in the Shopping Cart:

<?php echo WA_eCart_DisplayMoney($eCart_en, $eCart_en->GrandTotal()); ?>

If I could change this code - that it subtract the Tax from the Grand Total - the Grand Total would be correct!

The tax is displayed with this code:

<?php echo WA_eCart_DisplayMoney($eCart_en, $eCart_en->GetTax()); ?>

I am just at the beginning with php and don't know how this can be done. (I hope it can! ...)

So, if somebody could help me on this ...
This would be great and highly apreciated!


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