mauwiks Posted March 28, 2020 Share Posted March 28, 2020 Hi there, Is there a way or a hook to change the cancellation request into "Cancelling" instead of Terminating accounts? Or else to auto check the "auto-cancellation when due" Thanks & Regards 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 29, 2020 Share Posted March 29, 2020 11 hours ago, mauamolat said: Is there a way or a hook to change the cancellation request into "Cancelling" instead of Terminating accounts? Or else to auto check the "auto-cancellation when due" you could disable automatic termination by unticking the "Cancellation Requests" checkbox in Automation Settings. https://docs.whmcs.com/Products_Management#Cancelling_a_Product.2FService 0 Quote Link to comment Share on other sites More sharing options...
mauwiks Posted March 29, 2020 Author Share Posted March 29, 2020 (edited) Yes, but I want it to be enabled not to terminate accounts but to just cancel Edited March 29, 2020 by mauamolat 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 30, 2020 Share Posted March 30, 2020 18 hours ago, mauamolat said: Yes, but I want it to be enabled not to terminate accounts but to just cancel then you could use the PreModuleTerminate hook to abort the termination - though you'd have to check that the service was being terminated due to being cancelled rather than for any other reason and react accordingly.... also, I think it terminates first and then updates the status to cancelled (someone correct me if i'm wrong on that) - so if you're interrupting the termination, you might need to adjust the status to cancelled with a quick SQL update query or by using the UpdateClientProduct API. depending on what the service is, just marking it as cancelled in WHMCS won't stop the service from actually existing, e.g if this was a hosting account, the client would still be able to use the account - it's just that by marking it as cancelled, it will prevent future invoicing by WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
mauwiks Posted March 30, 2020 Author Share Posted March 30, 2020 How about suspending instead? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 30, 2020 Share Posted March 30, 2020 1 hour ago, mauamolat said: How about suspending instead? if it's a hosting service, that would be better... though the same answer would basically still apply, e.g you prevent termination with a hook, suspend the service (using ModuleSuspend) and then change it's service status to cancelled. and if you're wondering why i'm suggesting still changing its status to cancelled and not suspended, it's because suspended services will still get invoiced for, cancelled/terminated services won't. if you wanted to do the suspending manually, and if the associated module supports it, then there will be suspend / unsuspend buttons on the product tab in the clients profile. 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.