WHMCS does not run creation module after a 100% discounted order
I have faced a problem about whmcs and it's cpanel auto setup module.
Normaly there's no problem , but I put a 100% discount code on my site and when customers use that code, their first month invoice amount decreases to zero (100% discount) and thereupon there will be no payment so whmcs won't run creation module...
I have set auto setup for my product to "After First Payment".
The issue comes from there being no payment made. If you are giving away the product/service you could just change the Module setting to "Automatically setup the product as soon as an order is placed". The only other option that I can think of would be to write a hook that would simulate a payment being made of 0.00 when that coupon is used.
I personally would want to manually approve 100% discount orders - it will attract alot of fraud. We did 1st month free on here once, never again!
I second this. I've done the same thing once upon a time.
On the 2nd note, you can create a custom package to automatically setup after order is processed, but again, I would suggest you review all free orders.
█ Inode Hosting - Reliable Web Hosting for the right price.
█ Shared & Reseller hosting featuring the industry leading cpanel
█ 99.9% Uptime Guarantee ,30 Day Money Back Guarantee ,24/7 Support
█ Established since 2011
Simple - set the promotion to discount all but $0.01. If they can't afford $0.01 they probably aren't an ideal customer. This will also force them to put a payment method on file of some sort giving you verification of who they are and recourse should they burn your server to the ground [figuratively].
Ultimately how you handle it is up to you. Be careful though - free hosting is not discussed here, but on http://www.freewht.com/
Could you please give me more details about hooks ? Is there a ready one available ?
Hooks are WHMCS functions that you code and they run at certain times. More specifically
Originally Posted by WHMCS
Action Hooks allow you to add your own code to WHMCS that runs when specific events or actions occur inside the system. WHMCS has over 100 different hook points that you can tie custom code into, and more are being added with each new release.
The hook that you would want to use for this would probably be the AfterShoppingCartCheckout one as you would code your function to run once the order is created and that first 0.00 invoice is made. I do not think there is any code just floating around for this hook but there is a Addon that does basically the same thing from NHP found here. Personally I would code the hook and save the money, but if you don't have time or know how I guess this will solve your problem too.