WooCommerce Cart Preservation: Keep Customer Carts Intact
Why It’s Important
Normally, when an admin logs in as a customer, WooCommerce clears the customer’s cart. This can be frustrating if the customer already added products and is asking for help with checkout.
With Cart Preservation, the customer’s cart stays exactly as it is — no items are lost.
✔️ Support customers without emptying their cart
✔️ Test checkout issues with real customer data
✔️ Debug problems without disrupting the shopping session
How to Enable
- Go to Settings → Login as User
- In General Settings, check “Do not clear/forget carts during Login as User flows”
- Click Save Settings
What Happens Next
- ✅ Customer carts remain intact while you’re logged in as them
- ✅ Each user keeps their own cart contents
- ✅ Cart backup and restore run automatically as extra protection
- ✅ Works with WooCommerce’s built-in persistent cart
Example
Without Cart Preservation
- You log in as a customer → Cart is cleared → Customer loses items
- Customer must re-add products → Bad experience
With Cart Preservation
- You log in as a customer → Cart with 5 items stays intact
- You test checkout with the same cart → Problem is fixed
- You log out → Customer’s cart is unchanged
Good to Know
- Enable on live stores to protect customer carts
- You can disable it on test sites if you prefer a fresh cart each time
- Performance impact is minimal, even with large carts
👉 This feature makes Login as User for WordPress a safer, friendlier tool for both admins and customers.