Jump to content

promotions active only for transfer-in domain?


Remitur

Recommended Posts

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...

  1. create a duplicate product of your hosting package (you may be able to use the original).
  2. 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.
  3. 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...

DAp6l3q.png

Link to comment
Share on other sites

  • 2 years later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated