Needs review
Project:
Commerce Core
Version:
3.x-dev
Component:
Checkout
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2026 at 23:03 UTC
Updated:
30 Jul 2026 at 19:38 UTC
Jump to comment: Most recent
Comments
Comment #4
velmir_taky commentedAdded the signal in all three spots. Since it's the same check and message each time, I pulled it into a
RegistrationConflictWarningTrait: it readsuser.settingsregister and, when that's set to administrators-only, returns amessages--warningelement linking to the account settings form.- Checkout flow config: shown next to "Create a new account for an anonymous order", with
#statesso it only appears while that checkbox is on.- Login pane: same, tied to "Allow registration".
- Guest registration after checkout pane: shown in its settings form (the pane being enabled is the toggle here).
config.factoryis injected viacreate()(property injection, no constructor change, so no BC break; PluginBase'sDependencySerializationTraithandles the service on serialize).Covered by
CheckoutFlowTest::testRegistrationConflictWarning— no warning while visitors can register, warning on all three once registration is admins-only.The
phpunitfailure isProductLayoutBuilderIntegrationTest::testProductWithoutVariationsDoesNotCrash(JSWebAssert:117, line 235 — a Views-wizard AJAX wait), unrelated to this MR:commerce_checkoutisn't even installed in that test, and the newtestRegistrationConflictWarningplus all checkout tests pass. Same failure is red on the pristine3.xscheduled pipeline (#905996) on core 11.4.4, so it's a pre-existing core-compat issue in that test, not something this change introduced.Comment #5
velmir_taky commented