Jump to content

Remove / Hide Sidebar (Categories, Actions, Currency) on Mobile – Standard Cart


Recommended Posts

Hi everyone,

I’m currently working with the Standard Cart order form template in WHMCS and trying to improve the mobile user experience.

On mobile devices, the sidebar (showing Categories, Actions, and Currency) appears at the top of the cart page, which negatively affects the user experience and conversions.

I’ve identified the related template files:

  • sidebar-categories.tpl
  • sidebar-categories-collapsed.tpl
  • sidebar-categories-selector.tpl

I attempted the following:

  • Removed the mobile block from sidebar-categories.tpl
  • Emptied sidebar-categories-collapsed.tpl
  • Cleared template cache

However, the sidebar is still showing on mobile.

What I want to achieve:

  • Hide/remove the sidebar only on mobile devices
  • Keep the desktop sidebar unchanged

Questions:

  1. Is there another file (like viewcart.tpl or a hook) that controls the mobile sidebar output?
  2. Is WHMCS injecting this via JS or another include that I might be missing?
  3. What is the recommended way to disable the mobile sidebar cleanly?

Any help or direction would be greatly appreciated.

Thanks in advance!

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