dev-master
9999999-dev https://github.com/speccode/advanced-custom-fields-priceWordpress ACF Price field with number formatting.
MIT
The Requires
- php >=5.3.0
by Maciej Czerpiński
acf advanced custom fields price
Wordpress ACF Price field with number formatting.
ACF Price field with number formatting., (*1)
How it works
* Plugin will store your "price" as float so any time you will change desire number format there will be no reformatting problems.
* Best column type in database for "price" related fields is decimal. As WordPress keep meta as type "text" I can only cast it to float. Keep it in mind.
* Field validation is "live" thanks to https://github.com/teamdf/jquery-number.
* When you use get_field
function you will get preformatted number based on your settings., (*2)
Options, (*3)
format
, (*4)
Available formats:
* 1 337.55
* 1 337,55
* 1,337.55
* 1.337,55
* 1337
* 1 337
, (*5)
Default parameters result, (*6)
1 337.00
, (*7)
This ACF field type is compatible with: * ACF 5 * ACF 4, (*8)
acf-price
folder into your wp-content/plugins
folderPlease see readme.txt for changelog, (*9)
Wordpress ACF Price field with number formatting.
MIT
acf advanced custom fields price