Commercial: customer type is only determined on active B2B features, not based on the actual account type
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 1.2k
- Avg merge
- 3d 55m
- Merged PRs (30d)
- 436
Description
### Shopware Version
6.7.8.2 w/ SwagCommercial 7.8.2
### Affected area / extension
Platform(Default)
### Actual behaviour
The account type of a customer is displayed as B2C even when the account has been created as a business account and the account_type in the customer table is set to 'business'. It seems that the account type is solely determined based on active Commercial B2B features.
Currently:
- B2B customer has no B2B-Features active -> Shows up as B2C account
- B2C customer has B2B-Features active -> Shows up as B2B account
Seems to be related to https://github.com/shopware/shopware/issues/13953
### Expected behaviour
B2B Customers without active B2B features still show up as business customers
### How to reproduce
- In a shop with Commercial, create a business account, but do not activate any B2B features
- Go to the overview and check the account type, it will show as B2C
Contributor guide
Research direction
Reproduce the account-type display in the overview using a business account with no active B2B features, then trace how the customer table's account_type value is used. Compare the behavior with the related issue #13953. Done means business accounts still display as B2B customers regardless of active Commercial B2B features.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100