+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Only one account type, Hide Buyer!

  1. #1
    Senior Member
    Join Date
    Nov 2012
    Posts
    126

    Question Only one account type, Hide Buyer!

    Hello dear,

    I need to disable "Buyer" account types. I want just a "Seller" account type.

    When I do inactive Buyer account in Admin panel -> Account Types, but in registration still show Account Type, and if you continue process registration gives the following error, (Please choose an account type.)

    So, what I should do more to hide select account type, and automatic everyone register on it, be a Seller?
    Attached Images Attached Images

  2. #2
    Hello Oslo,

    You should go to ftp://includes>>classes>>rlaccount.class.php find method: 'getAccountTypes'

    and remove code from this method:

    PHP Code:
    Only registered members can view the code
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    126
    I removed it, still gives the same error (Please choose an account type.).

  4. #4
    Would you please send me PM with ftp access details I will fix it asap!!!
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    [QUOTE=Viktor;3684]Hello Oslo,

    You should go to ftp://includes>>classes>>rlaccount.class.php find method: 'getAccountTypes'

    and remove code from this method:

    PHP Code:
    Only registered members can view the code
    /QUOTE]

    It;s correct fix but Oslo remove next line: return $types;
    I have returned and fix works good.
    Viktor,
    Flynax technical department,
    Best wishes.

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    126
    Thanks Viktor,

    So you mean, remove line 145: return $type;
    Or leave it?

  7. #7
    nononno you shouldn't delete it. I returned it and it woks good now. Leave it
    Viktor,
    Flynax technical department,
    Best wishes.

  8. #8
    Junior Member
    Join Date
    Nov 2012
    Posts
    15
    Hi there, We have commented out the code

    /* REMOVES BUYER ACCOUNT

    foreach ($types as $type)
    {
    $tmp_types[$type['ID']] = $type;
    }
    $types = $tmp_types;
    unset($tmp_types);

    return $types;*/
    but when we register it still asks to select an account?

  9. #9
    Hello All,

    Why you deleted :
    PHP Code:
    Only registered members can view the code
    too?

    I said in previous answers: you should remove only :

    PHP Code:
    Only registered members can view the code
    and leave return $types;
    Viktor,
    Flynax technical department,
    Best wishes.

  10. #10
    Hello all,

    Excuse me for previous fix but it's not correct because I found new error if you delete this code:

    PHP Code:
    Only registered members can view the code
    in ftp://includes>>classes>>rlaccount.class.php find method: 'getAccountTypes'

    that's why you should return it.


    New fix for that:

    at first return old code.
    then got o ftp://templates>>your_template>>tpl>>controllers>>regist ration.tpl

    find code:

    Code:
    Only registered members can view the code.
    and replace to:

    Code:
    Only registered members can view the code.
    then in this file find code:

    Code:
    Only registered members can view the code.
    and replace to:

    Code:
    Only registered members can view the code.
    Last edited by Viktor; January 25, 2013 at 04:09 AM.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread