Remitur Posted September 14, 2018 Share Posted September 14, 2018 Hello. Wanting to realize a promotion such as "transfer in your domain to me, I'll give you a discount of x% on this hosting package" ... is it doable?  I looked at all promotions setting, but found no way to gain a promotion to a domain transfer... 😕  0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 14, 2018 Share Posted September 14, 2018 7 hours ago, Remitur said: I looked at all promotions setting, but found no way to gain a promotion to a domain transfer... I would do it the other way and try the following... create a duplicate product of your hosting package (you may be able to use the original). either discount the product price by x% directly (e.g in the pricing setup) or create a promo code that applies to only this product, and to just the transfer TLDs that you want it to apply to. use an action hook to specify that this hosting product can only use "Transfer Domain" as a domain option - e.g they can't register, use existing or subdomain. the hook would be along the lines of the one I posted in the thread below... <?php # Configure Domain Settings For Products # Written by brian! add_hook("ClientAreaPageCart",1,function($vars){ global $productinfo; if ($productinfo['pid'] == "45") { return array( "registerdomainenabled" => "", "transferdomainenabled" => "on", "owndomainenabled" => "", "domainoption" => "transfer" ); } }); just change the PID value to check to the applicable one for your product and during the domain choice stage, they'll only be able to chose a Transfer... 1 Quote Link to comment Share on other sites More sharing options...
PaulGress Posted April 30, 2021 Share Posted April 30, 2021 Hi guys, i'm using whmcs 7.9 actually and i 'll want create something already worked in this post, but without create a different hosting package. My goal would be using an already existing hosting package and directly have a coupon in checkout added if client check to transfer his domain, if not ( eg. client register a new domain ) nothing would be applied. Could be a good start poing this kind of brian's hook ? @brian! Thanks 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.