Jump to content

Change the pre-selected domain choice when configuring product domain?


tech

Recommended Posts

When ordering hosting/domain, I want to have a subdomain option pre-selected.

 

I have already moved it up in the template file to be the first option the customer sees, but the default "new domain registration" is still pre-selected.

 

Can anyone help?

Link to comment
Share on other sites

I think it's the style.display='' and style.display='none' part that defines which option is selected by default.

 

That's not quite it. That code seems to make sure only one option is selected at a time, but doesn't set which one is pre-selected on page load.

Link to comment
Share on other sites

Solved. Thanks John, there are two different sections of code for

style.display='';

 

In configureproductdomain.tpl line ~90-92, I changed it to this

document.getElementById('subdomain').style.display='';
document.getElementById('selsubdomain').checked='true';
{*document.getElementById('{$domainoption}').style.display='';*}

Edited by tech
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