hotirish99 Posted January 16, 2014 Share Posted January 16, 2014 I've seen in a couple of threads that people say you can use an 'if' statement to get the tld in configuredomains.tpl. Anyone know what the statement is? Smarty debug doesn't seem to show the tld. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 16, 2014 Share Posted January 16, 2014 which order form are you using? 0 Quote Link to comment Share on other sites More sharing options...
hotirish99 Posted January 16, 2014 Author Share Posted January 16, 2014 modern, does that make a difference? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 16, 2014 Share Posted January 16, 2014 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. 0 Quote Link to comment Share on other sites More sharing options...
hotirish99 Posted January 16, 2014 Author Share Posted January 16, 2014 Thanks Brian, that's it. For anyone doing a search in future (probably me), it needs to go between the {foreach key=num item=domain from=$domains}{/foreach} section of the template. 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.