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

Cart custom shipping methods not updating when address changed #4679

Closed
jim5359 opened this issue May 24, 2016 · 7 comments
Closed

Cart custom shipping methods not updating when address changed #4679

jim5359 opened this issue May 24, 2016 · 7 comments
Assignees
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@jim5359
Copy link

jim5359 commented May 24, 2016

Steps to reproduce

  1. Install Magento from develop branch.
  2. Enable custom shipping methods added through extension.
  3. Disable all built in shipping methods (i.e. UPS).
  4. Add an item to your cart from the store front end.
  5. Go to checkout.
  6. Shipping methods show "Sorry, no quotes are available for this order at this time"
  7. Enter an address.

Expected result

  1. The shipping methods should update and list rates for the custom shipping methods.

Actual result

  1. Shipping methods still shows "Sorry, no quotes are available for this order at this time"
  2. This was fixed for built in methods such as UPS, but does not work for custom shipping methods. (See MAGETWO-50504)
@choukalos
Copy link

Internal ticket - MAGETWO-53468 ; CC'ing @ilol so he's aware of issue; marked for patching back to 2.0.x

@choukalos choukalos added the CS label May 25, 2016
@ishakhsuvarov ishakhsuvarov added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Progress: needs update and removed bug report labels May 26, 2016
@ishakhsuvarov
Copy link
Contributor

@jim5359 We have tried to reproduce the case described with the latest code from the develop branch and did not find any errors.
Please check, that checkout shipping rate validators are implemented correctly in your extension (it is the mechanism responsible for reloading the list of available shipping methods on change of the specific address fields). There is a tutorial on this topic in the Magento 2 Developer Documentation.

@Kasoi-free
Copy link

Kasoi-free commented May 31, 2016

I am experiencing the same with built-in Table Rates method.

The trick is to setup your shipping methods in such way that when you try to get shipping for default Country (which is US in my case) there shouldn't be any available shipping methods. After that if you try to change shipping address to the one you have shipping rate for "Estimate Shipping and Tax" won't update. Same thing happens on Checkout page also.

This is how it can be set up:

  1. Disable all Shipping Methods except Table Rates
  2. Import rate only for non-default country in Table Rates (example for Afghanistan: http://prntscr.com/balo6t)
  3. Check Estimate Shipping and Tax, there will be no shipping methods because default country does not match any rate in Table Rates, but if you change Country to the correct one shipping methods won't update: http://prntscr.com/balqlz

I am sure that rates I'm importing are correct, because when I reload Cart\Checkout page I see the rates: http://prntscr.com/balpph

Hope this will help to get to the bottom of this.

P.S. Tried this on 2.0.6 release, not sure if anything related to cart\checkout update was changed in development branch.

@jim5359
Copy link
Author

jim5359 commented May 31, 2016

I've confirmed that adding the shipping rate validators to my custom shipping rate extension solved the problem. Thanks!

@asemenenko
Copy link

Nice to hear that our documentation helped, @jim5359 !

@ishakhsuvarov
Copy link
Contributor

@Kasoi-free Thank you for reporting. We have created an internal ticket MAGETWO-53785 to fix the issue.

@KrystynaKabannyk
Copy link

Hello @jim5359, this issue has been fixed in Magento EE 2.1 RC2, that's why I'm closing it. Thank you for reporting the issue! If you have any questions or additional information you are welcome to reopen it or create another one.

magento-cicd2 pushed a commit that referenced this issue Oct 8, 2019
[Trigger] MC-19614: [Packaging] MFTF tests generation failed on 2.2.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

6 participants