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

Fix checkout with addressAccessType COMPANY_ONLY #1526

Merged
merged 2 commits into from
Dec 16, 2020

Conversation

geraldaistleitner
Copy link
Contributor

When a customer only has access to company addresses, checkout is not possible as those addresses not show up.
This can be fixed by using the already implemented CustomerAddressAllocator also for FormType AddressChoiceType

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets  

This pull request fixes a problem when a customer wants to do a checkout but only has access to the company addresses. The addressAccessType was not considered till now in CoreShop\Bundle\CoreBundle\Form\Type\AddressChoiceType.

@geraldaistleitner
Copy link
Contributor Author

Would be great if we could merge this soon 👍

@dpfaffenbauer
Copy link
Member

had to change your PR to use proper DI

@dpfaffenbauer
Copy link
Member

@solverat can we have your opinion please?

@solverat
Copy link
Contributor

@geraldaistleitner sorry for my delayed response. I just checkout out your PR and of course you're right. We need to determinate the right address context of the given customer first before filtering them!

Thanks for your investigation!

@dpfaffenbauer dpfaffenbauer merged commit eaf03a2 into coreshop:2.2 Dec 16, 2020
@dpfaffenbauer
Copy link
Member

thanks

@dpfaffenbauer dpfaffenbauer modified the milestones: 2.2.6, 2.2.7 Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants