Log in
Model

CartItemPersister

Magento\Quote\Model\Quote\Item\CartItemPersister

What it does

CartItemPersister handles saving and updating items in a shopping cart (quote).

Developers use this class when they need to add new products to a cart or modify existing cart items, such as updating quantities or product options.

It manages validation, product retrieval, and ensures cart items are properly persisted with their options and configurations.

Public Methods

  • save()