Log in
Model

Composite

Magento\Catalog\Model\Product\PriceModifier\Composite

What it does

This class implements the Composite design pattern to allow multiple price modifiers to be applied sequentially to a product's price.

Developers use this when they need to extend or customize product pricing by adding their own price modification logic through dependency injection, without modifying core Magento code.

Each registered modifier is executed in order, passing the modified price to the next modifier in the chain.

Public Methods

  • modifyPrice()