Closed
Description
Preconditions
- Tested on Magento versions 2.4-develop
- PHP 7.2
Steps to reproduce
- In Admin, set Stores -> Configuration -> SALES -> Tax -> Price Display Settings -> Display Product Prices In Catalog to "Including and Excluding Tax"
- Configure tax class and set it for the product
- Set special price for the product
- In vendor/magento/module-catalog/view/base/templates/product/price/final_price.phtml, set "skip_adjustments" to FALSE for "old-price"
Expected result
- On product detail view page in frontend, old price and new price are displayed with and without TAX
Actual result
- 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.