Tags/topics: 
5
Answers
Vote up!
0
Vote down!

How to modify the user login and registration page?

Hi all,

I've struggled with Kickstart 2 for a couple of days to modifying the Login and Registration pages with my design. Please any one give steps to customizing the login and registration forms

Thanks
jp

Asked by: kjpmca07
on August 8, 2013

5 Answers

Vote up!
1
Vote down!

Ok, this one was a bit more involved because it uses code :) Short answer: you need to use hook_form_alter() to take control over that particular form. Fear not! I will show you how to find these things and edit them quickly :D

Longer answer: the trick is to know where to find these things, so I spent a few minutes explaining my process for finding what I want to alter.

So that's the video of how I made it happen. Below is the steps I took to alter the user_login form for Commerce Kickstart 2.

STEP BY STEP

1) Find the form id ... I did this by inspecting and looking at the "id" ... for us, it was user_login

2) Search the text of the Drupal site for mention of this form_id

3) Copy function that modifies this form

4) Paste function inside the template.php for your theme (or your module_name.module file for a module)

5) Rename the first part of the function

6) Change html to your heart's content.

Josh

Josh Miller
Answer by: Josh Miller
Posted: Aug 8, 2013

Comments

thrilled to find this video tutorial, thks for making it.
want to modify the Register form
eg just A valid e-mail address and eliminate the rest of the sentence.
No luck, search into profiles/Commerce_kickstart/commerce_kickstart_user.
Not in there. Some hint pls. Also, with 2 languages, where could the translated one be found?
Hymmm.
Hope u do more of these video ,

- newbieuser on May 28, 2014
Vote up!
0
Vote down!

wow...great video tutorial....thanks alot...

Answer by: kjpmca07
Posted: Aug 9, 2013

Comments

Hi, thanks for the video. How do I style new profile fields so that they display in the same column as username, password etc? At the moment they display in a separate column to the right.

- baggie on November 26, 2013
Vote up!
0
Vote down!

Not work for my subtheme (AT_subtheme)

Answer by: denis605
Posted: May 11, 2014
Vote up!
0
Vote down!

Hi,
I'm trying to customize the login form when using the checkout redirect as anonymous user.
I've discovered that I do able to change the login form as described in this post, but I cannot replace or move the continue without login button to another place other than the $form['actions'] place holder bellow the login button.

Is there a way to move it bellow the ''Create an account' link on the login page?

Thanks.

Answer by: Arik Yudin
Posted: Aug 17, 2015