Snippets

Visser Labs Change the default WooCommerce currency delimiter and thousand separator in exports

Created by Michael Visser
<?php
function custom_woo_ce_wc_price_decimal_sep( $output ) {
    // Change the decimal separator to be . (dot)
    $output = '.'; 
    return $output; 
} 
add_filter( 'woo_ce_wc_price_decimal_sep', 'custom_woo_ce_wc_price_decimal_sep' );

function custom_woo_ce_wc_price_thousands_sep( $output ) { 
    // Change the thousand separator to be , (comma)
    $output = ','; 
    return $output; 
} 
add_filter( 'woo_ce_wc_price_thousands_sep', 'custom_woo_ce_wc_price_thousands_sep' );
?>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.