redunculous Posted March 5, 2014 Share Posted March 5, 2014 When I create a new client I would like to have Disable Automatic CC Processing disabled by default - is this possible? Thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
Infopro Posted March 5, 2014 Share Posted March 5, 2014 Billing Preferences section: Billing Preferences - WHMCS Documentation Disable CC Processing - Enabling this option will prevent invoices for this client due via a merchant gateway from being automatically attempted for capture - leaving the client to login and make payment manually for all invoices even with a credit card stored on file 0 Quote Link to comment Share on other sites More sharing options...
redunculous Posted March 5, 2014 Author Share Posted March 5, 2014 Thank you but I would like to have this as a default - not something I manually change for every client, is it possible? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 5, 2014 Share Posted March 5, 2014 if you mean when adding a new client, you want the "Disable CC Processing" checkbox to be ticked by default, then I don't think you can... perhaps another way to handle this would be to tweak your cron settings and disable auto cc processing there...? http://docs.whmcs.com/Crons#Skipping_Actions 0 Quote Link to comment Share on other sites More sharing options...
redunculous Posted March 5, 2014 Author Share Posted March 5, 2014 Is there nothing here I can edit in the template? http://www.whmcsjet.com/client-details-in-whmcs-templates/ Thanks for your response 0 Quote Link to comment Share on other sites More sharing options...
SeanP Posted March 6, 2014 Share Posted March 6, 2014 You could write a hook that disabled it when a new client is added. I would use the Update_Client API function, and set the disableautocc attribute to true. http://docs.whmcs.com/Hooks http://docs.whmcs.com/API:Update_Client 0 Quote Link to comment Share on other sites More sharing options...
towens Posted July 31, 2014 Share Posted July 31, 2014 Needed this same thing and came across this thread. Got it working thanks to the information from SiteOx. Figured I'd add it here for posterity. Create the file /includes/hooks/disableautocc.php and add this code replacing the admin username with your own: <?php function hook_disable_auto_cc($vars) { $command = "updateclient"; $adminuser = "admin"; $values["clientid"] = $vars['userid']; $values["disableautocc"] = true; $results = localAPI($command,$values,$adminuser); } add_hook("ClientAdd",1,"hook_disable_auto_cc"); ?> 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Ryan Posted July 31, 2014 Share Posted July 31, 2014 Hello towens, Thank you for sharing this workaround. We always appreciate it when users share their solutions but I am obligated to remind everyone that these are not tested nor supported by WHMCS. Please test user submitted solutions before applying them in your production install of WHMCS. --Thanks 0 Quote Link to comment Share on other sites More sharing options...
NickJ Posted August 2, 2020 Share Posted August 2, 2020 just wanted to say thank you for the above yes first add the php hook file and then simply open phpmyadmin and run this to disable it on all "existing" clients to disable it for them also, hope it helps someone else Update tblclients set disableautocc = '1'; 0 Quote Link to comment Share on other sites More sharing options...
Md Rasel Posted February 18, 2022 Share Posted February 18, 2022 (edited) On 3/5/2014 at 8:37 PM, brian! said: if you mean when adding a new client, you want the "Disable CC Processing" checkbox to be ticked by default, then I don't think you can... perhaps another way to handle this would be to tweak your cron settings and disable auto cc processing there...? http://docs.whmcs.com/Crons#Skipping_Actions @brian! Could you please check this screenshot? https://prnt.sc/cQoEKl9A4n7t I want to disable auto Credit Card processing, so it it correct? Thanks! Edited February 18, 2022 by mdraselkhan 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.