---
title: 'No Code: Rule Builder | Shopware Community Hub'
description: >-
  Learn about Shopware’s Rule Builder as a powerful no-code tool for creating
  dynamic business rules, automating complex logic, and implementing flexible…
canonical_url: 'https://hub.shopware.com/learn/unit/solutions-architect-no-code-rule-builder'
---

# No Code: Rule Builder

<LearningObjectives>

- What the **Rule Builder** is designed for.
- The **functionality** the Rule Builder offers.
- The extent to which you can **customize** it.
- **Practical scenarios** where Rule Builder can be applied.

</LearningObjectives>

# Introduction to Rule Builder

Rule Builder is a powerful no-code tool built into Shopware,
enabling businesses to create and manage dynamic business rules without the need for coding.
From a Solutions Architect's perspective, Rule Builder is key to automating complex business logic,
such as pricing, shipping, and personalized experiences, making it an integral part of customizing Shopware for both B2B and B2C scenarios.

<img src="../../assets/images/rule-builder-overview.png" width="550">

## What Is The Purpose of Rule Builder?

Rule Builder is built to automate custom business logic by allowing users to define conditions (triggers) and assigning the rules to one or more rule types.
This capability is useful for scenarios like dynamic pricing, customized shipping options, and targeted promotions.

### Key Use Cases

- Dynamic pricing based on customer segments and cart size.
- Personalized shipping options based on shipping destination.
- Product visibility based on customer segmentation.
- Bannering and other page content based on purchase history.

## Functionalities of Rule Builder

Rule Builder enables you to combine different **conditions** to define how your Shopware shop should behave. It allows admin users to create automated rules that influence business logic and shopping experience based on various factors.

### Conditions

<img src="../../assets/images/rule-builder-conditions.png" width="550">

An evaluation of property against its value. These properties can be but are not limited to:

- current Sales Channel
- date
- language
- Customer Entity
    - billing address
    - shipping address
    - customer group
    - is Logged In
- Shopping cart
    - item sku
    - item quantity
    - item category
    - cart total
- Promotions
    - active promotion
    - discount total
- Ordering history
    - totals
    - items ordered
    - payment status
- Subscription
    - status
    - items

### Condition Stacking

Create advanced rules by combining multiple conditions with `AND` and `OR` conditions.

### Assignment

Assign rules to various Rule Types. These dictate where rules can be used to make rules more manageable. Rules can be assigned to:

- Product Pricing
- Shipping Method Availability
- Shipping Method Pricing
- Tax Providers
- Payment Methods
- Promotions on Orders, Customers, Carts, Products
- Flowbuilder
- CMS visibility
- Dynamic Access for Products, Categories, and Landing pages

### Priority

By prioritizing certain rules over others, the admin user can influence order of execution and the eventual outcome. This can be especially important for discount rules.

## Customization of Rule Builder

Rule Builder is highly flexible, enabling customization through predefined settings or by extending its functionalities with custom code.
Developers can create custom rule conditions using Shopware's extension systems, allowing for even more specific logic beyond the predefined options.

- [Adding custom rule conditions in plugins](https://developer.shopware.com/docs/guides/plugins/plugins/framework/rule/add-custom-rules.html)
- [Adding custom rule conditions in apps](https://developer.shopware.com/docs/v6.5/guides/plugins/apps/rule-builder/add-custom-rule-conditions.html)

## Practical Scenarios for Rule Builder

Here are some practical applications of Rule Builder that can be implemented across various business scenarios:

### 1. Date-Sensitive Promotions

- **Scenario**: A shop wants to offer time-limited discounts during a holiday sale.
- **How Rule Builder Helps**: Set up rules that apply discounts for purchases made within a specific date range. When the promotional period ends, the pricing automatically reverts to normal.

### 2. Customer Group Pricing

- **Scenario**: A shop wants to offer different pricing for retail customers versus wholesale clients.
- **How Rule Builder Helps**: Use the Rule Builder to define different pricing structures based on customer groups. You can easily create rules that apply discounts or promotional pricing for specific customer segments.

### 3. Advanced Pricing

A very common and extensive scenario for Rule Builder is Advanced pricing. This allows merchants to define **price rules** that automatically adjust product prices based on conditions like quantity, customer group, or promotional offers. As a Solutions Architect, Rule Builder provides an effective way to apply pricing strategies dynamically across different customer groups and products.

#### How Advanced Pricing Works

1. When editing a product, open the **Advanced Pricing** tab.
2. Create a new **Advanced Price** by selecting a **Rule** -- This rule dictates when the pricing applies.
3. Set **tier quantities**, or leave these empty, and set pricing per currency.

#### Advanced Pricing Scenarios

- **Price per Quantity**: You can define different prices for varying purchase quantities. For example, the more units a customer buys, the lower the price they pay per unit. This is commonly used in B2B scenarios where bulk purchasing is encouraged.
- **Customer-Specific Pricing**: Rule Builder allows you to apply different pricing for customer groups, such as offering discounted rates for VIP customers or wholesale clients. The conditions can be set up based on customer segments or loyalty tiers.
- **Date-based Pricing**: You can set time-sensitive promotions or flash sales by defining rules that adjust prices for a specific time period.

## Plan-Specific Features for Rule Builder

Different Shopware plans provide varying levels of access to Rule Builder features:

- **Shopware Community Edition**: Offers basic Rule Builder functionality for dynamic pricing, shipping, and other key rules.
- **Shopware Rise**: Includes Rule Preview, which allows merchants to preview rule effects before activating them.
- **Shopware Evolve**: Adds CMS integration for content personalization based on rules, allowing for highly targeted content delivery.

## Conclusion

Rule Builder is a key no-code tool in the Shopware ecosystem that empowers businesses to automate complex business logic like pricing, shipping, and promotions. From setting up customer-specific pricing to managing advanced rules based on purchase behavior, Rule Builder provides flexibility without the need for custom development.

As a Solutions Architect, understanding how to leverage Rule Builder for advanced scenarios such as dynamic pricing and personalized experiences will help you deliver tailored solutions that meet your clients' needs while maintaining scalability and ease of use.  

More information in this article: [Rule Builder](https://docs.shopware.com/en/shopware-6-en/settings/rules).
