Metadata
Both Cart and CartItem have a metadata field that you can use to store custom data.
Metadata is often used to save user specific state in the cart for UI, checkout options, customer ID, or marketing preferences.
Metadata can be set when:
- Updating the cart
- Adding cart items
- Updating cart items
- Setting all cart items