Jump to content

Domain options on the order form


ffeingol

Recommended Posts

I don't believe this is possible to implement but I wanted to bounce it off "everyone" for ideas.

 

For most of our products we want to offer the register/transfer/use existing domain options. For one particular product line we need the clients domain name but we don't want to offer the register/transfer options. The only option on the product setup is use/don't use the domain options for this product.

 

Is there any way to implement this?

 

TIA

Link to comment
Share on other sites

You can achieve this by editing the template configureproductdomain.tpl (remember to make a backup of the template before editing)

 

Using templates/orderforms/cart/configureproductdomain.tpl as an example

 

find the code

{if $registerdomainenabled}

 

and add {if $productinfo.pid!="7"} where 7 is the ID of the product you don't wish to display register and transfer for

 

{if $productinfo.pid!="7"}
{if $registerdomainenabled}

 

The add an {/if} just before {if $owndomainenabled}

 

{if $productinfo.pid!="7"}
{if $registerdomainenabled}
<input type="radio" name="domainoption" value="register" id="selregister" onclick="document.getElementById('register').style.display='';document.getElementById('transfer').style.display='none';document.getElementById('owndomain').style.display='none';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display='none'" /> <label for="selregister">{$LANG.orderdomainoption1part1} {$companyname} {$LANG.orderdomainoption1part2}</label><br />
{/if}

{if $transferdomainenabled}
<input type="radio" name="domainoption" value="transfer" id="seltransfer" onclick="document.getElementById('register').style.display='none';document.getElementById('transfer').style.display='';document.getElementById('owndomain').style.display='none';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display='none'" /> <label for="seltransfer">{$LANG.orderdomainoption3} {$companyname}</label><br />
{/if}
{/if}
{if $owndomainenabled}
<input type="radio" name="domainoption" value="owndomain" id="selowndomain" onclick="document.getElementById('register').style.display='none';document.getElementById('transfer').style.display='none';document.getElementById('owndomain').style.display='';document.getElementById('subdomain').style.display='none';document.getElementById('incart').style.display='none'" /> <label for="selowndomain">{$LANG.orderdomainoption2}</label><br />
{/if}

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