In woocommerce there no such feature. Still you can follow this
Fix cookie with a unique id, when a user add something to cart
Make db table with cookie_cart_id and items, and update this table when user change items in cart.
After that when user create order - delete cookie