ProductRenderInterface
Magento\Catalog\Api\Data\ProductRenderInterface
What it does
This interface defines a data contract for rendering product information on the frontend.
Developers use this to retrieve all necessary product data (prices, images, buttons, stock status) in a structured format optimized for display purposes, particularly useful for API responses, AJAX requests, or custom product listing implementations.
It consolidates rendering-specific data rather than full product entities, improving performance for frontend displays.
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()