Log in
Model

Crosssell

Magento\Catalog\Model\ProductLink\CollectionProvider\Crosssell

What it does

This class retrieves cross-sell products for a given product in Magento 2.

Developers use this when they need to get products that should be displayed as cross-sell recommendations, typically shown in the shopping cart to encourage additional purchases.

It implements the CollectionProviderInterface to provide a standardized way to fetch cross-sell product collections.

Public Methods

  • getLinkedProducts()