Log in
Model

LinkedProductSelectBuilderBySpecialPrice

Magento\Catalog\Model\ResourceModel\Product\LinkedProductSelectBuilderBySpecialPrice

What it does

This class builds database select queries to retrieve linked child products that have active special prices within the current date range.

Developers use this when displaying related products sorted by special price, such as in product recommendations or 'related items on sale' features.

It handles both store-specific and global price scopes, ensuring the correct special price is used based on the store configuration.

Public Methods

  • build()