Jump to content

darkknight1985

Member
  • Posts

    3
  • Joined

  • Last visited

About darkknight1985

darkknight1985's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. My main website is a wordpress site. WHMCS is installed in a folder called "e-billing" and it is located in the root of the wordpress installation within the public_html folder (where you find the wp-admin, wp-content folders). In my homepage I have a header menu link called client login which leads to a page where you can login to the WHMCS client area. What I want is that when a client has already logged into the client area, and he comes back to browsing my main website and now wants to go back to the client area, I want that client login link to detect the existing WHMCS login session and directly lead the client to the client area, rather than the login page. So what should happen is to check if whether the WHMCS login session is there from my main website's side and change the code accordingly. How Can I access the WHMCS login/session details through my wordpress code?
  2. Hello, I am quite new to WHMCS. My client wants to change the visual aspects of the WHMCS to make them more aligned with his website's aesthetic. One of the requirements I have is to remove the sidebar from certain pages (Eg:- Product Details pages, Checkout pages, etc.). By removing I mean to completely do away with them so the rest of the page's content takes up the entirety of the page. I was able to remove the sidebar from the product details pages by modifying the header.tpl using this great piece of code I found on another thread. {if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren()) && $templatefile neq 'clientareaproductdetails'} {if $primarySidebar->hasChildren()} <div class="col-md-9 pull-md-right"> {include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true} </div> {/if} <div class="col-md-3 pull-md-left sidebar"> {include file="$template/includes/sidebar.tpl" sidebar=$primarySidebar} </div> {/if} <!-- Container for main page display content --> <div class="{if !$inShoppingCart && ($primarySidebar->hasChildren() || $secondarySidebar->hasChildren()) && $templatefile neq 'clientareaproductdetails'}col-md-9 pull-md-right{else}col-xs-12{/if} main-content"> {if !$primarySidebar->hasChildren() && !$showingLoginPage && !$inShoppingCart && $templatefile != 'homepage' || $templatefile eq 'clientareaproductdetails'} {include file="$template/includes/pageheader.tpl" title=$displayTitle desc=$tagline showbreadcrumb=true} {/if} Can someone please tell me how to enhance this code to remove the sidebar from the checkout pages as well. Thanks in advance!
  3. Hello Brian, Thank you very much for this reply. This helped me to remove the sidebar from my product details pages of the client panel. Can you please point me on how to remove the sidebar from my checkout and payment areas as well. How can I improve this code to include the part to remove the sidebar from the checkout pages/templates as well.
×
×
  • 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