Public Ticket #3672653

Customers baskets empty when switching to them.

Closed
Comments
2 Tickets 1
Darren Douglas started the conversation 2 years ago on June 24, 2024 at 9:09am

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,762
KingsPlugins replied 2 years ago on June 25, 2024 at 1:49am

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://b2bkingplugin.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

1

Sign In