Support » Plugin: WooCommerce » Cart is empty after the logout

  • Hi, is there anyway to make the cart remember after user logout? The problem on my website is when the
    user login and added the product the cart and then after they logout the cart is cleared by itself. Are they any possibilities to make the cart to remember even after the logout?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Peter

    I solved this removing the hook to destroy the session when the logout is done.

    remove_action( 'wp_logout', array( WC()->session, 'destroy_session' ) );

    petertokuchi

    (@petertokuchi)

    Hi eduardo, where do i put the above code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cart is empty after the logout’ is closed to new replies.