+ Reply to Thread
Results 1 to 8 of 8

Thread: not add a field with the description in the account type

  1. #1
    Member
    Join Date
    Dec 2015
    Location
    USA
    Posts
    82

    not add a field with the description in the account type

    can not add a field with the description in the account type

    for example - about company
    I can not add this field to company account type, because we can't see it there

  2. #2
    Hello Vitalii,

    After added new field you should build account types where you want to see this field. The same as categories building fields.
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Member
    Join Date
    Dec 2015
    Location
    USA
    Posts
    82
    Yes i know this! BUT
    this field is not visible there

    For example in your demo:
    In account type Buyer or Company no field About me

  4. #4
    Hello Vitalii,


    You need open file /admin/controllers/account_types.inc.php and check row ~874
    It must have following code and change it if your file have another changes.

    Attached Images Attached Images
    Thank you, Curtis.
    @Flynax Company

  5. #5
    Member
    Join Date
    Dec 2015
    Location
    USA
    Posts
    82
    look like i dont have it
    Attached Images Attached Images

  6. #6
    Hi Vitali,


    OK. I see that you see in another place (it's related with copyright text in top). In your screen you can see the code foreach ($relations as $rKey =>$rValue) ...
    You need to scroll page after it and check necessesary code after this foreach, check my previous post.
    Thank you, Curtis.
    @Flynax Company

  7. #7
    Member
    Join Date
    Dec 2015
    Location
    USA
    Posts
    82
    i have this:

    /* get form fields for current type */
    $relations = $rlBuilder -> getFormRelations( $type_info['ID'], 'account_fields' );
    $rlSmarty -> assign_by_ref( 'relations', $relations );

    foreach ( $relations as $rKey => $rValue )
    {
    $no_groups[] = $relations[$rKey]['Key'];

    $f_fields = $relations[$rKey]['Fields'];

    if ( $relations[$rKey]['Group_ID'] )
    {
    foreach ( $f_fields as $fKey => $fValue )
    {
    $no_fields[] = $f_fields[$fKey]['Key'];
    }
    }
    else
    {
    $no_fields[] = $relations[$rKey]['Fields']['Key'];
    }
    }

    $exclude_types = "WHERE `Status` <> 'trash' AND `Type` NOT IN ('textarea', 'file', 'image', 'accept') ";
    $fields = $rlDb->fetch(array('ID', 'Key', 'Type', 'Status'), null, $exclude_types, null, 'account_fields');
    $fields = $rlLang->replaceLangKeys($fields, 'account_fields', array('name'), RL_LANG_CODE, 'admin');

    // hide already using fields
    if ( !empty( $no_fields ) )
    {
    foreach ($fields as $fKey => $fVal)
    {
    if ( false !== array_search( $fields[$fKey]['Key'], $no_fields ) )
    {
    $fields[$fKey]['hidden'] = true;
    }
    }
    }

    $rlSmarty -> assign_by_ref( 'fields', $fields );
    }
    }

    $rlHook -> load('apPhpAccountTypesBottom');
    }

  8. #8
    Hello Vitalii,

    OK, please create a ticket with your problem and our staff will check it.
    Thank you, Curtis.
    @Flynax Company

+ Reply to Thread