[Resolved] Display Mini Cart contents automatically without hovering.

Home Forums Support [Resolved] Display Mini Cart contents automatically without hovering.

Home Forums Support Display Mini Cart contents automatically without hovering.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1629547
    Biju

    Hi,

    Is there a way to display the mini cart to open and display its contents and close after 2 seconds, every time a product is added to cart? Now, the default behavior of the cart icon is to display the contents when i hover on the icon. I just want it to happen automatically at the Add To Cart event. Something like below…

    add_action(‘woocommerce_after_add_to_cart’, ‘Show_Mini_Cart’);
    function Show_Mini_Cart() {
    //Open Mini Cart and show contents for a few seconds.
    // Close Mini Cart.
    // Don’t know what to call here.
    // Please.
    }

    Thanks in advance.

    #1629655
    Leo
    Staff
    Customer Support

    Hi there,

    That would require a custom javascript solution which is out of the scope of this support forum unfortunately.

    Thanks for your understanding ๐Ÿ™‚

    #1629784
    Biju

    Oh.. ok. I thought it might be just an action hook thing. No problem.
    Thanks for responding.

    #1629934
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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