• Resolved Jesse

    (@jessedebakker)


    How can I change the decimal shown in the cart collateral from ‘.’ to ‘,’? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author grola

    (@grola)

    Hi,

    currently, this is not possible. We will add formatting this value according to WooCommerce settings.

    Best regards
    Grzegorz

    Plugin Author grola

    (@grola)

    Hi,

    we just released version 1.4.0. In this release, the weight is displayed by the wc_format_weight function, so woocommerce filters can be used.

    Best regards
    Grzegorz

    Thread Starter Jesse

    (@jessedebakker)

    Hi Grzegorz,

    Thank you for updating the plugin. Could you still provide me with an instruction to change the decimal to a comma?

    Plugin Support tograczyk

    (@tograczyk)

    Hi @jessedebakker,

    You can try to add the following code to the functions.php file of your theme / child theme or use e.g. the Code Snippets plugin:

    add_filter( 'woocommerce_format_weight', 'wpdesk_woocommerce_format_weight' );
    function wpdesk_woocommerce_format_weight( $weight ) {
    	return str_replace( '.', ',', $weight );
    }

    Best regards,
    Tomek

    Thread Starter Jesse

    (@jessedebakker)

    Hi Tomek,

    Worked like a charm. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change decimal’ is closed to new replies.