Log in
Interface

ProductRenderInterface

Magento\Catalog\Api\Data\ProductRenderInterface

What it does

This interface defines a Data Transfer Object (DTO) for product rendering information needed on the frontend.

Developers use this to retrieve all essential product display data in a single object, including images, prices, buttons (Add to Cart/Compare), URLs, and product metadata.

It's primarily used in API responses and frontend rendering contexts to efficiently transfer product information without loading the full product model.

Public Methods

  • getAddToCartButton()
  • setAddToCartButton()
  • getAddToCompareButton()
  • setAddToCompareButton()
  • getPriceInfo()
  • setPriceInfo()
  • getImages()
  • setImages()
  • getUrl()
  • setUrl()
  • getId()
  • setId()
  • getName()
  • setName()
  • getType()
  • setType()
  • getIsSalable()
  • setIsSalable()
  • getStoreId()
  • setStoreId()
  • getCurrencyCode()
  • setCurrencyCode()
  • getExtensionAttributes()
  • setExtensionAttributes()