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!
:-)
Thanks!
Henrik