It would be great to be able to move the account password pane out of the default checkout page and into custom checkout pages defined via hook_commerce_checkout_page_info. Thanks for the great module!

Comments

arek611 created an issue. See original summary.

cravecode’s picture

@arek611, currently this module alters the commerce_checkout_form_checkout form and adds the password fields to the Account Information fieldset, under the email field. Because this is tied to a specific form_id, I'm not sure how to accommodate your feature request without an example.

It's seems like it should be doable, do you have an example custom checkout page I can use? It would make the changes easier on my part.

cravecode’s picture

Status: Active » Postponed (maintainer needs more info)
arek611’s picture

@cravecode, here is my use case:

I created a custom Membership Application checkout page in a custom module:

function mymodule_commerce_checkout_page_info() {
  $pages['apply'] = array(
    'name' => t('Apply'),
    'title' => t('Membership Application'),
    'status_cart' => TRUE,
    'weight' => -15,
  );

  return $pages;
}

This page contains a "membership application" customer profile type pane and sits in front of the checkout page as I would like users to apply for an account. I also moved the Account Information pane to this page as a user receives a temporary applicant account while the membership application is being reviewed and keeps their cart contents. Ideally, I would like for users to set their own password at this point as well. Thanks for taking a look!

  • cravecode committed 5d01127 on 7.x-1.x
    Matching form on pattern instead of specific id
    
    Checking that the...
cravecode’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Needs review
cravecode’s picture

Issue summary: View changes

@arek611, thanks for the example! Grab the latest dev version and give it a try. The password box should appear wherever the "Account information" pane is added.

arek611’s picture

@cravecode, the update works one end. Password field now appears wherever you have the account information pane added. Thanks!

cravecode’s picture

Status: Needs review » Fixed

@arek611, great!

cravecode’s picture

Status: Fixed » Closed (fixed)