Skip Navigation

[Resolved] calculation help needed : sqft to sqm , price per sqft

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 15 replies, has 2 voices.

Last updated by Akhil 7 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#546724

Hi Minesh,

there is warning :
PHP Warning: number_format() expects parameter 1 to be double, string given in /home/site/public_html/stage2/content/themes/toolset-starter-child/functions.php on line 45

the function as above is :

function number_format_shortcode($atts, $content = "") {
<strong>$x = number_format(wpv_do_shortcode($content),2, '.', ',');</strong>
$x = explode(".",$x);
 return $x[0];
}
add_shortcode('number-format', 'number_format_shortcode');

Pls advice. Thank you.

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.