Jump to content

whmcs premium comparison order form show menu hide menu button


Recommended Posts

I have the latest version of WHMCS and am using the premium comparison order form. It has a sidebar menu for product that when you land on a product is a button that says show menu and you have to click it to open the sidebar menu of products. I would like to know if anyone knows how to make it default to being open rather than closed.

Link to comment
Share on other sites

if you want to remove the button, there are two options...

 

1. goto setup -> general settings -> ordering -> Sidebar Toggle Option

 

unticking that will remove the button from all templates that use it.

 

2. if only for premium, you could edit the premium_comparison/products.tpl template and remove...

 

{if $showSidebarToggle}
   <button type="button" class="btn btn-default btn-sm" id="btnShowSidebar">
       <i class="fa fa-arrow-circle-right"></i>
       {$LANG.showMenu}
   </button>
{/if}

to then have the sidebar visiible by default, you would need to edit the premium_comparison/css/style.css file and change...

 

.product-selection-sidebar {
   position: absolute;
   top: 0;
   left: -300px;
   width: 300px;
   display: none;
}

to...

 

.product-selection-sidebar {
   position: absolute;
   top: 0;
   left: 0px;
   width: 300px;
}

if you wanted to leave the button visible, you'd need to adjust the jquery code at the top of products.tpl

Link to comment
Share on other sites

  • 6 years later...

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