Which recommended the following be added to the child theme's functions.php file.
add_shortcode('format_money', 'sk_format_money');
function sk_format_money( $atts ) {
extract( shortcode_atts( array( 'price' => '0' ), $atts ) );
// $money = number_format( ( float )$price, 2, '.', ',' ); // if you want to show cents
$money = number_format( $price );
return $money;
The above has been depreciated and is now throwing an error.
Can you provide an updated solution?
Hello. Thank you for contacting the Toolset support.
Can you please share what error you see and how exactly you are calling the shortcode?
Maybe better if you can share problem URL where you are trying to display the formatted price/money and admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.