question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

|$NaN is displayed as the shipping method

See original GitHub issue

Steps to reproduce the issue

  1. In Magento set only one of Shipping Methods enabled (but not Flat Rate), for example enable: Table Rate
  2. Add any product to cart and go to checkout
  3. Fill in all required fields, but don’t choose shipping method!
  4. Click “Continue to payment”

Current behavior

Customer is able to continue, without choosing shipping method. |$NaN is displayed as shipping method

image (2)

shippingmethod

Expected behavior

If only one shipping method is available, then it should be chosen by default.

Repository

Can you handle fixing this bug by yourself?

  • YES
  • NO

Which Release Cycle state this refers to? Info for developer.

Pick one option.

  • This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from develop branch and create Pull Request 2. Feature / Improvement back to develop.
  • This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
  • This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Environment details

  • Browser: Chrome 73.0.3683.103
  • OS: Windows 10 Pro
  • Code Version: v1.9.0

Additional information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
alinadivantecommented, Jun 12, 2019

yeah, it works! I checked tablerates.csv file and I chose specific country and I placed the order without errors! 😃

0reactions
patzickcommented, Jun 19, 2019

@pkarw please do not close issues with not merged PRs

Read more comments on GitHub >

github_iconTop Results From Across the Web

$NaN is displayed as the shipping method · Issue #2881
In Magento Panel, set Table Rate Shipping Method enabled; Add any product to cart and go to checkout; Fill in all required fields...
Read more >
$NaN error in shopping cart
when I go to check out and select a shipping method or a payment method, the Goods Total and Total Order cost displays...
Read more >
javascript - Always display total and stop from displaying NaN
I'd like it to keep a running total and just display the placeholder but unless I put the value of the inputs to...
Read more >
Calculate variables.....giving me NAN - ServiceNow Community
Solved: function onSubmit() { //Type appropriate comment here, and begin script below var val_1 = ''; var val_2 = ''; var val_3 =...
Read more >
How to display the shipping method in a Dropdown ... - YouTube
WooCommerce Shipping Display Mode plugin provides you an interface in the WooCommerce setting section from the admin side.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found