Dear virtuemart team,
We have 2 simple business requirements which we’re not able to configure with virtuemart 1.1.4
. I saw many threads with similar needs and therefore I’m hoping you can help all of us:
Current tax configuration:
1 Business requirement:
- Virtual tax: enabled
Tax mode: based on shipping address – we ship international (excl.tax) and national (incl tax)
Enable multiple tax rates: disabled
Shopper group: - default- // Show Prices including tax?: enabled
Product weight added
We are based in Switzerland and have no states, ship national (incl. tax) and international (excl. tax)
Product prices should be shown as gross prices (incl. local tax) with the additional text “(including XX% tax)” for not logged in users. e.g. for Switzerland/ CHE (store.country): CHF 209.00 (including 7.6 % tax)
Problem: The gross price “(including XX% tax)” is only shown when a user has been logged in and the bill_to_address.country is equal store.country.
Solution: Define default session country = store.country for not logged users for tax rate calculation and gross/ net price display in price.tpl.php, ps_cart.php and ps_checkout.php
Default (not logged in) should always be gross prices (including xx% tax) because local tax applies and is a legal requirement.2 Business requirement/ (BUG):
The “Tax Total” amount in ps_cart.php and ps_checkout.php should be calculated based on bill_to_address.country if no ship_to_address is defined
Problem: If you have tax mode = based on shipping address and on checkout page you select shipping information option “- Default (Same as Billing)” the Tax Total Amount remains 0.00 because no shipping address.country is defined. (this is reproducible bug)
Solution: If shipping information option “- Default (Same as Billing)” use the bill_to.address.country properly for tax and price calculation
This took me 4 hours to isolate, so please help me to fix this bug. I found many threads but not one solving the real issue.
Thanks for your support which is really appreciated.