Raised value via shortcode
-
Hi, I have used the thermometer to show a dynamic raised value via a Molly form. The format of the raised value is incorrect. It should be EUR 7565,00 and is showing 7.57 instead.
I adapted the file: therm_shortcode.php with this code from another topic:
//raised value if ($atts['raised'] == '' && !empty($options['raised_string'])){ $thermProperties['raised'] = $options['raised_string']; } else{ if (!is_numeric(str_replace(",", ".", $atts['raised']))) { $shortcode = "[".strval($atts['raised'])."]"; $atts['raised'] = do_shortcode( $shortcode); } $thermProperties['raised'] = str_replace(",","",strval($atts['raised'])); }
Still the same issue. How can I get the value showed correctly?
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Raised value via shortcode’ is closed to new replies.