Questions tagged [tax]

a financial charge or other levy imposed upon a taxpayer (an individual or legal entity) by a state or the functional equivalent of a state to fund various public expenditures.

A Tax is a financial charge or other levy imposed upon a taxpayer (an individual or legal entity) by a state or the functional equivalent of a state to fund various public expenditures.

286 questions
1
vote
1 answer

Conditionally change products tax class via hooks in WooCommerce

I have implemented a b2b area into my WooCommerce Shop about 18 months ago. Recently I have updated all plugins and wordpress itself. Switching the tax class on variable products doesn't work anymore. The code below worked so far, but stopped…
jfla
  • 13
  • 3
1
vote
1 answer

Woocommerce shipping taxes and bad total calculations

Currently the tax total is based only on the sub total and not including the shipping product $129 cart total $129 shipping $35 sub total $164 tax(10%) should be $16.40 but instead its $12.90 total $176.90 should be $180.40 As you can see I renamed…
Francis Alvin Tan
  • 1,057
  • 3
  • 21
  • 42
1
vote
1 answer

Add tax below the total in WooCommerce order details

In WooCommerce, I'm trying to add tax below the total in the order details. I want to add a line to order totals. The code below doesn't work however: //Show tax in order details add_action( 'woocommerce_checkout_create_order', 'func_new_total',…
Paudun
  • 287
  • 1
  • 6
  • 15
1
vote
1 answer

Magento 2 - Estimate Shipping and Tax cart does not calculate or include my custom shipping method's rate

I have used a custom shipping method and when you go to the Estimate Shipping and Tax cart, my custom shipping method 'rate' is not being added into the Order Total. As you can see the image below. estimate-shipping-tax-cart When I select my…
1
vote
2 answers

Remove Aelia EU Vat number field from unlogged user in Woocommerce checkout

How can I remove a 3rd Party field for non logged in visitors? It is placed in the billing section, but can't accessed with unset code. This is rendered in the checkout page:

cysus
  • 143
  • 1
  • 12
1
vote
1 answer

Adjust Shipping Class based on Product Tax Class in WooCommerce

I am currently trying to implement some dynamic taxing for products and shipping in WooCommerce. So far, I have used this method: WooCommerce Documentation on Tax Classes and User Roles for setting the Tax Class of Products added to the cart based…
Case Silva
  • 466
  • 7
  • 26
1
vote
0 answers

Woocommerce price_excluding_tax is same as price_including_tax

I have enabled tax rates and calculations. I'm entering prices inclusive of tax. The standard tax rate is set to 20% but the price_excluding_tax is the same as price_including_tax. Can you tell me, if there is something in the settings which I have…
sunergos
  • 129
  • 2
  • 14
1
vote
1 answer

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 value. Example: $invoiceTotal = new Money("155"…
1
vote
1 answer

Setting a tax class based on specific coupon in Woocommerce

This has been answered a while back but the filter is not working anymore. Not sure if it is deprecated or not. I am using both filters: woocommerce_product_tax_class woocommerce_product_get_tax_class My function looks like: function…
Tyler Nichol
  • 635
  • 2
  • 7
  • 28
1
vote
1 answer

Always pay same price, regardless of tax country

We've a webshop built in Woocommerce and we accept crypto payments (Bitcoin, ETH etc). Since we're based in the EU we need to calculate tax on our prices. So every customer that's inside the EU needs to pay tax. We've displayed the prices…
Mand
  • 499
  • 1
  • 5
  • 25
1
vote
0 answers

Woocommerce - Hide price when empty

I use woocommerce. In my product page, I have changed the code in price.php to show both price inclusive and exclusive taxes. But for some products, there is no price and they have to contact us to get the price. So when the price is empty, I don't…
rebirth
  • 23
  • 4
1
vote
1 answer

Hide international tax rate label from checkout process

I have a store that sells nationally (New Zealand) as well as internationally. I want a given product to be charged at a consistent price (say, for example NZD$4.95) For New Zealand orders, I need to be able to highlight the fact that the price…
warm__tape
  • 250
  • 4
  • 19
1
vote
0 answers

inexplicable "'float' object is not callable" in marginal tax income calculator

To begin, I am new to all of this. I could have done this in excel, but decided this would be a good project to give a try. I used to be quick learning smart cookie, but I am mostly just stupid nowadays. I have no idea what this is caused by. It…
1
vote
2 answers

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…
evavienna
  • 1,059
  • 11
  • 29
1
vote
1 answer

Show tax amount from a single product in woocommerce

I'd like to add a woocommerce function that creates a shortcode who displays the tax amount from a single product in the product page. The optimal solution would be to do the math(productprice * 0,25) directly in the php function and echo the…
doob
  • 143
  • 1
  • 3
  • 10