Log in
Model

Selection

Magento\Bundle\Model\Selection

What it does

This model represents a product selection within a bundle option in Magento 2.

Developers use it when working with bundle products to manage which individual products are included as options, including their pricing, quantity, position, and default selection status.

It handles website-specific pricing by temporarily storing and restoring price values during save operations when prices are not set globally.

Public Methods

  • beforeSave()
  • afterSave()