sahostking Posted May 25, 2016 Share Posted May 25, 2016 I only want subdomain displayed on orderform - the other 3 domain options hidden. How is this possible? I have this: {if $subdomains} <div class="field-row clearfix"> <div class="col-sm-12"> <label class="radio-inline product-radio"><input type="radio" name="domainoption" value="subdomain"{if $domainoption eq "subdomain"} checked{/if} onclick="chooseDomainReg('subdomain')" /> {$LANG.orderdomainoption4}</label> <div class="domain-option line-padded{if $domainoption neq "subdomain"} hidden{/if}" id="domopt-subdomain"> I've tried : {if $subdomains and $product.info eq "35"} 35 being the group and even {if $subdomains and $pid eq "147"} 147 being the pid of the product. Any easy way to accomplish this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 25, 2016 Share Posted May 25, 2016 for all products or just one product? if it's all, then you could either disable the options in general settings... or remove the appropriate {if} blocks of code for the other options... if it's just one product, i'd do the opposite of what your doing - leave {if subdomains} alone and modify the other registration options to hide them for this product. so to hide the register domain option for pid 147, you would use... {if $registerdomainenabled and $productinfo.pid neq '147'} if you want to do it for groups, then... {if $registerdomainenabled and $productinfo.gid neq '35'} and then add the same to the other registration options. 0 Quote Link to comment Share on other sites More sharing options...
cubewebdesigns Posted September 19, 2016 Share Posted September 19, 2016 Greetings, Brian, I tried your fix for just one product; however, I'm still getting the "transfer" and "use my own". I used {if $registerdomainenabled and $productinfo.pid neq 'myproductid'} Here's a screenshot: http://prntscr.com/cjv2vc Thanks in advance, Bill 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 20, 2016 Share Posted September 20, 2016 Hi Bill, if you want to only show the register option for one product, then you need to add similar code to the other options (that's what I meant by doing the same to the other registration options). so let's say for product ID '1', you want to show the transfer option only and hide the others by changing... {if $registerdomainenabled} to... {if $registerdomainenabled and $productinfo.pid neq '1'} and then change... {if $owndomainenabled} to... {if $owndomainenabled and $productinfo.pid neq '1'} and change... {if $subdomains} to... {if $subdomains and $productinfo.pid neq '1'} 0 Quote Link to comment Share on other sites More sharing options...
cubewebdesigns Posted September 20, 2016 Share Posted September 20, 2016 gotcha... sorry I was being a bonehead I guess. I saw your note about the other registration options; but, in my mind I was relating that to "groups" only. Thanks man!! Bill 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.