- Issue created by @morbus iff
- π³π¬Nigeria chike Nigeria
I too am wondering what is 'optional' about an account that will surely be created without the user doing anything about it.
I have been searching through the variables on the form and don't seem to see a way to override the text. Is there a way please? I want to set "Proceed to checkout, an account will be created for you at the end. You will be notified via email about your new account."
- π³π¬Nigeria chike Nigeria
For anyone else looking to override this text, you can put this on a custom module or
.theme
file,/** * Implements hook_form_alter(). */ function custommodule_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { //Override 'Proceed as guest' text $form['login']['guest']['text']['#markup'] = t('<p>Proceed to checkout, an account will be created for you at the end. You will be notified via email about your new account.</p><p>You can also proceed as guest if you have an existing account and your new order will be added to your account.</p>'); }
- πΊπΈUnited States rszrama
Yeah, the text could be made more dynamic. By default, without auto user creation, you'd use the "pick a password" style form to create an account upon checkout completion, so it makes sense for the default configuration.