Jump to content

'if' statement to get tld in configuredomains.tpl


hotirish99

Recommended Posts

modern, does that make a difference?

I couldn't remember if one of the order forms includes the tld as a separate variable - somewhere i've seen tld in debug... just can't remember when!

 

anyway, for the modern order form, you don't get it as a separate variable (but you knew that already!) - so you'll have to search for it in the $domain variable...

 

{if $domain.domain|strstr:".com"}this is a .com domain!{/if}

for most tld's, this should be sufficient - but if you were selling Centralnic domains (eu.com etc), then you would put them first in a list of if statements.

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