Model
RelatedProducts
Magento\Quote\Model\Quote\Item\RelatedProducts
What it does
This class identifies and retrieves product IDs that have special relationships with items currently in the shopping cart.
Developers use this when they need to find related products (like parent products of configurable items or grouped product parents) that are associated with quote items, which is useful for product recommendations, pricing calculations, or inventory checks.
Public Methods
- getRelatedProductIds()