Closed PascalBrouwers closed 7 years ago
I added a fix. See my Pull Request.
@veloraven can you assign this one to somebody? Not being able to checkout seems like a serious issue.
Thank you for reporting! Our internal issue is MAGETWO-59362.
@SerhiyShkolyarenko Can you run the CI on my pull request again?
@PascalBrouwers I'm not autorized to rerun builds. I rechecked the issue on the latest develop branch and didn't reproduce it. Is it still reproducible for you on pure mainline/develop?
You seem to have fixed it on the review step so the customer doesn't get stuck, but the problem is still there in the first step. I made a video so you can see the problem better: http://cloud.h-o.nl/hiPS
Also note the whole problem with adding a new address. It should be empty but because of this bug it loads old data from your local storage of the browser:
Ps. I ran this with the latest develop branch at changeset: d8eac0001e95dc12247290ce75a3b6a9fe6b4725
@PascalBrouwers could you please run "window.localStorage.clear()" in browser console, clear all cookies for the site and clear all browser cache, remove all files by mask pub/static/*
, press Ctrl-F5, then rerun you steps? Do you have the same result?
@SerhiyShkolyarenko I did all that. Problem is still there. The fix is quite simple, if you look at my PR.
@PascalBrouwers prefilled form is not reproducible for me too.
@SerhiyShkolyarenko how are you trying to reproduce it? Maybe it'll help if you use a db dump from me?
Let's go through all steps:
git pull
sudo rm -rf var/*
sudo bin/magento setup:uninstall
sudo rm -rf var/* pub/static/*
sudo chmod -R 777 app/etc
sudo bin/magento indexer:reindex
and sudo chmod -R 777 var/*
@PascalBrouwers I think DB dump will be helpful, if you have another result for these steps.
Here is the dump. I hope you can reproduce it with this. magento2github.sql.gz
@PascalBrouwers I applied your DB, repeated steps 10-15 from my previous post and everything worked properly: shipping address stayed selected and new address form was empty except the name fields and country.
I'll try following your steps again. If I get no problem at that point there is still an issue with users who have 'old cache' then.
We have exact the same problem as @PascalBrouwers described. We're on version 2.1.2.
@PieterCappelle can you describe detailed steps from the clean installation? Is it reproducible for develop branch too?
I can reproduce. 2.1.2 . Production, one of our customers have the same problem. We lost a sale on this just now. This is urgent! When shipping methods gets refreshed, it clears the first shipping address as the selected shipping address - which makes step 2 of checkout not completed.
@SerhiyShkolyarenko still not convinced? 3 people are able to reproduce this severe issue.
@PascalBrouwers @PieterCappelle @peec of couse I beleive you experienced the issue and I appreciate much you report it and help us to improve Magento. To make sure the issue is fixed we need repeatable steps to reproduce. Let's find them together. This time I tried v2.1.2 in default and production mode and checkout worked fine. @peec and @PieterCappelle have you tried reproducing on latest develop branch?
@peec and @PieterCappelle in case you reproduce the issue on develop branch, could you please check the fix https://github.com/magento/magento2/pull/6870 from @PascalBrouwers? Does it help you?
@PascalBrouwers @PieterCappelle @peec which versions of php and mysql do you use?
PHP 7.0.11 MySQL 5.7.11
I also had a thought. Maybe it's the browser. I am using Chrome 53.0.2785, what are you using @SerhiyShkolyarenko ?
@SerhiyShkolyarenko I use php 7.0.11. (specifcally this docker image).
My full stack: Nginx, Varnish php 7 with php-fpm mysql 5.6
@PascalBrouwers i used Firefox 49 for checking this issue.
Ah, could you try it with Chrome? I'll see if I can check my Magento 2.1.2 with Firefox then.
Ok... the same thing is happening in Firefox. Now with screenshots to show steps:
Create account
Add to cart
From here I went to Cart and Checkout and saw I forgot to add an address. Went back to edit my account.
Edit account
Add address
Shopping cart
Checkout step1
Checkout step2
Notice the old data being used in step 2: Unites States as the country while I only have an address with The Netherlands as the country.
If I would create and account and directly go to my account and add an address I would end up having a 'half' address here and cannot continue with the order.
@SerhiyShkolyarenko please see if you can reproduce using these steps. So many things are going wrong because old data from storage is being used.
Bingo! I reproduced that! (dancing) @PascalBrouwers between steps 2 and 3 of your initial message was absent a line
Estimate shipping to some other address
Issue doesn't depend on browser. Reproduced both for FF and Chrome. Internal issue MAGETWO-60076. Thank you!
Yay! Glad you could reproduce it. You can use my fix in https://github.com/magento/magento2/pull/6870 for this issue.
@PascalBrouwers thanks. We changed this behavior in scope of MAGETWO-56073 and the issue is fixed too. Please, wait for delivery of MAGETWO-56073.
Cool, does it also solve the issue with adding a new address during checkout?
No, it doesn't. Created a separate issue for prefilled address form: MAGETWO-60110.
We are closing the issue because MAGETWO-56073 and MAGETWO-60110 are delivered to the develop branch. Thanks for cooperation!
Internal ticket to track issue progress: MAGETWO-66435
@magento-engcom-team What are the commits to this fix on 2.1?
Preconditions
Steps to reproduce
Expected result
Actual result