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 special discounts, tax adjustments, or promotional pricing rules.

It's commonly used in plugins or custom modules that need to alter product prices based on specific business logic before displaying them to customers.

Public Methods

  • modifyPrice()