Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid numeric value found when creating checkout config #824

Open
Mark-Ernst opened this issue Mar 5, 2024 · 0 comments
Open

Invalid numeric value found when creating checkout config #824

Mark-Ernst opened this issue Mar 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Mark-Ernst
Copy link
Contributor

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

@Mark-Ernst Mark-Ernst added the bug Something isn't working label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant