• mirtidevednis

    (@mirtidevednis)


    Hi!

    Slightly changed the behavior of the window through CSS. With the side cart open, the user can continue to interact with the main content of the page.

    Need a little help. Is it possible to make the side cart always open if the user has already added one or more products? So that when going to another page or reloading the side cart was immediately open. If the user has not added products yet, then there is no need to open the side cart automatically.

    Surely, it requires a couple of edits in js-scripts. Thank you very much in advance!

    p.s. Sorry for the poor translation. Used google translate.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you figure this out? Looking to do the same thing.

    Thread Starter mirtidevednis

    (@mirtidevednis)

    Unfortunately no. Work was accepted without it. I will try to solve this if there is free time. If you have a solution in the future, please share it.

    Plugin Author xootix

    (@xootix)

    add_action( 'wp_footer', function(){
    	if( WC()->cart->is_empty() ) return;
    	?>
    	<script type="text/javascript">
    		jQuery(document).ready(function(){
    			$('.xoo-wsc-modal , body, html').addClass('xoo-wsc-active');
    		})
    	</script>
    	<?php
    } );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Always open cart when product(s) added’ is closed to new replies.