Model
ProductRender
Magento\Catalog\Model\ProductRender
What it does
This class serves as a Data Transfer Object (DTO) that encapsulates all the information needed to render a product on the frontend, including buttons (add to cart, compare), pricing details, images, and basic product attributes.
Developers use this when implementing custom product listing or detail pages, particularly when working with Magento's product rendering API to retrieve pre-formatted product data for display.
Public Methods
- getAddToCartButton()
- setAddToCartButton()
- getAddToCompareButton()
- setAddToCompareButton()
- getPriceInfo()
- setPriceInfo()
- getImages()
- setImages()
- getUrl()
- setUrl()
- getId()
- setId()
- getName()
- setName()
- setType()
- getType()
- getIsSalable()
- setIsSalable()
- setStoreId()
- getStoreId()
- getCurrencyCode()
- setCurrencyCode()
- getExtensionAttributes()
- setExtensionAttributes()