Log in
Interface

MsrpPriceInfoInterface

Magento\Msrp\Api\Data\ProductRender\MsrpPriceInfoInterface

What it does

This interface defines the contract for retrieving and setting MSRP (Manufacturer's Suggested Retail Price) information for product rendering in Magento 2.

Developers use this when displaying product prices on the frontend to show the MSRP value, control whether prices are revealed on user gesture (click), and customize MSRP-related messages.

It's particularly useful for stores that need to comply with MAP (Minimum Advertised Price) policies.

Public Methods

  • setMsrpPrice()
  • getMsrpPrice()
  • setIsApplicable()
  • getIsApplicable()
  • setIsShownPriceOnGesture()
  • getIsShownPriceOnGesture()
  • setMsrpMessage()
  • getMsrpMessage()
  • setExplanationMessage()
  • getExplanationMessage()
  • getExtensionAttributes()
  • setExtensionAttributes()