Skip to content

Format PDP price to have only two decimal places#64

Open
esteban-serfe wants to merge 1 commit into
Affirm:masterfrom
Serfe:EstebanSerfe-pdp-decimal-places
Open

Format PDP price to have only two decimal places#64
esteban-serfe wants to merge 1 commit into
Affirm:masterfrom
Serfe:EstebanSerfe-pdp-decimal-places

Conversation

@esteban-serfe
Copy link
Copy Markdown

Description

To comply with the financial regulatory measures was requested to have the amount be shown only with two decimal places on the PDP content. In certaincircustances the price can have infinite amount of decimal places based on the rules of the discunt rules.

How To Reproduce

Steps to reproduce the behavior:

  1. Set a product with price $69.99
  2. Enter to the PDP page
  3. Open the code inspector and search <div id="als_pdp"
  4. The tag data-amount has more than 2 decimals.

Expected behavior

The price should be shown with 2 decimal places only.

Additional information

  • Tested on Magento 2.3 & 2.4.
  • Version 3.0.10 of this module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant