Public Ticket #3957879

cart of agent

Closed
Comments
53 Tickets 14
mariateresa started the conversation 1 year ago on April 15, 2025 at 2:28pm

Hi, I have a problem.

1. I enter like agent

2. I pass as client

3. I create a cart, but not make order

4. I pass to agent and change client

5. when I enter to the fist client the cart is delated

Will it possible save the cart?

2,762
KingsPlugins replied 1 year ago on April 15, 2025 at 8:55pm

Hi Mariateresa,

By default, the cart is cleared when switching between users.

To keep the cart contents when switching between users, please add this code snippet to your theme's functions.php file or using a code snippets plugin:

add_filter('salesking_empty_cart_on_switch','__return_false');

 

Let me know if you run into any issues!

Kind regards,
Stefan

Sign In