• Resolved customle

    (@customle)


    The currency (USD) in the cart message is showing with commas instead of decimals. Here’s what it says now:

    A Minimum of $100,00 USD is required before checking out.
    Current cart’s total: $52,64 USD

    How do I change the comma to a decimal? It was working fine until just recently.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Here’s how I fixed this:

    Edit the plugin file “public/class-dc-moafw-public.php” and look on lines 134, 136, 149, 151, 165, and 177.

    On each of these lines you will see a function call similar to:
    number_format($minimum_cart_total, 2, ',', '.'),

    Remove the last two function arguments, for example:
    number_format($minimum_cart_total, 2),

    Thread Starter customle

    (@customle)

    Worked perfectly, thanks.

    Plugin Author dcurasi

    (@dcurasi)

    Hi,

    The change is correct.
    In the next version of the plugin I will add the possibility to choose whether to use the dot or comma.

    If you like the plugin, please give it a rating.

    Regards,
    dcurasi

    Plugin Author dcurasi

    (@dcurasi)

    Hi,

    i have updated the plugin.
    With this update the decimal and thousands separators, the currency position and the number of decimals in the price will be automatically set as in the Woocommerce settings.

    If you like the plugin, please give it a rating.

    Regards,
    dcurasi

    Plugin Author dcurasi

    (@dcurasi)

    Hi Steven,

    no patches are required.
    Simply set the “Currency Display Type” option to “Symbol” to display the $ symbol instead of USD.

    We have already discussed privately that the non-effectiveness of the plugin in the checkout is due to some conflict on YOUR SITE and that the same problem also occurs with the snippet provided by Woocommerce.
    Please, next time ask me before writing these things.
    I hope I can help you with yours as soon as possible.
    If you are patient, we can find a solution.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Minimum Amount with Comma Instead of Decimal’ is closed to new replies.