New hooks: ‘woocs_price_thousand_sep‘ + ‘woocs_price_decimal_sep‘ which allows to manipulate by price thousand and decimal separators according to business logic (example is countries). Example:
add_filter('woocs_price_thousand_sep', function($separator, $currency) {
$wcgi = WC_Geolocation::geolocate_ip(); //woocommerce API
//UPPERCASE for country code!
switch ($wcgi) {
case 'US':
$separator = '.';
break;
case 'GB':
$separator = ',';
break;
case 'JP':
$separator = ' ';
break;
}
return $separator;
},10,2);
add_filter('woocs_price_decimal_sep', funct [...]