lasha Posted April 4, 2019 Share Posted April 4, 2019 Hello i`m using client model " use WHMCS\User\Client " and need to save some custom fields . i know i can write query for it and so save it but why go long way if is shortcut . :) 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted April 4, 2019 Share Posted April 4, 2019 Get the customfield from the $client->customFieldValues array -- will have to loop through and match fields to your values. Once you the field, do $field->value = $item; and then $field->save(); . 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.