Jump to content

How to edit add domain page?


ewal

Recommended Posts

11 hours ago, Kian said:

It should be configureproductdomain.tpl right after line 25. You have to invert the "sections" you need.

Nothing changed :/

I tried refresh page with ctrl + f5 but nothing

Link to comment
Share on other sites

@Kian is correct in that editing configureproductdomain.tpl is the solution - but if you're using the Modern orderform template, you should see a series of {if} statements starting at line #16...

    {if $incartdomains}
...
    {/if}
    {if $registerdomainenabled}
...
    {/if}
    {if $transferdomainenabled}
...
    {/if}
    {if $owndomainenabled}
...
    {/if}
    {if $subdomains}
...
    {/if}

so if you want to show subdomains before transfer domains, you simple move the entire {if $subdomains} block of code and move it *before* the {if $transferdomainenabled} block of code... e.g

    {if $subdomains}
            <div class="option">
                <label class="radio-inline">
                    <input type="radio" name="domainoption" value="subdomain" id="selsubdomain" />{$LANG.cartsubdomainchoice|sprintf2:$companyname}
                </label>
                <div class="domainreginput hidden" id="domainsubdomain">
                    http:// <input type="text" id="subdomainsld" size="30" value="{$sld}" autocapitalize="none" /> <select id="subdomaintld">{foreach from=$subdomains key=subid item=subdomain}<option value="{$subid}">{$subdomain}</option>{/foreach}</select>
                </div>
            </div>
    {/if}
    {if $transferdomainenabled}
            <div class="option">
                <label class="radio-inline">
                    <input type="radio" name="domainoption" value="transfer" id="seltransfer" />{$LANG.carttransferdomainchoice|sprintf2:$companyname}
                </label>
                <div class="domainreginput hidden clearfix" id="domaintransfer">
                    <div class="row">
                        <div class="col-sm-6 col-xs-8 col-sm-offset-2">
                            <div class="input-group">
                                <span class="input-group-addon">www.</span>
                                <input type="text" id="transfersld" value="{$sld}" class="form-control" autocapitalize="none" />
                            </div>
                        </div>
                        <div class="col-sm-2 col-xs-4">
                            <select id="transfertld" class="form-control">
                            {foreach from=$transfertlds item=listtld}
                                <option value="{$listtld}"{if $listtld eq $tld} selected="selected"{/if}>{$listtld}</option>
                            {/foreach}
                            </select>
                        </div>
                    </div>
                </div>
            </div>
    {/if}

c4G6odq.png

don't necessarily copy the above code, modify the code in your /templates/orderforms/modern/configureproductdomain.tpl template directly as I don't know which version of WHMCS you have installed.

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