Skip to content

Old price excluding TAX is incorrectly replaced by JavaScript #11998

Closed
@VesnaS

Description

@VesnaS

Preconditions

  1. Tested on Magento versions 2.4-develop
  2. PHP 7.2

Steps to reproduce

  1. In Admin, set Stores -> Configuration -> SALES -> Tax -> Price Display Settings -> Display Product Prices In Catalog to "Including and Excluding Tax"
  2. Configure tax class and set it for the product
  3. Set special price for the product
  4. In vendor/magento/module-catalog/view/base/templates/product/price/final_price.phtml, set "skip_adjustments" to FALSE for "old-price"

Expected result

  1. On product detail view page in frontend, old price and new price are displayed with and without TAX

Actual result

  1. New price and old price excluding TAX are the same. This happens because JavaScript in vendor/magento/module-catalog/view/base/web/js/price-box.js replaces prices incorrectly.

old_price_bug_report

Metadata

Metadata

Labels

Component: CatalogComponent: TaxIssue: needs updateAdditional information is require, waiting for responseSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions