[Resolved] WooCommerce add to cart not showing

Home Forums Support [Resolved] WooCommerce add to cart not showing

Home Forums Support WooCommerce add to cart not showing

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1570632
    Charles

    Hi there,

    I’ve recently installed WooCommerce and enabled the add-on within GeneratePress. However, I can’t seem to get the add to cart button or price butttons on the single page.

    The add to cart button appears on the shop page.

    Any help would be muchly appreciated.

    Charles

    #1570766
    David
    Staff
    Customer Support

    Hi there,

    can you provide a link to a product so we cans see what the issue is?

    #1570817
    Charles
    #1571008
    Ying
    Staff
    Customer Support

    This CSS you’ve added is the issue:

    div.entry-summary {
    display: none;
    }

    Let me know 🙂

    #1571259
    Charles

    Hi there,

    Yes that fixed it, thank you.

    Also, how is it possible to only show the cart in the menu when there is something added to the basket?

    Charles

    #1571326
    David
    Staff
    Customer Support

    This article explains how to hide the empty cart:

    https://docs.generatepress.com/article/hide-cart-in-menu-when-empty/

    #1571335
    Charles

    Hi there,

    I’ve added that CSS, however, the basket is still showing in the menu.

    Charles

    #1571352
    David
    Staff
    Customer Support

    Hmmm… can you disable your Cache/Optimizer plugin so i can take a look to see why its not applying

    #1571424
    Charles

    Sure, I’ve just deactivated my Siteground optimizer.

    Charles

    #1571474
    David
    Staff
    Customer Support

    Lets try this CSS:

    .mobile-bar-items.wc-mobile-cart-items:not(.has-items),
    .main-navigation .wc-menu-item:not(.has-items) {
        display: none !important;
    }
    #1571570
    Charles

    Brilliant, that’s done it, thank you. One more question, is it possible to remove the sidebar on the basket page?

    Cheers

    #1571746
    David
    Staff
    Customer Support

    You can edit the Cart Page and use the Disable Elements module to remove the sidebar:

    https://docs.generatepress.com/article/disable-elements-overview/

    You can also find that same option in a Layout element if you need to remove it from archive pages:

    https://docs.generatepress.com/article/layout-element-overview/

    #1571780
    Charles

    Brilliant, thanks for your help.

    #1572104
    David
    Staff
    Customer Support

    You’re welcome

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.