2017 © Pedro Peláez
 

wordpress-plugin acf-price

Wordpress ACF Price field with number formatting.

image

speccode/acf-price

Wordpress ACF Price field with number formatting.

  • Monday, November 13, 2017
  • by speccode
  • Repository
  • 1 Watchers
  • 8 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 1 Versions
  • 50 % Grown

The README.md

ACF Price Field

ACF Price field with number formatting., (*1)


Description

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)

Compatibility

This ACF field type is compatible with: * ACF 5 * ACF 4, (*8)

Installation

  1. Copy the acf-price folder into your wp-content/plugins folder
  2. Activate the Price plugin via the plugins admin page
  3. Create a new field via ACF and select the Price type
  4. Please refer to the description for more info regarding the field type settings

CHANGELOG

Please see readme.txt for changelog, (*9)

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/speccode/advanced-custom-fields-price

Wordpress ACF Price field with number formatting.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Maciej Czerpiński

acf advanced custom fields price