Reseller create client

Discussion in 'Developers' Forum' started by mccharlet, Jan 1, 2013.

  1. mccharlet

    mccharlet HowtoForge Supporter

  2. till

    till Super Moderator

    I've closed the bugtracker request as its a duplicate to an existing request and has already been fixed in 3.0.5 RC1.
     
  3. mccharlet

    mccharlet HowtoForge Supporter

    Thanks,

    I have not find the other ticket

    Best regards
     
  4. mccharlet

    mccharlet HowtoForge Supporter

    Hi,



    I have send a request fo reopen the ticket 2314

    I have create a user. In the reseller, the user display. But when i had a mail domain i have a error. I have checked and in the database, the field parent_id is false (always 1). If i change to the reseller id, it's OK

    Best regards
     
  5. till

    till Super Moderator

    When you create a client which is assigned to a reseller, you have to set the value of the field parent_id to the ID of the reseller in the params array.
     
  6. mccharlet

    mccharlet HowtoForge Supporter

    Yes, i have set the parent_id value. But in the database the value is 1
     
  7. till

    till Super Moderator

    It should work when you set the ID correctly in these 2 places. Tested it before the RC got released and I was able to create clients with correct ID's for resellers.

    $reseller_id = 2;
    $params(
    .....
    'parent_client_id' => 2,
    .....
    );

    $affected_rows = $client->client_add($session_id, $reseller_id, $params);
     
  8. mccharlet

    mccharlet HowtoForge Supporter

    Hi,

    Ok, the $reseller_id variable is not present in the exemple (version 3.0.4.6)

    many thanks
     

Share This Page