Customizing the Guest Registration After Checkout

Created on 6 August 2024, 4 months ago
Updated 21 August 2024, 3 months ago

Hi all! I need some guidance on customizing the Guest Registration After Checkout Pane. By default, this pane only displays the username field. However, I need to include an email address field as well. Could anyone advise on how to add this field?

Additionally, I am interested in theming this specific pane. Should I create a new template file in my subtheme for this purpose? If so, what would be the correct template file name to create for this customization?

Any help or pointers to relevant documentation would be greatly appreciated!

💬 Support request
Status

Fixed

Version

2.39

Component

Developer experience

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @eit2103
  • Status changed to Fixed 4 months ago
  • 🇮🇱Israel jsacksick

    The registration form on the checkout completion uses the "register" user form mode.
    It can be customized from admin/config/people/accounts/form-display (you have a checkbox a the bottom that allows customizing the register form mode specifically if needed).

    As for theming the user registration form, this is more like a general Drupal core support request. In general support requests aren't answered from this queue:

    With the abundance of support available in Drupal Answers, the Drupal focused Stack Exchange site, we are no longer answering support requests in the issue queue.

    Support requests opened here will be closed (won't fix), so please search for existing answers or post new questions at:

    https://drupal.stackexchange.com (using the drupal-commerce tag)

  • Hi @jsacksick

    My default registration form includes the email address field (as shown in the attached screenshot). However, I don't see this field in the guest registration form after checkout.

    Upon examining the checkout module code, I noticed that commerce_checkout_completion_register is used instead of user_register_form. What am I missing here?

  • 🇮🇱Israel jsacksick

    This is what I see after customizing my register form mode... I added a random text field and it shows up...

  • You're right it did add that new field when I added there. But again my main problem is my the default registration form there is an email address field and I dont see that field.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024