Jump to content

Domain contains "xyz" or "download"? Show message on cart.php?a=confdomains


postcd

Recommended Posts

Hello,

 

it seems that clients are able to order premium domains (expensive ones) for regular price. When clients select domain with .xyz or .download extension in the order form (/cart.php?a=confdomains), i would like to show them message like: "Ordering a domain name? Please <a href=http://linktodomainchecker.com>make sure it is not a premium domain</a> as these will not be registered."

 

Please what is the code to add so this message is shown when "xyz" or "download" string is in the domain name?

 

-------

 

Or any way to make WHMCS return Taken/Not available for premium domains?

Link to comment
Share on other sites

it seems that clients are able to order premium domains (expensive ones) for regular price. When clients select domain with .xyz or .download extension in the order form (/cart.php?a=confdomains), i would like to show them message like: "Ordering a domain name? Please <a href=http://linktodomainchecker.com>make sure it is not a premium domain</a> as these will not be registered."

 

Please what is the code to add so this message is shown when "xyz" or "download" string is in the domain name?

if you're talking about standard_cart/configuredomains.tpl, then one option would be....

 

                    <div class="sub-heading">
                       <span>{$domain.domain}</span>
                   </div>

                   <div class="text-center">
                       {if $domain.domain|strstr:'.xyz' or $domain.domain|strstr:'.download'}<label>Ordering a domain name?<br>Please <a href=http://linktodomainchecker.com>make sure it is not a premium domain</a> as these will not be registered.</label>{/if}
                   </div>

the top DIV is already in the code, the second DIV is the one that outputs your message based on the domain TLD... obviously, you can tweak that to your own needs.

 

Or any way to make WHMCS return Taken/Not available for premium domains?

not via standard whois - that can only tell you if a domain is registered or not, and not if it's premium or it's price.

 

if you wanted to offer premium names, you would need a third-party API/EPP solution - and that will likely depend on one being available for your registrar.

 

the two that spring to mind are LogicBoxes (Resellerclub, Resell.biz and NetEarthOne) and Hexonet.

 

https://forum.whmcs.com/showthread.php?97182-Prevent-place-order-for-banned-domains&p=406802#post406802

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.

×
×
  • 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