Jump to content

Remove [No Hosting! Click to Add] on domain configuration


lurking

Recommended Posts

I am selling domains, and only domains. On the 2nd step of ordering domain I need to remove BOTH of the hosting lines that state:

 

[No Hosting! Click to Add]

 

I have searched all over but have not found anything. Could someone please help? Thanks in advance!

Link to comment
Share on other sites

if memory serves, it will be in the configureproductdomain.tpl template - so you could either remove the code from there, or it may be possible to use a language override and remove the entry from the language files - that might have the same effect, and practically remove the link.

Link to comment
Share on other sites

  • 2 years later...
16 hours ago, Persemp said:

Like Lurking, I want to delete these hosting links, but I can not find this file: configureproductdomain.tpl
Can You tell me where exactly is this file?

if using standard_cart, take a look in configuredomains.tpl...

                        <div class="col-sm-6">
                            <div class="form-group">
                                <label>{$LANG.hosting}</label>
                                <br />
                                {if $domain.hosting}<span style="color:#009900;">[{$LANG.cartdomainshashosting}]</span>{else}<a href="cart.php" style="color:#cc0000;">[{$LANG.cartdomainsnohosting}]</a>{/if}
                            </div>
                        </div>

the link is the <a href> on the fifth line above... remove that, or the entire div block, and the user won't be able to add hosting to a domain registration. :idea:

Link to comment
Share on other sites

18 minutes ago, Persemp said:

Do you know how to delete in ,, Register Domain ,, Operation ,,Add Web Hosting? (see attached picture)

there are a couple of ways...

1. you could either edit the /templates/orderforms/standard_cart/domainregister.tpl template and remove/edit

            <div class="row">
                <div class="{if $domainTransferEnabled}col-md-6{else}col-md-8 col-md-offset-2{/if}">
                    <div class="domain-promo-box">

                        <div class="clearfix">
                            <i class="fa fa-server fa-4x"></i>
                            <h3>{lang key='orderForm.addHosting'}</h3>
                            <p class="font-bold text-warning">{lang key='orderForm.chooseFromRange'}</p>
                        </div>

                        <p>{lang key='orderForm.packagesForBudget'}</p>

                        <a href="cart.php" class="btn btn-warning">
                            {lang key='orderForm.exploreNow'}
                        </a>
                    </div>
                </div>
                {if $domainTransferEnabled}
                    <div class="col-md-6">
                        <div class="domain-promo-box">

                            <div class="clearfix">
                                <i class="fa fa-globe fa-4x"></i>
                                <h3>{lang key='orderForm.transferToUs'}</h3>
                                <p class="font-bold text-primary">{lang key='orderForm.transferExtend'}*</p>
                            </div>

                            <a href="cart.php?a=add&domain=transfer" class="btn btn-primary">
                                {lang key='orderForm.transferDomain'}
                            </a>

                            <p class="small">* {lang key='orderForm.extendExclusions'}</p>
                        </div>
                    </div>
                {/if}
            </div>

2. add one line of css code to /templates/six (or custom)/css/custom.css to hide the entire div...

.domain-promo-box {display: none;}

the first option is easier if you wanted to edit the design in some way; the second is simpler if you just want to hide it. :idea:

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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