Log in

Rule Module

AbstractModel

Model

AbstractModel serves as the base class for all rule-based functionality in Magento 2 (shopping cart price rules, catalog price rules, etc.). Developer...

Action\AbstractAction

Model

This abstract class serves as the base for all rule actions in Magento 2's rule engine system. Developers extend this class when creating custom actio...

Condition\AbstractCondition

Model

This abstract class provides the foundation for creating rule conditions in Magento 2's rule engine, used in shopping cart price rules, catalog price...

Condition\Combine

Model

This class manages combinations of multiple rule conditions in Magento 2's rule system, allowing conditions to be grouped with 'ALL' or 'ANY' logic op...

Condition\Context

Model

This is a deprecated context class that bundles common dependencies (asset repository, timezone, layout, condition factory, and logger) for Rule condi...

Condition\Product\AbstractProduct

Model

This abstract class serves as the foundation for product-related conditions in Magento 2 promotional rules (cart price rules, catalog price rules). De...

Condition\Sql\Builder

Model

This class converts Magento rule conditions into SQL WHERE clauses and applies them to product collections. Developers use it when implementing custom...

Condition\Sql\Expression

Model

This class represents a SQL expression wrapper used in Magento's rule conditions system. It extends Zend_Db_Expr to automatically wrap SQL expressions...

Model\ActionFactory

Factory

This factory class creates instances of rule action objects in Magento 2's rule engine. Developers use this when building conditional business logic l...

Model\Action\ActionInterface

Interface

This is a marker interface used to identify classes that represent actions in Magento's rule engine system. Developers implement this interface when c...

Model\Action\Collection

Collection

This class manages a collection of rule actions in Magento 2's promotion and pricing rule system. Developers use it to group multiple actions together...

Model\ConditionFactory

Factory

This factory creates condition model instances for Magento's rule engine. It caches created condition objects and returns clones for performance optim...

Model\Condition\ConditionInterface

Interface

This interface defines the contract for rule conditions that need to interact with database queries in Magento 2. Developers implement this interface...

Renderer\Actions

Model

This renderer class generates HTML output for rule actions in the Magento admin form interface. Developers use this when building admin forms that nee...

Renderer\Conditions

Model

This renderer class is used to display rule conditions in the Magento admin panel as HTML. It retrieves conditions from a rule object and recursively...

ResourceModel\AbstractResource

Model

This abstract resource model provides base functionality for managing rule entities and their associations with other entities (websites, customer gro...