WPIntell

Source evidence

Minimum Amount with Comma Instead of Decimal

Minimum Order Amount for Woocommerce · support · 2018-01-07T23:17:00+00:00

mixedsentiment
highseverity
0.94relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

10 / 67 rows with source links

14.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

57 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
customle resolved
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. 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), Worked perfectly, thanks. 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 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 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.

Comments

5 shown
buggfx 2018-01-14T17:08:00+00:00

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),

customle 2018-01-15T02:02:00+00:00

Worked perfectly, thanks.

dcurasi 2018-01-15T11:39:00+00:00

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

dcurasi 2018-03-04T16:37:00+00:00

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

dcurasi 2018-03-05T09:00:00+00:00

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.