Add formatting to price fields in Search - $ and , #199
Labels
enhancement
This is an enhancement or new feature
feedback
This issue or PR is based on user feedback
Clients have requested we improve the price fields on the search form to include the $ and commas in the price format, so prices appear like
$1000
$10,000
$100,000
$1,000,000
This requires changes to both the CSS to show the characters as well as field type changes to correctly handle the data that is exchanged with the API when searched.
Specifically,
The search dollar input is currently
type="number"
- and browsers don't format that in any way by default.We need to change that to
type="text"
input, add a change handler to format the number and remove those commas before we send them to the API.For the CSS to add the $, that can be done manually now, but should be added to the plugin to be universal.
$ CSS code, for reference
The text was updated successfully, but these errors were encountered: