Support » Plugin: User Switching » Cart content is copied when switching users

  • hakkow

    (@hakkow)


    Hello,

    We’re having an issue with switching users. Whenever the admin has content in his woocommerce cart, this gets copied to the user he switches to. The user cart then has the combined items of himself and the cart of the administrator.

    When the administrator returns to his own account, the user keeps the items, and as a cherry on the cake the administrator has the same ‘combined’ cart contents.

    I believe it might be related to $wc->session->forget_session(); (line 841) which never fires, because method_exists( $wc->session, ‘forget_session’ ) (line 837) always returns false.

    Can you please assist in finding a solution?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.