Sign up address, display country field only

Discussion in 'Templates customization' started by dereck_j2, Aug 9, 2011.

  1. dereck_j2

    dereck_j2 Member

    Joined:
    Aug 22, 2006
    Messages:
    42
    Hi,

    Is it possible to dis[lay only the "County" address field on the signup form.

    Any help would be great.

    Regards,

    Dereck
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Sure, possible.
    Enable address info in aMember CP -> Setup -> Global
    Then edit signup template and remove other address fileds.
    Also change vsf_address function in /amember/member.inc.php and remove this:
    PHP:
        if (is_field_can_be_changed('street'$is_signup) && $vars['street'] == '')
            
    $err[] = _SIGNUP_ENTER_STREET;
        if (
    is_field_can_be_changed('city'$is_signup) && $vars['city'] == '')
            
    $err[] = _SIGNUP_ENTER_CITY;
        if (
    is_field_can_be_changed('state'$is_signup) && ($vars['country'] == 'US' || $vars['country'] == 'CA') && ($vars['state'] == ''))
            
    $err[] = _SIGNUP_ENTER_STATE;
        if (
    is_field_can_be_changed('zip'$is_signup) && $vars['zip'] == '')
            
    $err[] = _SIGNUP_ENTER_ZIP;

Share This Page