Log in
Interface

ProductFrontendActionInterface

Magento\Catalog\Api\Data\ProductFrontendActionInterface

What it does

This interface defines the data contract for tracking customer and visitor interactions with products on the storefront, such as product views, comparisons, or recently viewed items.

Developers use this interface when implementing features that need to record, retrieve, or analyze customer product engagement activities.

It provides standardized getter and setter methods for action details including user identification, product ID, action type, and timestamp.

Public Methods

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