The Rule Builder in Shopware 6 is a powerful tool that enables merchants to customize the behavior and functionality of their online store based on specific conditions. With the Rule Builder, you can create rules for pricing, promotions, discounts, shipping, tax calculations, and much more. To create a rule builder in shopware 6. Please follow the below instruction.
Step 1: Login to the admin panel and go to Settings > Shop > Rule Builder.
Step 2: Click the “Create rule” button to create new rules.
Available columns on the Rule builder.
- Rule:- The name stored for the rule is utilized in the administration for assigning the rule to other modules.
- Priority:- The priority determines whether a rule is applied before another rule, if applicable. A higher priority value indicates that the rule is executed earlier.
- Description:- Displays the (optional) description of the rule, which may provide additional information about the use case.
- Updated at:- The rule was last updated on this date.
- Creation date:- The rule was created on this date.
- Status:- Indicates whether the rule is valid. Only valid rules can be used. Rules created through the administration are checked for validity, and they can only be saved if all mandatory fields are filled with valid values.
Step 3: To create a new rule builder, fill in the required fields.
General
- Name:- Set a name for this rule.
- Priority:- Set a priority for this rule.
- Description:- Enter the description for this rule.
- Type:- Choose the type of the rule. Ex:- Shipping, Payment, Price, and Flow Builder.
- Tags:- Enter a tag for this rule.
Conditions
Component | Description | Example |
Condition (1) | Your query is determined by the condition you specify. | Grand total: This condition verifies whether the total sum of the shopping cart satisfies specific requirements. |
Operator (2) | Based on the condition, various operators can be utilized to compare it with the input value. | Greater than: The condition evaluates as true when the value of the cart exceeds the input value. |
Input value (3) | The operator is used to compare the input value with the condition. | 30: The condition is met if the value of the cart exceeds 30 €. |
OR connection (4) | If multiple conditions are connected using “OR”, only one of the conditions needs to be satisfied for the rule to be applicable. | The designated customer group is referred to as the “Standard customer group.” OR The payment method is “Invoice”. |
AND connection (5) | If multiple conditions are connected using “AND”, all of the conditions need to be fulfilled for the rule to be applicable. | The designated customer group is referred to as the “Standard customer group.” AND The payment method is “Invoice”. |
Subcondition (6) | When you switch between “AND” and “OR” connections, sub-conditions are automatically created. In a rule with one main condition and two sub-conditions, the rule is considered true if at least two out of the total three conditions are met. Specifically, Condition 1 must be fulfilled, and either Condition 2 or Condition 3 must be fulfilled. | The rule applies if the cart value is greater than 30 € AND The designated customer group is referred to as the “Standard customer group.” OR the payment method used is “Invoice”. |
Step 4: After filling out the fields, click on the Save button to save the rule.
You can assign this rule to Flow builder, Promotion, Shopping Experience, Shipping methods, and Payment method.
Please contact us at manish@bay20.com or call us at +91-8800519180 for any support related to shopware. You can also visit the Shopware 6 development page to check the services we offer.