Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psaikali/e2dcc4f08ca2ba773624f008e635d95a to your computer and use it in GitHub Desktop.
Save psaikali/e2dcc4f08ca2ba773624f008e635d95a to your computer and use it in GitHub Desktop.
Remplacer la virgule "," des prix WooCommerce par un point "."
<?php
/**
* Séparation des décimales des prix WooCommerce : remplacer la virgule par un point
*/
function msk_wc_price_args($args) {
$args['decimal_separator'] = ',';
return $args;
}
add_filter('wc_price_args', 'msk_wc_price_args');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment