Rules Reference
List of all rule classes across Shopware 6.

Checkout

Class
Description
Matches a specific number to the carts total price.
Matches if the cart has a free delivery item.
Matches a specific number to the current cart's total weight.
Matches a number to the current cart's line item goods count.
Matches a specific number to the carts goods price.
Matches a specific line item which is on clearance sale
Matches if a line item has a specific creation date.
Matches if a line item has a specific custom field.
Matches a specific line item's height.
Matches a specific line item's length.
Matches a specific line item's weight.
Matches a specific line item's width.
Matches if a line item has a specific group.
Matches if a line item is in a specific category.
Matches if a line item is marked as new.
Matches a specific line item has a specific list price.
Matches a specific line item has a specific manufacturer.
Matches a specific type name to the line item's type.

Framework

Class
Description
Composition of rules. Matches if all match.
Composition of rules. Matches if at least one rule matches.
Composition of rules. Matches if exactly one matches.
Match a fixed date range to now.
Match a specific sales channel to the current context.
Matches a fixed time range to now.
Matches a fixed day of the week to now.

System

Class
Description
Match a specific currency to the current context.
Copy link
Edit on GitHub