[Resolved] Display cart panel on add to cart

Home Forums Support [Resolved] Display cart panel on add to cart

Home Forums Support Display cart panel on add to cart

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #941098
    Kevin

    Hello,

    When enabling the customizer setting:

    Layout > Woocommerce > Display cart panel on add to cart

    I expect to see this behaviour

    https://docs.generatepress.com/wp-content/uploads/2019/03/1.8_StickyAddToCart.gif

    On my website, I see a red banner on page refresh instead of an animated dropdown.

    I have checked the following:

    • plugin and theme up to date
    • disabled all plugins
    • disabled cache (Server and Cloudflare)

    Am I misunderstanding how this option works?

    Looking forward to hearing from you.

    #941498
    David
    Staff
    Customer Support

    Hi there,

    I just checked your site and it is working how it should be. Which is on the product archives ( Including Related Products ). It requires Ajax to function, which woo doesn’t currently apply to single products hence why you get the standard notification.

    #942049
    Kevin

    Thanks for the explanation.

    #942118
    David
    Staff
    Customer Support

    You’re welcome

    #946875
    Andrew

    Since this is still open and the heading is adequately general, can you confirm whether this feature works on mobile, David? And if not, can it be enabled? Thanks

    #947197
    Tom
    Lead Developer
    Lead Developer

    Yes, this feature works on mobile 🙂

    #947226
    Andrew

    Thank you. I see it’s on the bottom, can it be placed at the top? We have a chat icon that overlays the add to cart button when it’s on the bottom.

    #947445
    Tom
    Lead Developer
    Lead Developer

    Give this CSS a shot:

    @media (max-width: 768px) {
        .add-to-cart-panel {
            bottom: auto;
            top: 0;
            -webkit-transform: translateY(-100%);
            -ms-transform: translateY(-100%);
            transform: translateY(-100%);
        }
    
        
        .add-to-cart-panel .continue-shopping {
            position: relative;
            order: initial;
            margin: 0;
            background: none;
            top: auto;
            left: auto;
            width: auto;
            height: auto;
            line-height: auto;
        }
    
        .add-to-cart-panel.show-sticky-add-to-cart {
            transform: translateY(60px) !important; /* height of your sticky nav */
        }
    }
    #947471
    Andrew

    Sorry Tom, looks like it will work but should have specified we have the sticky nav enabled, so now the sticky nav overlays the cart panel.

    #947484
    Tom
    Lead Developer
    Lead Developer

    Can you link me to your site?

    #947552
    Andrew
    #948042
    Tom
    Lead Developer
    Lead Developer

    I don’t think I’m seeing the issue on that page. Can you show me a screenshot?

    #948632
    Andrew

    Tom we’ve got the CSS you provided commented out currently because we’re running an ad campaign.

    Here’s what it looks like currently: http://snpy.in/Rxzhiw

    #949131
    Tom
    Lead Developer
    Lead Developer
    #949165
    Andrew

    That did it, thanks!

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