Removing shopping cart from header

Home Forums Automattic Small Business Removing shopping cart from header

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #164761 Resolve

    usahmarketingusahostelscom

    Hi! I am trying to set up a shopping cart for my company but we want it to be on the backend where we would send to people once they sign up. So how can I remove the shopping cart from the header of the website?

    Thanks in advance!

    #164764

    Eduardo Z.

    Hello there. How’s everything?

    It looks like you wanna show de cart only when people are logged in. Is that right?

    To do that, we will need to add some custom CSS code to your site. Go to My Site > Customize > Additional CSS and there paste the following code:

    /* Cart: shows cart icon only when users are logged in */
    body:not(.logged-in) .site-header-cart {
      display: none;
    }
    

    There are also other ways, using custom plugins, to even remove the price and the Add To Cart function from non-logged users. Here’s an example:

    https://wordpress.com/plugins/login-to-see-add-to-cart-and-prices-in-woocommerce/

    Also, just a heads-up that since your site has a Business plan, you’re entitled to live-chat and email support, accessible here:

    https://wordpress.com/help/contact

    You’re welcome to still post in these forums, but those other support avenues may be faster, and you’ll always get a staff reply.

    Hope that helps, but let me know if there’s something else I can do for you.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.