Log in
Model

ProductFrontendAction

Magento\Catalog\Model\ProductFrontendAction

What it does

This class represents a model for tracking frontend user actions on products in Magento 2, such as product views or interactions.

Developers use this to record and retrieve data about which products visitors or customers interacted with, including timestamps and action types.

It's commonly used for analytics, recently viewed products, or personalization features.

Public Methods

  • getActionId()
  • setActionId()
  • getVisitorId()
  • setVisitorId()
  • getCustomerId()
  • setCustomerId()
  • getProductId()
  • setProductId()
  • getAddedAt()
  • setAddedAt()
  • getTypeId()
  • setTypeId()