magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Magento adds tax to price, even though admin price already includes tax #10067

Closed JacobDrummond closed 5 years ago

JacobDrummond commented 7 years ago

Precondtions

Steps to reproduce

  1. Create a product with price £120
  2. Add a Tax rate/rule which applies 20% tax to the product
  3. Set [Stores > Configuration > Sales > Tax > Calculation Settings > Catalog Prices] to "Including Tax"
  4. Set [Stores > Configuration > Sales > Tax > Price Display Settings > Display Product Prices In Catalog] to "Including and Excluding Tax"
  5. Refresh caches
  6. Load product from step 1 on frontend

Expected result

Actual result

oleg-onufer commented 7 years ago

Hi @JacobDrummond. I cannot reproduce this issue. What is operating system where your project is installed? Please add screenshots "Calculation Settings" ,"Price Display Settings" sections

JacobDrummond commented 7 years ago

@oleg-onufer, here are my replication screenshots:

Build product

github_1

Configure tax

github_2

I then clear caches and reindex.

Wrong price shows on frontend

github_3

oleg-onufer commented 7 years ago

Hi @JacobDrummond. I cannot reproduce this issue. What is operating system where your project is installed? What is version your magento CE or EE?

-- Try clear the magento cache (php bin/magento cache:flush") and browser cache -- Make sure that the settings relate to a particular website (If you have two or more websites)

JacobDrummond commented 7 years ago

@oleg-onufer,

Environment

This issue is present in our Windows dev environment and Ubuntu staging environment.

Caches

I am clearing all Magento and Google Chrome caches before refreshing frontend pages

Scopes

oleg-onufer commented 7 years ago

@JacobDrummond I cannot reproduce this issue Do this: -- Caching Application = "Build-in cache" -- If you need to clear the cache use this command: php bin/magento cache:flush Maybe the problem is related to the new extension Can you reproduce the issue on fresh installed magento(and create a video)?

oleg-onufer commented 7 years ago

Hi @JacobDrummond. Thanks for reporting this issue. Internal ticket MAGETWO-70568 was created.

JacobDrummond commented 7 years ago

@oleg-onufer, this issue is still tagged as "needs update", despite an internal ticket being created. Do you still need replication guidance from me?

oleg-onufer commented 7 years ago

No thanks.

korostii commented 7 years ago

@oleg-onufer, in such case, could you please either update the issue status, or forward it to someone who can?

JacobDrummond commented 7 years ago

Hi @oleg-onufer,

Any idea when someone will be working on this? I understand you guys are very busy, but unfortunately this issue is blocking a project signoff.

Given that no-one else has chimed in, I'm guessing most users input pre-tax prices, thereby avoiding this bug.

Do you have any suggestions for those who can only input post-tax prices?

giorg commented 7 years ago

Hi, exactly same problem here, using 2.1.7 on linux/nginx. And as Jacob, also here this is blocking a project signoff. please help

giorg commented 7 years ago

@JacobDrummond found the solution: the problem is the country. https://github.com/magento/magento2/issues/7043

JacobDrummond commented 7 years ago

@giorg, that works for me. Thank you so much!

@oleg-onufer, it's a bit alarming that a major tax setting isn't even referenced from the "Tax" tab. E.g. somewhere in "Tax" have a field comment that says "Have you checked shipping origin?".

kaseyfurlong commented 7 years ago

@giorg the resolution outlined in #7043 is not solving the problem for us. is there another solution to this issue? capture

capture2

kaseyfurlong commented 7 years ago

@giorg please confirm what steps we can take to help expedite solution or assistance with this issue.

kaseyfurlong commented 7 years ago

work around found here: https://blog.amasty.com/little-known-discount-issue-in-magento-and-how-to-fix-it/

magento-engcom-team commented 7 years ago

@JacobDrummond, thank you for your report. We've created internal ticket(s) MAGETWO-80015 to track progress on the issue.

Tomasz-Silpion commented 6 years ago

I've had exactly same problem several minutes ago and fixed it with setting shipping origin, cache flush, reindex and cache flush again.

VincentMarmiesse commented 6 years ago

Hello, Any news on this issue? I'm still having it on a Magento 2.2.2.

Shipping origin is set to France and France has 20% tax in my example. Tax is calculated on shipping address. Price entered in Catalog are Including tax and config is set accordingly.

In front, tax is added twice so if a product has a price of 100€, it's displayed as 120€.

BrianHeeseIs commented 6 years ago

Still having this issue on 2.2.4, any update on when this will be fixed?

magently commented 6 years ago

We couldn't reproduced the bug - tried on Magento 2.1, 2.2 and 2.3-alpha with PHP 7.0, 7.1 and 7.2.

TristanPerchec commented 6 years ago

You should check the Sales > Tax > Calculation Settings > Enable Cross Border Trade option and set it to Yes. It should fix your problem.

syno-ght commented 5 years ago

Hello guys,

Any update on this issue ?

We need a fix for one of our clients.

Cross border trade is not an option in my case, I want the tax automatically deducted from the price.

Thanks,

eliadcohenn commented 5 years ago

@oleg-onufer, here are my replication screenshots:

Build product

github_1

Configure tax

github_2

I then clear caches and reindex.

Wrong price shows on frontend

github_3

Hey, How I creating the rule? : Add a Tax rate/rule which applies 20% tax to the product

ghost commented 5 years ago

Best,

This is what happening on magento 2.3.2

Calculation wrong Calculation

If i change Stores > Configuration > Sales > tax: Catalog prices including tax Magento calculates + 21 Vat correctly. But my prices have the vat already.

If i change back to Catalog prices excluding tax it calculates 17.3600 Percent of Vat So what is going on?

Best regards, hoping for a solution soon.

magento-engcom-team commented 5 years ago

Unfortunately, we are archiving this ticket now as it did not get much attention from both Magento Community and Core developers for an extended period. This is done in an effort to create a quality, community-driven backlog which will allow us to allocate the required attention more easily.

Please feel free to comment or reopen according to the Issue reporting guidelines the ticket if you are still facing this issue on the latest 2.x-develop branch. Thank you for collaboration.

Jeffrey-H commented 1 year ago

You should check the Sales > Tax > Calculation Settings > Enable Cross Border Trade option and set it to Yes. It should fix your problem.

This is true, except for when you want a customer group without tax. Then the price will be the same as the price including tax.