Jump to content

subdomain only on orer form


Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 months later...

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'}

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