Model

ItemCarrier

Magento\Wishlist\Model\ItemCarrier

What it does

This class handles moving wishlist items to the shopping cart in bulk.

Developers use this when implementing the 'Add all to cart' functionality from a wishlist, handling quantity processing, error messages, and redirects.

It manages both owned wishlists and shared wishlists, processing each item and providing appropriate user feedback.

Public Methods

  • moveAllToCart()