• Resolved dyrec

    (@dyrec)


    Hi,
    I want to open the cart side pannel when clicking an icon of my current menu (“div class=”cart-contents”) instead of the plugin “woocommerce-cart-tab” container.

    I tried adding the following JS in my menu template page but it does not work.

    Can you please help with that?

    <script type="text/javascript">
    jQuery( '.cart-contents' ).click( function() {
    jQuery( '.woocommerce-cart-tab-container' ).toggleClass( 'woocommerce-cart-tab-container--visible' );
    jQuery( 'body' ).toggleClass( 'woocommerce-cart-tab-is-visible' );
    });
    </script>	

    thanks a lot in advance

    Damien

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to open the side pannel cart when clicking a link’ is closed to new replies.