Skip to content

Invalid numeric value found when creating checkout config #824

@Mark-Ernst

Description

@Mark-Ernst

Plugin version

4.12.1

Magento version

2.4.1

PHP version

7.4

What went wrong?

Delivery options do not load due to an error when creating the config. This occurs when a user enters a decimal value separated by a comma in the settings.

Reproduction steps

  1. Enter 11,0 in a price field in the MyParcel carrier settings
  2. Navigate to the checkout with a product in the shopping cart
  3. Open the console and see the error in the network tab

Relevant log output

"Notice: A non well formed numeric value encountered in /var/www/magento2/app/code/MyParcelNL/Magento/Helper/Checkout.php on line 216"

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions