Log in
Model

Viewed

Magento\Reports\Model\Product\Index\Viewed

What it does

This model tracks and manages the recently viewed products index in Magento's reporting system.

Developers use this class to record when customers view products and retrieve lists of viewed products, excluding the current product being viewed.

It's commonly used in widgets and blocks that display 'Recently Viewed Products' on product pages and throughout the store.

Public Methods

  • getExcludeProductIds()