Snippets

Visser Labs Override the default currency decimal separator in exports

Updated by Michael Visser

File functions.php Modified

  • Ignore whitespace
  • Hide word diff
 <?php
 function custom_woo_ce_wc_price_decimal_sep() {
 
-    // Override the default thousand separator in Store Exporter Deluxe 
+    // Override the default decimal separator in Store Exporter Deluxe 
     return ',';
 
 } 
Updated by Michael Visser

File functions.php Modified

  • Ignore whitespace
  • Hide word diff
 <?php
-function custom_woo_ce_wc_price_thousands_sep() {
+function custom_woo_ce_wc_price_decimal_sep() {
 
     // Override the default thousand separator in Store Exporter Deluxe 
     return ',';
 
 } 
-add_filter( 'woo_ce_wc_price_thousands_sep', 'custom_woo_ce_wc_price_thousands_sep' );
+add_filter( 'woo_ce_wc_price_decimal_sep', 'custom_woo_ce_wc_price_decimal_sep' );
 ?>
Created by Michael Visser

File functions.php Added

  • Ignore whitespace
  • Hide word diff
+<?php
+function custom_woo_ce_wc_price_thousands_sep() {
+
+    // Override the default thousand separator in Store Exporter Deluxe 
+    return ',';
+
+} 
+add_filter( 'woo_ce_wc_price_thousands_sep', 'custom_woo_ce_wc_price_thousands_sep' );
+?>
HTTPS SSH

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