• Resolved techhair

    (@techhair)


    Hello,

    Like other people before us, we have the woocommerce error “Please enter a value with one decimal point (%s) without thousand separators.” when in our woocommerce settings the Decimal Separator is set to a comma “,”
    see screenshot:

    https://prnt.sc/FOGWt7bqcfmj

    The DHL plugin only accepts dots “.” which shows the woocommerce error, see screenshot:

    https://prnt.sc/gSPVxaRTWbzI

    This is normal since the input field “id=”pr_dhl_weight”” has the class “class=”wc_input_decimal””

    A simple workaround is to remove “_decimal” to just get “class=”wc_input””.
    See screenshot:

    https://prnt.sc/nRGIoRf9W5HQ

    We tested and it works perfectly.

    Can you implement this change as quickly as possible or fix your code differently to make it work correctly?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Abdalsalaam Halawa

    (@abdalsalaam)

    Hello @techhair
    i can see you have empty value for Thousand separator, can you change it and try?

    Thread Starter techhair

    (@techhair)

    Thank you for your reply,

    However our “Thousand separator” is not really empty, we have a space as a separator.
    see screenshot.
    https://prnt.sc/7jdTdR6eG8wH

    We tried replacing our “space” with a period “.” in the Thousand Separator however this changed nothing.

    This is logical since it is indicated that the id=”pr_dhl_weight” field has the class “wc_input_decimal”

    Plugin Author Abdalsalaam Halawa

    (@abdalsalaam)

    @techhair When you put , instead of . here : https://prnt.sc/gSPVxaRTWbzI
    it didn’t work also ? it should work with , since you choose the comma as a decimal separator

    Actually the plugin will accept the WooCommerce settings

    Thread Starter techhair

    (@techhair)

    When we put a comma “,” as configured in our woocommerce and as shown in the error message, then yes we can add the weight we want.

    This certainly removes the woocommerce error message but it displays the error message “The order “Weight” must be a number” from the DHL plugin.
    See screenshot:
    https://prnt.sc/XXwihugk-p5b

    The simplest thing, I think, is to change the class of the id=”pr_dhl_weight” field to no longer display the woocommerce error message and be able to add dots “.”

    otherwise you can also code a function to convert all decimal fields to dots “.” once the form is sent, but it is not a good solution I think

    Plugin Author Abdalsalaam Halawa

    (@abdalsalaam)

    @techhair can you send the latest log file to our support email :
    “dhlsupport [at] progressus.io
    so I can check what is going wrong?
    you can find it under :
    WooCommerce > Status > Logs > DHL (make sure to send the latest log file)

    Plugin Author Abdalsalaam Halawa

    (@abdalsalaam)

    Hello @techhair
    It seems you use Deutsche Post, We are working on this issue and we will let you know once we fix it ASAP

    thank you

    Plugin Author Abdalsalaam Halawa

    (@abdalsalaam)

    Hello
    We released v3.6.9 to fix this issue, update to the latest version and check please?

    Thread Starter techhair

    (@techhair)

    Hello,

    We just tested it, and it works! Thank you very much for your work!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error “Please enter a value with one decimal point (%s)”’ is closed to new replies.