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.