ProductReader
Magento\Quote\Model\Cart\ProductReader
What it does
This class is responsible for efficiently loading and retrieving product data for cart operations in Magento 2.
It loads multiple products by their SKUs in a single operation with all necessary attributes for quote/cart processing, then provides quick access to individual products.
Developers use this when they need to fetch product information for cart items while ensuring proper store context and including only active, visible products.
Public Methods
- loadProducts()
- getProductBySku()