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

|$NaN is displayed as the shipping method #2881

Closed
2 of 5 tasks
alinadivante opened this issue May 9, 2019 · 16 comments
Closed
2 of 5 tasks

|$NaN is displayed as the shipping method #2881

alinadivante opened this issue May 9, 2019 · 16 comments
Assignees
Labels
3: Medium complexity bug Bug reports QA approved after merge Testers will add this label after positive check on merged changes vs-hackathon Tasks for the Hackathon
Milestone

Comments

@alinadivante
Copy link
Collaborator

alinadivante commented May 9, 2019

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

@alinadivante alinadivante added the bug Bug reports label May 9, 2019
@pkarw pkarw added this to the 1.11.0-rc.1 milestone May 10, 2019
@glevhen
Copy link

glevhen commented May 31, 2019

@alinadivante @pkarw it's not bug, you just should update your config/default.json or config/local.json and set is as a default, vs takes shipping methods from config file not from magento
replace shipping node via
"shipping": { "methods": [ { "method_title": "Title", "method_code": "bestway", "carrier_code": "tablerate", "amount": 0, "price_excl_tax": 0, "price_incl_tax": 0, "default": true, "offline": true } ] },
something like this
image

@alinadivante
Copy link
Collaborator Author

Ok, I changed the local configuration and you're right @glevhen, but anyway, I think that displaying $NaN in this situation is not right

@pkarw
Copy link
Collaborator

pkarw commented Jun 5, 2019

Fixed with the #2887

@pkarw pkarw added the QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. label Jun 5, 2019
pkarw added a commit that referenced this issue Jun 5, 2019
@pkarw pkarw modified the milestones: 1.11.0-rc.1, 1.10.0-rc.1 Jun 5, 2019
@alinadivante
Copy link
Collaborator Author

@pkarw above problem doesn't exist anymore, but when I enable only Table rate - I can't place order.
See errors:
image

(for Flat rate or Shipping free it is okay)

@alinadivante alinadivante removed the QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. label Jun 6, 2019
@pkarw
Copy link
Collaborator

pkarw commented Jun 6, 2019

Thanks, Alina! No idea why is that :-( Let's check it - maybe the reason is that the options isn't properly set while there is only one - wrong default option set

@patzick patzick added the vs-hackathon Tasks for the Hackathon label Jun 6, 2019
@alinadivante
Copy link
Collaborator Author

Steps to reproduce:

  1. In Magento Panel, set Table Rate Shipping Method enabled
  2. Add any product to cart and go to checkout
  3. Fill in all required fields and choose Table Rate in Shipping Methods section
  4. Try to place order

@alinadivante
Copy link
Collaborator Author

alinadivante commented Jun 6, 2019

Eugene you can check now this problem on https://test.storefrontcloud.io/

@glevhen
Copy link

glevhen commented Jun 6, 2019

@alinadivante will check

@glevhen
Copy link

glevhen commented Jun 6, 2019

@alinadivante seems it's again something wrong with your configurations, did you properly config magento/vsf-api? Did you run reindexing after you did changes in magento configurations? I see this error
{code: 500, result: "Carrier with such method not found: bestway, tablerate"} which caused the follow error when you try make an order {"code":500,"result":"Error: Error while adding shipping address"}
we use tablerate shipping method for our project and don't have any issues with it, so it seems like of the issue of your backend configurations

@pkarw
Copy link
Collaborator

pkarw commented Jun 11, 2019

Not sure why we had this error in Magento - but for Flatrate/Fixed it worrks just fine :/

@pkarw pkarw closed this as completed Jun 11, 2019
@pkarw
Copy link
Collaborator

pkarw commented Jun 11, 2019

But probably: just probably - no rates have been imported for specific coutnry

@patzick patzick added the QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. label Jun 11, 2019
@alinadivante
Copy link
Collaborator Author

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

@alinadivante alinadivante added QA approved after merge Testers will add this label after positive check on merged changes and removed QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. labels Jun 12, 2019
@GabiDivante
Copy link
Collaborator

GabiDivante commented Jun 18, 2019

@pkarw there is still a problem (on next) - sometimes when I'm changing the country, the shipping method is not automatically chosen
Peek 2019-06-18 12-23

I can propose the solution implemented by @aniamusial in our other project - button "continue to payment " is not active until any shopping method is chosen, what do you think?

@GabiDivante GabiDivante reopened this Jun 18, 2019
@GabiDivante GabiDivante added QA rejected Testers will add this label when something is still wrong and removed QA approved after merge Testers will add this label after positive check on merged changes labels Jun 18, 2019
@aniamusial aniamusial self-assigned this Jun 18, 2019
@pkarw
Copy link
Collaborator

pkarw commented Jun 18, 2019

Fixed

@pkarw pkarw closed this as completed Jun 18, 2019
pkarw added a commit that referenced this issue Jun 18, 2019
@pkarw
Copy link
Collaborator

pkarw commented Jun 18, 2019

This is a good idea. We should apply both: #3073 and #3071

patzick pushed a commit to patzick/vue-storefront that referenced this issue Jun 19, 2019
@patzick
Copy link
Collaborator

patzick commented Jun 19, 2019

@pkarw please do not close issues with not merged PRs

@patzick patzick added QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. and removed QA rejected Testers will add this label when something is still wrong labels Jun 19, 2019
@GabiDivante GabiDivante added QA approved after merge Testers will add this label after positive check on merged changes and removed QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. labels Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Medium complexity bug Bug reports QA approved after merge Testers will add this label after positive check on merged changes vs-hackathon Tasks for the Hackathon
Projects
None yet
Development

No branches or pull requests

7 participants