how to keep woocommerce cart

Can you provide some more information please?

Thread Starter
ovedmo

(@ovedmo)

when i switch o customer i want to keep the cart as is and assign it to the customer.

for example, the main admin/user added items to cart and when switching to customer i want the cart to be the same as the main admin/user!

Thanks. That’s how User Switching used to work with WooCommerce, but I changed it many years ago because 99% of the time that’s unexpected behaviour. Most of the time when you switch into a customer account you don’t want to affect their shopping cart.

Your best approach here is to switch to the customer before adding items to the cart. Then, the items will be correctly added to the customer’s cart too and remain there for the customer to use.

Cheers!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer