Skip to content

Product custom option pricing ignores tax calculation settings #37430

Open
@bentideswell

Description

@bentideswell

Preconditions and environment

  • Magento version: 2.4.6

Steps to reproduce

  1. Create new simple product and set price as 0.00 and add a custom option with a fixed price of $10.00
  2. Navigate to Stores > Configuration > Sales > Tax
  3. Change 'Calculation Settings > Catalog Prices' to 'Includes Tax'
  4. Change 'Price Display Settings > Display Product Prices in Catalog' to 'Including Tax'
  5. Change 'Shopping Cart Display Settings > Display Prices' to 'Including Tax'
  6. Change 'Default Tax Calculation Destination' to 'United Kingdom'
  7. Setup a 20% tax rule that is auto applied to the United Kingdom.
  8. Browse to the product on the frontend and view the option price

Expected result

The website is configured to input prices including tax and then display them including tax. The product has a price of $0.00 and the option has a price of $10.00 so the option should display at $10.00. When added to the cart with this option, the price should be $10.00.

Actual result

The option price is $12.00 (assuming a 20% tax rate), which is incorrect. Product pricing is configured to be entered including tax so the $10 entered for the option should not have tax added to it.

Additional information

I first noticed this bug on 2.4.3-p3 but have tested this on a 2.4.6 CE install for this bug report and confirm it is still there.

When product prices are entered inculding tax and configured to display including tax, tax is added to option price, which is incorrect as this has been entered including tax.

I have since noticed that this bug only exists when setting the tax rule for the UK (which is what my client uses). When using the US, this does not occur. The only difference here potentially is the State field.

As a workout around users must enter their product custom option prices excluding tax. This is confusing as all other pricing on the site is entered inclusive of tax.

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: TaxComponent: TaxIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.6Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions