Log in

CatalogRule Module

Api\CatalogRuleRepositoryInterface

Repository

This interface defines the contract for managing catalog price rules in Magento 2. Developers use this repository to programmatically create, retrieve...

Api\Data\ConditionInterface

Interface

This interface defines the data structure for catalog rule conditions in Magento 2. Developers use it when creating or manipulating catalog price rule...

Api\Data\RuleInterface

Interface

This interface defines the data structure for catalog price rules in Magento 2. Developers use it when working with catalog rule objects through the A...

CatalogRuleRepository

Model

This repository class manages CRUD operations for catalog price rules in Magento 2. Developers use it to programmatically create, retrieve, update, an...

Data

Helper

This helper class calculates catalog rule prices based on different discount types. Developers use it to apply various pricing rules like fixed discou...

Data\Condition

Model

This class represents a data model for catalog rule conditions in Magento 2. Developers use it to define and structure rule conditions through the API...

Data\Condition\Converter

Model

This class converts catalog rule conditions between data model objects and array representations. Developers use it when working with the Catalog Rule...

Flag

Model

This flag model tracks whether catalog price rules have been modified but not yet applied to products. When set to 'dirty', it indicates that rule cha...

Indexer\AbstractIndexer

Model

This abstract base class provides the foundation for catalog rule indexers in Magento 2. Developers extend this class when creating custom catalog rul...

Indexer\IndexBuilder

Model

IndexBuilder is responsible for rebuilding the catalog price rule index in Magento 2. Developers use this class to reindex catalog rules either for sp...

Indexer\IndexBuilder\ProductLoader

Model

This class loads product objects by their IDs for catalog rule indexing operations. Developers use it when they need to retrieve multiple products eff...

Indexer\IndexerTableSwapper

Model

This class manages temporary table creation and swapping for catalog rule indexing operations. Developers use it to safely rebuild catalog rule indexe...

Indexer\ProductPriceCalculator

Model

This class calculates product prices based on catalog price rule actions during indexing. Developers use it when building or extending catalog rule fu...

Indexer\ProductPriceIndexModifier

Model

This class modifies product prices in Magento's price index by applying catalog rule discounts. Developers use this during price indexing to automatic...

Indexer\Product\ProductRuleIndexer

Model

This indexer rebuilds catalog price rules for specific products or product lists. Developers use this when they need to manually trigger reindexing of...

Indexer\Product\ProductRuleProcessor

Model

This class manages the catalog rule product indexer, which updates the index that determines which catalog price rules apply to which products. Develo...

Indexer\ReindexRuleGroupWebsite

Model

This class reindexes the relationships between catalog price rules, customer groups, and websites. Developers use this during catalog rule indexing to...

Indexer\ReindexRuleProduct

Model

This class handles the reindexing of catalog price rule relationships with products in Magento 2. Developers use this when catalog price rules need to...

Indexer\ReindexRuleProductPrice

Model

This class handles reindexing of catalog rule prices for products across all websites. Developers use this when catalog price rules need to be applied...

Indexer\ReindexRuleProductsPrice

Model

This class handles reindexing of product prices based on catalog price rules. Developers use this when they need to update product prices after catalo...

Indexer\ReindexRuleProductsPriceProcessor

Model

This processor calculates and applies catalog price rule discounts for products across different dates, customer groups, and websites. Developers inte...

Indexer\RuleProductPricesPersistor

Model

This class persists catalog rule pricing data to the index table in Magento 2. Developers use this when applying catalog price rules to products, as i...

Indexer\RuleProductsSelectBuilder

Model

This class builds database SELECT queries for the catalog rule product indexer. Developers use it when reindexing catalog price rules to efficiently f...

Indexer\Rule\GetAffectedProductIds

Model

This class retrieves all product IDs that are affected by specific catalog price rules. Developers use it when they need to identify which products ne...

Indexer\Rule\RuleProductIndexer

Model

This indexer updates product prices when catalog price rules are modified. It identifies which products are affected by rule changes and triggers a re...

Indexer\Rule\RuleProductProcessor

Model

This processor handles reindexing when catalog price rules are created or modified. When a rule changes, it identifies all affected products and trigg...

Model\Indexer\IndexerTableSwapperInterface

Interface

This interface defines the contract for managing temporary working tables during catalog rule index rebuilding. Developers use this to safely build ne...

Model\ResourceModel\Grid\Collection

Collection

This collection class is specifically designed for catalog rule grid displays in the Magento admin panel. It extends the base catalog rule collection...

Model\ResourceModel\Rule\Collection

Collection

This collection class manages and retrieves catalog price rules in Magento 2. Developers use it to load, filter, and manipulate sets of catalog rules,...

Model\Rule\Action\Collection

Collection

This class manages collections of actions for catalog price rules in Magento 2. It defines available actions that can be applied when a catalog rule i...

Product\PriceModifier

Model

This class applies catalog price rules to product prices in Magento 2. Developers use this when they need to calculate the final price of a product af...

ResourceModel\Product\CollectionProcessor

Model

This class adds catalog rule pricing data to product collections by joining the catalogrule_product_price table. Developers use this when they need to...

ResourceModel\Product\ConditionsToCollectionApplier

Model

This class applies catalog price rule conditions as filters to product collections. Developers use it when they need to filter products based on catal...

ResourceModel\Product\LinkedProductSelectBuilderByCatalogRulePrice

Model

This class builds database queries to find the child product with the lowest catalog rule price for a given parent product. Developers use this when d...

ResourceModel\ReadHandler

Model

This class handles reading catalog rule entity data from the database by populating customer group IDs and website IDs into the rule entity. Developer...

ResourceModel\Rule

Model

This resource model manages database operations for catalog price rules in Magento 2. Developers use it to retrieve rule prices for products based on...

ResourceModel\SaveHandler

Model

This class handles saving catalog rule associations when a catalog rule entity is saved. It persists the relationships between catalog rules and their...

Rule

Model

This class represents a catalog price rule in Magento 2, allowing merchants to apply discounts to products based on conditions like customer groups, d...

Rule\Action\Product

Model

This class defines the action configuration for catalog price rules in Magento 2. It specifies how product prices can be modified (to fixed value, to...

Rule\Action\SimpleActionOptionsProvider

Model

This class provides the available discount action options for catalog price rules in Magento 2. Developers use this when building admin interfaces or...

Rule\Condition\Combine

Model

This class manages the combination and grouping of conditions for catalog price rules in Magento 2. Developers use it when creating promotional rules...

Rule\Condition\ConditionsToSearchCriteriaMapper

Model

This class converts catalog price rule conditions (like product attribute filters and combination conditions) into SearchCriteria objects that can be...

Rule\Condition\MappableConditionsProcessor

Model

This class processes catalog price rule conditions to filter out only those conditions that can be mapped to database search criteria. Developers use...

Rule\Condition\Product

Model

This class validates product attributes against catalog rule conditions in Magento 2. Developers use this when creating or evaluating catalog price ru...

Rule\CustomerGroupsOptionsProvider

Model

This class provides a list of customer groups as options for catalog price rules. Developers use it to populate dropdown menus in the admin panel wher...

Rule\DataProvider

Model

This DataProvider class supplies catalog rule data to the admin UI form components. Developers use this class to load and prepare catalog rule informa...

Rule\Job

Model

This class serves as a job handler for applying catalog price rules in Magento 2. Developers use this when they need to trigger a full reindex of cata...

Rule\Product\Price

Model

This model manages catalog rule prices that are aggregated and stored per date, customer group, and website. Developers use this class when they need...

Rule\WebsitesOptionsProvider

Model

This class provides a list of available websites as options for catalog price rules in the admin panel. Developers use this when they need to populate...