I am using woocommerce 3.0 and I want to redirect all guest users to my account page when they click on add to cart. I am able to do this with woocommerce filter:-
add_filter( 'woocommerce_add_to_cart_redirect', 'my_redirect' );
but the product gets added to the cart.
Actually i do not want anyone to be able to add to cart without login.
Any solution out there?
Thanks