Quantcast
Channel: Tutorials Archives | Gravity Wiz
Viewing all articles
Browse latest Browse all 122

How to Add Three Decimals with Gravity Form Currencies

$
0
0

Gravity Forms provides support for a variety of currencies out of the box and allows you to change the currency for your forms on the Gravity Forms settings page.

Most default currencies will be set to two decimal places but what if you need to change this to three decimal places or some other number?

Enter the gform_currencies filter! This handy little snippet will allow you to select a currency and change the number of decimals used when working with the specified currency.

View this code snippet on GitHub.

In the example above, we are using the Euro (EUR) but you can replace this with any of the supported currencies. For a full list of Gravity Form Currencies please see our article on Gravity Form Currencies.

Bulk Pricing
Using three decimals is commonly used with bulk pricing. This means the more you buy the cheaper the per unit cost. If you’re looking for a simple way to setup bulk pricing, check out our powerful pricing plugin, GP Conditional Pricing

Viewing all articles
Browse latest Browse all 122

Trending Articles