How do I subtract all taxes from a price with tax in OpenCart? In the example below I use the default “Taxable goods” tax setting from OpenCart, which is 20% VAT + $2,00 Eco-Tax. This returns an incorrect value of $14,64 because it calculates the tax on $number (20,80), which already is a price with tax. The correct price for
Tag: tax
WooCommerce custom shipping costs for min required subtotal with tax calculations
I have set some Shipping methods with taxable option enabled in WooCommerce. I use this code to set up different shipping cost if spend over X amount: But the problem is the tax calculations. My code doesn’t handle taxes. How can I adjust taxes from custom shipping cost? How to enable taxes in cost calculations? Any advice is appreciated. Answer
Remove all taxes in WooCommerce for a min cart total and specific countries
we need to charge 0 VAT for UK orders that are greater than 150 euro including shipping and payment gateway fees but excluding the 20% normal VAT. So if a British residential address orders something at 130 and shipping and payment gateway fees are 9 then we charge VAT so the customer pays 139+9+20% VAT, but, if the order is
How to make a custom cart fee to be taxable in WooCommerce
Found exactly the snippet I was looking for to add a fixed fee amount to each individual cart item regardless of price. This site sells tires. So each tire will be charged 3$. Here is the code I’m using and works: I’m not very good with PHP and I’m learning as I go. I did spend 3 hours trying to
How can I exclude Taxes From a custom COD Surcharge in WooCommerce?
I’m wondering how can I exclude the Cash on Delivery Surcharge from Taxes? I have used Add fee for Cash on delivery payment method (cod) in Woocommerce code to add the COD Surcharge I want to have this charge excluded from VAT & no VAT/TAX shall be applied to it. Any help will be appreciated. Answer To have that COD
Calculating tax using moneyphp
I am using the moneyphp/money class to store monetary values. However when calculating the tax owed I have an issue where the calculated tax is a decimal and the library is looking for an integerish …
Remove “estimated for {country}” text after tax amount in Woocommerce checkout page
I set up a 19% standard tax amount in my Woocommerce Online-Shop. Unfortunatley – now there is a text “estimated for Germany” behind the (includes 20,12 €… part below the total-amount in my checkout page (see image below). I guess it displays the text because the calculated tax amount has a lot of decimals. HTML This is not the case