Price Formatting (Removing comma and dot) for sorting using TablePress
-
Greetings!
I use APIAP to display prices which I arrange in a table using the popular and free TablePress plugin.
When using any of the price variables the prices are displayed with comma between the thousands and a dot between the full dollar and cent values. (e.x. $1,999.99 USD)
The formatting breaks the sorting possibility in the published TablePress table. (see e.x.: https://michaelkowalczyk.eu/gear/ricoh-gr-smallest-lightest-fixed-prime-lens-camera/)
Would it be possible to parse the price without the comma and dot? (ex. $1999 USD)
This would allow to sort the price from low to high in a proper way.
Thank you for the support and have a good week!
Best, Michael
- The topic ‘Price Formatting (Removing comma and dot) for sorting using TablePress’ is closed to new replies.