---
title: Rule builder | Shopware Community Hub
description: >-
  This unit will guide you through setting up and managing rules that customize
  pricing, promotions, shipping, and other conditions based on customer
  behavior,…
canonical_url: 'https://hub.shopware.com/learn/unit/user-rule-builder'
---

# Rule builder

<LearningObjectives>

- Understand the purpose and capabilities of Shopware’s Rule Builder.
- Learn to create conditional rules without coding for pricing, shipping, and promotions.
- Set up and apply rules based on order value, customer groups, and payment methods.
- Automate free shipping eligibility using cart total conditions.
- Explore real-world scenarios like VIP discounts and cart-based offers.
- Gain hands-on experience assigning rules to shipping methods and validating their behavior.
- Enhance personalization and efficiency in your eCommerce operations through conditional automation.

</LearningObjectives>

# Rule builder

<YoutubeEmbed link="https://www.youtube.com/watch?v=XTstKjQPGAo" />

Imagine you run an online guitar store, **Strum & Co.**. You want to offer exclusive discounts to loyal customers while offering free shipping for orders above a specific value. Without a structured way to manage these rules, it's hard to implement targeted promotions effectively.

That's where **Rule Builder** comes in!

## What is Rule Builder?

The **Rule Builder** in Shopware allows you to create flexible conditions that dynamically influence pricing, shipping, promotions, and other store elements.

### Key Benefits

- Define complex conditions without coding
- Create personalized customer experiences
- Automate pricing, shipping, and discounts based on various factors

## Scenario: Setting up a free shipping rule

Your store offers free shipping on orders over **$100**. Let's create a rule to enable this.

<ShopdevInstance plugin="lp15" step="DoNotDisplay" plan="rise" />

### Step 1: Access the Rule Builder

1. Navigate to **Settings** -> **Rule Builder** in the Shopware admin panel.
2. Click **Create Rule**.

![Rule builder](./assets/rule_builder_overview.jpg)

### Step 2: Define the Free Shipping Rule

1. **Enter a Rule Name**: "Apply shipping costs
2. **Set Priority**: Assign a priority (e.g., `10` for high priority).
3. **Select Condition**:
   - Click **Add Condition**
   - Choose **Total**
   - Operator: **is less than**
   - Vale: **100**
4. **Save the Rule**

![Rule builder](./assets/shipping_rule.jpg)

### Step 3: Assign the rule to a shipping method

1. Navigate to **Settings** -> **Shipping**.
2. Select your preferred shipping method (e.g., **Express Shipping**).
3. In the **Availability Rule** dropdown, select "Apply shipping costs".
4. Add the price matrix and choose the defined rule.
5. Save and refresh in the storefront.

![Rule assignment](./assets/shipping_rule_assignment.jpg)

## Test your Rule

<ArticleQuestionnaire>
  <ArticleQuestionnaireQuestion>If a customer's cart total is $40, will they get free shipping?</ArticleQuestionnaireQuestion>
  <ArticleQuestionnaireAnswer correct>No</ArticleQuestionnaireAnswer>
  <ArticleQuestionnaireAnswer>Yes</ArticleQuestionnaireAnswer>
</ArticleQuestionnaire>

![Rule builder](./assets/shipping_price.jpg)

<ArticleQuestionnaire>
  <ArticleQuestionnaireQuestion> If a customer's cart total is $120, will they get free shipping?</ArticleQuestionnaireQuestion>
  <ArticleQuestionnaireAnswer>No</ArticleQuestionnaireAnswer>
  <ArticleQuestionnaireAnswer correct>Yes</ArticleQuestionnaireAnswer>
</ArticleQuestionnaire>

![Rule builder](./assets/shipping_free.jpg)

## Exploring more rule builder possibilities

Beyond free shipping, you can use Rule Builder for:

- **Customer Groups**: Apply exclusive discounts for premium guitarists.
- **Payment Methods**: Restrict specific payment options based on order value.
- **Cart Conditions**: Offer bulk discounts for customers buying multiple accessories.

## Activity: VIP Customer Discount

1. **Create a new rule**: "VIP Customer Discount"
2. **Set Condition**: Customer is in the group "VIP."
3. **Apply to Pricing**: Assign a 15% discount for VIP customers

### Final thoughts

With Rule Builder, you can effortlessly automate pricing, discounts, and promotions, making your store more dynamic and customer-friendly.

Ready to explore further? For advanced rule configurations, check out [Shopware's documentation](https://docs.shopware.com/en/shopware-6-en/settings/rules).
