Skip to content

Price Field – 3 or more decimal places (e.g. Bitcoin – 0.00000001 BTC)

Show prices with more decimal places — eight for Bitcoin, three for ETH — by adding a one-line filter to the functions.php file of your child theme.

1 minute read

If you need more decimal places — 8 for Bitcoin (0.00000001 BTC), for instance — add this code to the functions.php file of your child theme (read more about child themes here).

functions.php
add_filter('vehica/price/decimalPlaces', function () {
return 8;
});

If you need only 3 decimal places (e.g. 0.001 ETH), use this code instead:

functions.php
add_filter('vehica/price/decimalPlaces', function () {
return 3;
});

Ask the people who build Vehica

We answer by email from support@tangiblewp.com. With Premium Support, we also fix your site when something breaks.

Was this guide helpful?