Log in
Model

Compared

Magento\Reports\Model\Product\Index\Compared

What it does

This model manages the product comparison index in Magento's Reports module, tracking which products customers have compared.

Developers use this class to store and retrieve data about compared products, particularly when displaying 'Recently Compared Products' widgets or when needing to exclude already-compared products from product lists.

Public Methods

  • getExcludeProductIds()