Jump to content

disable webhosting recommendation when not having hosting products?


Bashar

Recommended Posts

if you're talking about the image below, then you can't do it from the settings...

 

63xnFm5.png

 

... you'd need to modify the domainregister.tpl template and either remove the block below...

 

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

... or if you want the panel to show only if you having hosting products - and for simplicity i'm counting ANY product as a hosting product (otherwise it gets complicated), you would wrap the above block in an {if} statement...

 

                {if $productgroups|@count gt 0}
               <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}

... and if you do have products that aren't hosting products, then you'd likely need to write an action hook to determine that for an if statement to act upon.... or just simply delete/replace the above block of code yourself. :)

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