vue-storefront: Incorrect working of checkboxes in checkout
Current behavior
After marking the “ship to my default address” or “copy address data from shipping” checkbox, the form is not filled in with data, whereas after unmarking checkboxes - forms are filled in.

Expected behavior
After selecting the “ship to my default address” or “copy address data from shipping” checkbox, the appropriate form is filled with data.
Steps to reproduce the issue
- Go to https://test.storefrontcloud.io
- Add any product to the cart
- Go to checkout
- Login to your account (which has memorized shipping details)
- Continue to shipping
- Mark checkbox “ship to my default address”
- Unmark checkbox “ship to my default address”
- Continue to payment
- Mark chceckbox “copy address data from shipping”
- Unmark checkbox “copy address data from shipping”
Can you handle fixing this bug by yourself?
- 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
developbranch and create Pull Request2. Feature / Improvementback todevelop. - This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from
releasebranch and create Pull Request3. Stabilisation fixback torelease. - 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
hotfixormasterbranch and create Pull Request4. Hotfixback tohotfix.
Environment details
- Browser: Chrome 73
- OS: Windows 10
Additional information
This problem only appears on the environment https://test.storefrontcloud.io, does not appear on next and demo.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18
Commits related to this issue
- Fix handling same address checkbox in checkout - closes #2730 — committed to lukeromanowicz/vue-storefront by lukeromanowicz 5 years ago
- Merge pull request #2742 from lukeromanowicz/bugfix/copy-billing-address-to-shipping Fix handling same address checkbox in checkout - closes #2730 — committed to vuestorefront/vue-storefront by pkarw 5 years ago
@dimasch yeah, now it works 😃
@dimasch I found one bug on your branch. Please see my video (it is about validation of Company name field)
@alinadivante Thanks. I will go to fix.
@dimasch we need to improve this, because now, if I mark “Copy address data from shipping” it is correctly filled, but if i change my mind and I want to choose “Use my billing data”, then form is cleared. I have to unmark selected checkbox and mark it again.