• Resolved dfwpress

    (@dfwpress)


    Hello,

    Please can you consider the possibility that comma can be used as decimal separator for input product prices.
    I can set in Woocommerce settings that comma is used for displaying the product prices.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Is this working for you from WooCommerce default product editor?

    Not working for me -> https://ibb.co/fMMdLm1

    Thank You

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Well, add this code to insert comma in price fields ->

    add_filter( 'wcfm_product_manage_fields_pricing', function( $pricing_fields, $product_id, $product_type ) {
    	if( isset( $pricing_fields['regular_price'] ) ) {
    		$pricing_fields['regular_price']['type'] = 'text';
    	}
    	if( isset( $pricing_fields['sale_price'] ) ) {
    		$pricing_fields['sale_price']['type'] = 'text';
    	}
    	
    	return $pricing_fields;
    }, 50, 3 );

    Thank You

    Thread Starter dfwpress

    (@dfwpress)

    It seams that this code is OK. I have just tested this with one test product.

    Thank you

    Plugin Author WC Lovers

    (@wclovers)

    Sure, you are welcome ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comma as decimal separator’ is closed to new replies.