diff --git a/config/sync/commerce_checkout.commerce_checkout_flow.materio_checkout_flow.yml b/config/sync/commerce_checkout.commerce_checkout_flow.materio_checkout_flow.yml index 0032c81..defa59c 100644 --- a/config/sync/commerce_checkout.commerce_checkout_flow.materio_checkout_flow.yml +++ b/config/sync/commerce_checkout.commerce_checkout_flow.materio_checkout_flow.yml @@ -13,40 +13,40 @@ configuration: display_checkout_progress: true panes: login: - allow_guest_checkout: false + allow_guest_checkout: true allow_registration: true step: login - weight: 10 + weight: 0 review: step: review - weight: 10 + weight: 4 completion_message: step: complete - weight: 10 + weight: 6 completion_register: step: complete - weight: 10 + weight: 7 order_summary: view: '' step: _sidebar - weight: 10 + weight: 8 contact_information: double_entry: false step: order_information - weight: 10 + weight: 2 payment_process: capture: true step: payment - weight: 10 + weight: 5 payment_information: step: order_information - weight: 10 + weight: 3 coupon_redemption: allow_multiple: false step: _sidebar - weight: 10 + weight: 9 email_registration_login: allow_guest_checkout: true - allow_registration: false - step: _disabled - weight: 10 + allow_registration: true + step: login + weight: 1 diff --git a/config/sync/rest.resource.user_registration.yml b/config/sync/rest.resource.user_registration.yml new file mode 100644 index 0000000..3886137 --- /dev/null +++ b/config/sync/rest.resource.user_registration.yml @@ -0,0 +1,17 @@ +uuid: 310d8801-eed9-4656-b7d4-26e73a4feb05 +langcode: en +status: true +dependencies: + module: + - serialization + - user +id: user_registration +plugin_id: user_registration +granularity: resource +configuration: + methods: + - POST + formats: + - json + authentication: + - cookie diff --git a/config/sync/user.role.anonymous.yml b/config/sync/user.role.anonymous.yml index 4a169b6..a81ea9b 100644 --- a/config/sync/user.role.anonymous.yml +++ b/config/sync/user.role.anonymous.yml @@ -22,6 +22,7 @@ permissions: - 'create workflow workflow_transition' - 'issue subrequests' - 'restful get config_rest_resource' + - 'restful post user_registration' - 'subscribe to newsletters' - 'use text format wysiwyg' - 'view commerce_product' diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml index c01234b..ace9b91 100644 --- a/config/sync/user.role.authenticated.yml +++ b/config/sync/user.role.authenticated.yml @@ -31,6 +31,7 @@ permissions: - 'materio_jsonapi ownroles' - 'opt-in or out of matomo tracking' - 'restful get config_rest_resource' + - 'restful post user_registration' - 'subscribe to newsletters' - 'use chutier' - 'use text format wysiwyg'