Stathinho Posted October 16, 2015 Share Posted October 16, 2015 Hello guys! I want some help here. I am trying to build a hook, that will check a client's custom field on the order. The custom field will be from a drop down, which the user can select one of the values. It's like that: if (custom.client.field[6] == 'some text here'){ $aff = '40'; //just do not think of the number here } if (isset($aff)){ add the affiliate to the order } So, basically, I would like the hook, to give to every order the affiliate id I have set. Do I have to know the WHMCS API, for the adding of the affiliate to the order, or can it be implemented through mysql queries? Thank you 0 Quote Link to comment Share on other sites More sharing options...
Stathinho Posted October 28, 2015 Author Share Posted October 28, 2015 Bring My Post Up 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.