I need to set the output of [[+price]] to all way show two decimals "0.00"
How would I create a custom snippet to use as an output filter?
Thanks
Everything I know I learned on the internet. Saved me thousands in College tuition,
<?php
return number_format($number, 2, '.', '');
use it:
[[+myPlaceholder:money_format]]
see:
http://www.php.net/manual/en/function.number-format.php
Thanks, but when I do this it just shows 0.00. My placeholder is [[+price]] should this be in the script?
Everything I know I learned on the internet. Saved me thousands in College tuition,
Try this:
<?php
return number_format($input, 2, '.', '');