bitsbc Posted November 9, 2023 Share Posted November 9, 2023 Hi All, I've got a product I'm selling that currently requires manual input into another system. I collect data and payment in WHMCS then take the user information and input into another system. The other system will provide me with a username and password that I would like accessible to the user in their Client Area. See below: After the user clicks on their service, I would like to add "Username & Password" in here after the order has been Accepted/Completed. Is there a way I can add additional fields that are NOT on the order form, and only added AFTER the purchase from the admin interface? 0 Quote Link to comment Share on other sites More sharing options...
Nelson Neoh Posted November 14, 2023 Share Posted November 14, 2023 There are ways to do. I would suggest you can try to have the hooks method first, which is much easier. Assumed your product is categorized as non domain products, then should use this hook: https://developers.whmcs.com/hooks-reference/client-area-interface/#clientareapageproductdetails After then, modify the template file (clientareaproductdetails.tpl) to add the new fields you wish to add. Hope these help. 0 Quote Link to comment Share on other sites More sharing options...
bitsbc Posted November 16, 2023 Author Share Posted November 16, 2023 @Nelson Neoh is it possible to have this new field added to ONLY specific products? I wouldn't want this field to show up for all products. 0 Quote Link to comment Share on other sites More sharing options...
Nelson Neoh Posted November 17, 2023 Share Posted November 17, 2023 If the product you selling is having its own module, you can always perform a module name check first. I would suggest you can try to check what's in the $vars. You can use logModuleCall to print the contents in $vars to Module Log. If no, I would guess you will store the credential info in custom fields. If so, you can perform a check if these fields are not empty then only show the fields and its content. 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.