Okay
  Public Ticket #3672653
Customers baskets empty when switching to them.
Closed

Comments

  •  1
    Darren Douglas started the conversation

    When we use the "shop as customer" option in the agents dashboard - it empties the customers basket.
    We can add/edit the basket afterwards and the customer sees the items - and we see anything the customer does AFTER switching.  But switching to them blanks it.
    Obviously this is quite an issue - especially as we found it trying to help a customer with 62 different items in their cart...

    I've tested it and it reliably deletes the cart of a user - tested it with a few users and a couple of test agents, consistant basket clearing when switching.

  •  2,114
    WebWizards replied

    Hello Darren,

    Thank you for purchasing our plugin,


    It is possible to disable this cart emptying behaviour by adding the following PHP code snippet to the site:

    add_filter('salesking_empty_cart_on_switch','__return_false');

    This snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/

    We will also consider possibly disabling it by default. Thank you for the feedback,


    Let me know if you have any further issues after adding that,


    Kind regards,

    Stefan