Jump to content

Display tax rate from state not country


Innla

Recommended Posts

Hi,

I have applied different tax rates for different countries and I am displaying the tax rate applied to products with the variable $product.rate. It works well for different countries but in one country I have applied different rate to some states.

If I have and address from this state, Prestashop is apliying the correct rate to the price, but the $product.rate variable is displaying the rate from country instead of state.

I will put an example to better understand:

Austria 20%

Germany 19%

Spain 21%

Spain ( state A ) 21%

Spain ( state B ) 0%

 

In checkout, i have select Spain and state B in my address. Price is correct, includes 0% tax rate, but $product.rate is displaying 21%.

 

What is this happening? Is there another way to get the correct tax rate?

PD: I know that I can just calculate it using the price with and without tax, but I would like to understand why is this happening, maybe I am doing something wrong.

 

Thanks in advance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...