aspidagrant Posted October 2, 2014 Share Posted October 2, 2014 We already have around 60 clients in our WHMCS system. We are looking to add a custom field that the admins can change and the clients can view ONLY. Is it possible to add custom fields to existing products/services? Essentially the customers have a certain number of email accounts that they purchase in packages. So if they order the "10 email account" package I want to be able to let them see how many they have in use. That way they know they can add more if need be. Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 2, 2014 Share Posted October 2, 2014 if you create a product custom field, it will be added to existing product/services too. it will be visible on the product details page of the client area, but the client can't edit the value, only admins can do that (unless you modify the templates to allow it, but I think by default only admins can edit the value). Services -> My Services -> View Details 0 Quote Link to comment Share on other sites More sharing options...
aspidagrant Posted October 2, 2014 Author Share Posted October 2, 2014 Brian! - Thanks for the quick response. I added a custom field and it did not show up on the admin or client side. I am also not sure how to add a custom field to specific products/services? If I am understanding what you are saying correctly. - - - Updated - - - I found it on the actual product! Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 2, 2014 Share Posted October 2, 2014 Hi, it sounds like you may have added a Custom Client Field... Setup -> Custom Client Fields what you need to do is add a Product Custom Field... http://docs.whmcs.com/Products_and_Services#Custom_Fields Setup -> Products/Services -> Products/Services find the product you want to add a custom field to and press the edit button (2nd from left) for that product... 4th tab along is "Custom Fields" if you add a field name (can always come back and edit later) and press "Save Changes", you should then be able to go to your clients profile, click the products/services tab and choose a service from the dropdown that is using the product that you've just added the custom field to. I think above "Override Auto-Suspend" you should see your custom field. 0 Quote Link to comment Share on other sites More sharing options...
aspidagrant Posted October 3, 2014 Author Share Posted October 3, 2014 @brian! - I got it! Thanks again for your help. 0 Quote Link to comment Share on other sites More sharing options...
adroitssd Posted October 5, 2014 Share Posted October 5, 2014 I also did this, but custom field automatically select first option for the old client. 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 5, 2014 Share Posted October 5, 2014 You have two options: Review all your clients (since they're 60 it should be pretty simple) to set the proper value I'm supposing that you are using "dropdown" input type. When you create options like "Option1,Option2,Option3" or "1|Option1,2|Option2,3|Option3" just make the first element empty ",1|Option1,2|Option2,3|Option3" or "-please select-,1|Option1,2|Option2,3|Option3". By doing this the first option (the default one) will be empty. 0 Quote Link to comment Share on other sites More sharing options...
Geethanjali Gunasekaran Posted October 6, 2014 Share Posted October 6, 2014 Hi , I created few custom fields like setup -> custom fields i gave required fields for the fields which I created. These custom fields were displayed in adding client form but when i add a client , the custom fields which i created is not checking for required condition. i cant recognize the problem , can you help me. - - - Updated - - - It is setup ->custom client fields * 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 6, 2014 Share Posted October 6, 2014 As an administrator you skip most of validations. For example you could create an account with just email and password with no firstname, lastname etc. even if it's required. 0 Quote Link to comment Share on other sites More sharing options...
Geethanjali Gunasekaran Posted October 7, 2014 Share Posted October 7, 2014 Hi Kian, for me custom field required option is not working . what i must do for it to work 0 Quote Link to comment Share on other sites More sharing options...
Geethanjali Gunasekaran Posted October 9, 2014 Share Posted October 9, 2014 Custom validation working at client end but it is not supporting at admin end why so , has anyone come across this situation 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 9, 2014 Share Posted October 9, 2014 As I have already said as Administrator you skip validation, always. Administrators have "god power" in WHMCS so it's normal that they can do this. 0 Quote Link to comment Share on other sites More sharing options...
Geethanjali Gunasekaran Posted October 14, 2014 Share Posted October 14, 2014 Hi Kian, Thanks for the response . Actually I need validation at admin end also , i tried doing with hooks , using ClientDetailsValidation. it was not supporting , is there any way to add validation to the custom fields at admin end. please help me. 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.