Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Save carts with persistent data but no line items.
issue: NEXT-15857
author: Andreas Allacher
author_email: [email protected]
author_github: @AndreasA
---
- Changed method
save
inShopware\Core\Checkout\Cart\CartPersister
to dispatch an event before the cart is saved to determinate, if the cart has to be saved. - Added new event
Shopware\Core\Checkout\Cart\Event\CartVerifyPersistEvent
to be fired before the cart is saved. This event determines, if a cart has to be saved. Furthermore, it allows modifications to the cart just before it is saved, e.g. remove unnecessary extensions.