title | issue |
---|---|
Fix salutation auto set default when create customer in admin |
NEXT-25264 |
- Added computed
defaultSalutationId
,salutationCriteria
,salutationRepository
in to get default salutationsw-customer-create
component.sw-customer-detail
component.sw-order-new-customer-modal
component.sw-customer-detail-addresses
component.
- Changed
createdComponent
method in to set default salutation for customersw-customer-create
component.sw-customer-detail
component.sw-order-new-customer-modal
component.
- Changed
Shopware\Core\Checkout\Customer\SalesChannel\ChangeCustomerProfileRoute::change
to set default tosalutationId
- Changed
Shopware\Core\Checkout\Customer\SalesChannel\RegisterRoute::register
to set default tosalutationId
- Changed
Shopware\Core\Checkout\Customer\SalesChannel\UpsertAddressRoute::upsert
to set default tosalutationId
- Changed
Shopware\Core\Checkout\Order\Aggregate\OrderAddress\OrderAddressDefinition
to remove flag required with salutationId. - Added
Shopware\Core\System\Salutation\SalutationSorter
to sort salutations - Added subscribers to set salutation with default not specified
Shopware\Core\Checkout\Order\Subscriber\OrderSalutationSubscriber
Shopware\Core\Checkout\Customer\Subscriber\CustomerSalutationSubscriber
Shopware\Core\Content\Newsletter\Subscriber\NewsletterRecipientSalutationSubscriber
- Changed function
register
inShopware\Storefront\Controller\RegisterController
to removedefinition
salutationId
. - Changed
Shopware\Storefront\Page\Account\Login\AccountLoginPageLoader::load
to sort salutations bysalutation_key
not specified. - Changed
Shopware\Storefront\Page\Account\Profile\AccountProfilePageLoader::load
to sort salutations bysalutation_key
not specified. - Changed
Shopware\Storefront\Page\Address\Detail\AddressDetailPageLoader::load
to sort salutations bysalutation_key
not specified. - Changed
storefront/component/address/address-personal.html.twig
to remove attributerequired
withsalutationId
.