Jump to content

Recommended Posts

So,I have an issue where some of my product groups in my sidebar are doubling up. I want to get rid of the doubles. What would be the best course of action that is not too complicated. 

Share this post


Link to post
Share on other sites
On 04/01/2021 at 05:45, Dsbush said:

So,I have an issue where some of my product groups in my sidebar are doubling up. I want to get rid of the doubles. What would be the best course of action that is not too complicated. 

depends on what's generating the output of that sidebar - going into the product group settings and hiding the duplicate product groups might be an option... or it might remove both.... looking at your screenshot in another thread, i'm assuming this is affecting MarketConnect product groups - if that's the case, then hiding those product groups should work.

Share this post


Link to post
Share on other sites

That worked for the most part, but in the past i could delete the line in the HTML. I just don't remember how to that.

Share this post


Link to post
Share on other sites
7 hours ago, Dsbush said:

That worked for the most part, but in the past i could delete the line in the HTML. I just don't remember how to that.

how far in the past ? there's no HTML for you to directly edit these days - unless you're an expert and could do it in the sidebar.tpl template.... and even that's a long-winded solution and you want to keep things simple. 🙂

fundamentally, something is adding these duplicate entries and I think the better solution would be to find the cause - whether that be a configuration issue, a hook, addon module or whatever.

failing that, you would have 2 realistic options - a) remove the duplicate entries with a hook, not difficult and many example hooks will have been posted previously about removing children... or b) use CSS to hide these duplicates...

#Secondary_Sidebar-Categories-Shared_Hosting {display: none !important;}

aAkBRks.png

a similar method could be used for the navbar if the duplicates are occurring there too - though it would be interesting if they're not appearing in the navbar as I would have though by default both should be the same and if not, that would imply something additional is affecting the sidebar.

Share this post


Link to post
Share on other sites

Well, first they are not exact duplicates, WHMCS would create complete official name like "VPN by Sitelock" then create another "VPN"

Share this post


Link to post
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.


  • Similar Content

    • By Tycho
      Hello,
      https://gyazo.com/ae7b45883641d2bbd26482f3233e7af2
      I want everything on the left side bar gone. What's the best way to do that without an empty spot? So I want to have the panels in the middle.
      I've looked at google a lot but couldn't get out anyway.
    • By celse
      If more than one contact exists, when logged in as a contact, the name of the first contact is the one displayed on the header bar (next to logout link).  How can I resolve this issue?
      We're using version 7.10.2
    • By Jevin
      Hi,
      I have set product type as 'other' and while ordering from  clientarea it does not shows password field.
      Am I doing anything wrong ?
      WHMCS 7.10.2 
    • By THost
      Hi All 
      1st post here ... I have a unique setup whereby I am using WHMCS to manage an existing customer base with servers I manage  however I haven't figured out how to display my customers server login credentials and other useful info in the Client Area ... it all looks a bit thin on the ground at the moment.  Is there anything out of the box I can use to display the login credentials with the IP or even bulk out the Additional Information section?
      Cheers
      Stu  
    • By stevelack
      I am trying to remove the sidebar menu "Actions" from the My Products and Services page.  I have created the following hook:
      ```
      <?php
      use WHMCS\View\Menu\Item as MenuItem;
      add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $primarySidebar)
      {
         if (!is_null($primarySidebar->getChild('My Services Actions'))) {
                  $primarySidebar->removeChild('My Services Actions');
         }    
      });
      ```
      But it is not removing the sidebar from the page /clientarea.php?action=services
      What am I doing wrong?
      Thanks,
      Steve
  • 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