Log in
Interface

PriceModifierInterface

Magento\Catalog\Model\Product\PriceModifierInterface

What it does

This interface defines a contract for classes that need to modify product prices in Magento 2.

Developers implement this interface when creating custom price modifiers, such as applying discounts, tax adjustments, or custom pricing rules based on product attributes or customer conditions.

It's commonly used in plugin architecture or dependency injection to extend price calculation logic without modifying core code.

Public Methods

  • modifyPrice()