Skip to content

Configurable product regular price shown including tax while configured to show prices without tax #38800

Open
@oskar-olaussen

Description

@oskar-olaussen

Preconditions and environment

Magento version 2.4.6-p2

Tax class "Taxable Goods" set with some tax rate. I used 24%.

Tax settings:
tax/calculation/price_includes_tax set to 1 (Catalog prices: Including tax)
tax/display/type set to 1 (Display Product Prices In Catalog: Excluding tax)

Steps to reproduce

  1. Tax class "Taxable Goods" set to some configurable child.
  2. Set a special price for that configurable child.
  3. Reindex
  4. Navigate to the configurable product page and select the child product.

Expected result

The child's regular price is shown excluding tax.

Actual result

The child's regular price is shown including tax.

Here are the prices set in the admin:
Screenshot from 2024-06-05 15-36-54
Screenshot from 2024-06-05 15-36-39

Here is what is shown on the front end:
Screenshot from 2024-06-05 15-38-02

The regular price should be shown excluding the tax but is shown including the tax instead.

Additional information

One possible fix would be to get the value excluding tax here:
https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/ConfigurableProduct/Block/Product/View/Type/Configurable.php#L299

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: UiIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.6-p2Indicates 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