Jump to content

WHMCS templates/orderforms/verticalsteps/adddomain.tpl - variable that define user submitted domain name?


postcd

Recommended Posts

Hello,

i have found that in WHMCS 6.3.2 in the file templates/orderforms/verticalsteps/adddomain.tpl

is line "<h2>{$LANG.choosedomains}</h2>"

below which i can insert custom text. I want to insert link to https://www.namecheap.com/domains/registration/results/?domain={$domain}

{$domain} being the variable used for the domain name the user submitted for checking its availability.

I already tried several variables, but none return the domain name. Please which variable it is? Or can i add any particular debug line into that .tpl file that show me all available variables please?

I tried to add {debug} and it found following three variables and its properties:

$availabilityresults
Smarty_Variable Object (3)
->value = Array (2)
  0 => Array (4)
    domain => "encrypt.me"
    status => "unknown"
...

$domains
Smarty_Variable Object (3)
->value = Array (1)
  0 => "encrypt.me"
->nocache = false
->scope = "file:/home/me/public_html/templa..."

$searchResults
Smarty_Variable Object (3)
->value = Array (11)
  domainName => "encrypt.me"
  tld => "me"
  sld => "encrypt"
  status => "unknown"
  legacyStatus => "error"
  score => 1
  isRegistered => false
  isAvailable => false
  suggestions => Array (1)
...

Edited by postcd
Link to comment
Share on other sites

going from memory of vertical steps, you should have access to sld & tld (the values entered into the search), and if that's the case, the link should be..

<a href="https://www.namecheap.com/domains/registration/results/?domain={$sld}{$tld}">click here</a>

you'll probably want to target that link to open in a new tab/window, but it should work.

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