Skip to content

Price Precision wrong on product listing pages #21725

Open
@paras89

Description

@paras89

Preconditions (*)

  1. Issue reproducible on: Magento version 2.2.7
  2. Oman Rial selected as currency

Steps to reproduce (*)

  1. Visit product listing page - see that the products have prices with precision 2.
  2. Visit product details page - see that the products have prices with precision 3.

Expected result (*)

  1. Listing page should have consistent price precision with product page.
    Oman Rial should have precision 3.
  2. PHP code in Magento, does not take into account Locale precision while the product price js on product details page does, so it works on product details page but not on listing page

Actual result (*)

1.Listing page has wrong precision

Additional Info

Prices in Persian Rial currency are currently displayed with precision 2, but should be displayed with precision 0. - The solution should fix the precision for all currencies.

Metadata

Metadata

Assignees

Labels

Area: CatalogComponent: CatalogIssue: 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: PR in progressReported on 2.4.xIndicates 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