Model
ProductReader
Magento\Quote\Model\Cart\ProductReader
What it does
This class efficiently loads and retrieves multiple products by their SKUs for cart operations in Magento 2.
Developers use this when they need to fetch product data for cart items in bulk, avoiding N+1 query problems by loading all required products in a single collection with necessary attributes, status, visibility, and options already joined.
Public Methods
- loadProducts()
- getProductBySku()