Per product tax set to zero in the database if tax is active and exclusive
-
Hi,
Settings :
Replace tax percentage with product specific tax rate => on
Product prices are tax exclusive – add tax to the price during checkout => on
Apply tax when Billing Region is the same as Tax Rate => onSymptom :
1) tax computation is OK when the customer checkout
2) tax computation is OK in the admin interface
BUT these 2 computations are done on the totals, and not per product
3) On a third plugin (shop styling) the detail of the tax per product is incorrect. Indeed : that VAT is set to zero.I looked into the database in wp_wpsc_cart_contents. In this case, the column “tax_charged” is set to zero. The price indicated in “price” is the price without the tax.
I tracked this to cart-item.class.php
Indeed, in the code I found line 503 :
“if($wpec_taxes_controller->wpec_taxes_isincluded()” then tax computed then non null.Question : shouldn’t the column tax_charged contain the tax charged per product, no matter is the tax is inclusive or exclusive ?
(I suppose their also some code to change when the customer change the country)regards,
Vincent
- The topic ‘Per product tax set to zero in the database if tax is active and exclusive’ is closed to new replies.