Number punctuation in price tags
-
Dear all,
In my site, all my price tag are displayed in format 1,000,000. I would like to display in format 10,00,000 (from last three commas ,followed by 2 commas)
I see in functions.php ,thousands_sep fucntion is doing to this operation. How can I make to display integers as I desire .
function number_format_i18n( $number, $decimals = 0 ) { 173 global $wp_locale; 174 $formatted = number_format( $number, absint( $decimals ), $wp_locale->number_format['decimal_point'], $wp_locale->number_format['thousands_sep'] ); 175 176 /** 177 * Filter the number formatted based on the locale. 178 * 179 * @since 2.8.0 180 * 181 * @param string $formatted Converted number in string format. 182 */ 183 return apply_filters( 'number_format_i18n', $formatted ); 184 }
- The topic ‘Number punctuation in price tags’ is closed to new replies.