when signing up other users, this module shows profile fields but does not show address pane from Ubercart Addresses module(http://drupal.org/project/uc_addresses)

few fields in the address pane are required fields like street line 1, city......
as I couldn't enter this information I am not able to complete checkout.

Steps to reproduce:
1)as anonymous user add quantity 2 of an event to cart
2)create new account http://example.com/user/register on this form i see address pane as well as profile fields
3)next step http://example.com/uc_signup/attendees/emails Email Address of Attendee #2:
4)on the next page I am asked to enter information for Attendee #2 I see profile fields but not address pane from Ubercart Addresses module
5)At checkout chose other as payment method.
6)click "submit order" on http://example.com/cart/checkout/review

drupal error message throws
First name field is required.
Last name field is required.
Street address 1 field is required.
City field is required.
State/Province field is required.
Postal code field is required.
There was an error saving attendee contact information. Please verify that you have entered all required fields at the Attendee profile contact information form

Comments

TechNikh’s picture

The difference I found in uc_signup old version and new version is,

old version validates for drupal_execute('uc_signup_profile_form', $form_state);
new version looks for drupal_execute('user_register', $form_state); which fails because of address module

probably including address pane in the form(uc_signup_profile_form) will be ideal.

As a temporary fix for my site I will change that line back to drupal_execute('uc_signup_profile_form', $form_state);
FYI http://drupal.org/node/547242

TechNikh’s picture

I got it working.
I had to add the below code in function uc_signup_profile_form($account = array(), $category_map = FALSE) {

$form2 = uc_addresses_pane_address('new', NULL, $edit);
$form2 = array($form2['contents']); 	// Modify to what we need
$form2[0]['#title'] = t('Address'); 	// Rename the fieldset
$form += $form2;
if ($category_map) {
	return $form;
}
MegaChriz’s picture

Marked #1011362: compatibility with uc_addresses module as a duplicate of this one.