Zum Inhalt springen
Termin buchen
Shopware 6 Manual

Customer-dependent article price groups

One customer, one special price, but only for selected parts of your range: you set the price group per category on the customer record. No extra customer groups needed.

Version 6.7.2 Compatible with 6.7.0 and newer 20 min read
On this page

Introduction

Customer-dependent article price groups lets you give individual customers their own price for selected parts of your range — without moving them into a second customer group and without importing price lists every day.

The classic B2B situation: a customer generally buys at their usual price level. For the products of one particular manufacturer or product area, however, you have agreed on a different price level. That is exactly what this plugin covers. You record “for this category, price group VK2 applies” on the customer, and across all products in that category the customer automatically sees the price you defined for VK2.

What you achieve with this plugin

  • Give a customer a different price level for individual categories while they stay in their usual customer group.
  • Create as many price levels as you need — for example VK2, VK3, project price, annual agreement.
  • Assign several categories to one customer, each with its own price group.
  • The special price applies wherever the customer sees a price: on the product page, in the cart and at checkout.
  • Visitors who are not logged in always see your regular sales price, so your negotiated conditions never become public.
  • Decide per sales channel whether this pricing logic should apply there at all.

Who is this plugin for?

Shops with grown price agreements — wholesale, B2B, specialist trade, dealer support. Anywhere prices are not defined per customer alone or per product alone, but by the combination of customer and product area.

Installation

After your purchase the plugin is available directly in your administration — there is nothing to download.

  1. Log in to your Shopware administration (YourShop.com/admin)
  2. Open Extensions → My extensions
  3. Click Install next to Customer-dependent article price groups
  4. Then activate the plugin using the switch to the left of the entry

Customer-dependent article price groups in My extensions, installed and activated Fig. 1: The activated plugin in the “My extensions” overview

A blue switch means the plugin is active. On the right you will find the Configure link, which takes you to the settings at any time.

During installation the plugin creates a tag named Preisbildend. You need this tag in step How to release categories for price calculation to define which categories are eligible for customer-dependent pricing at all.

If Customer-dependent article price groups does not appear in the list, your Shopware account is not yet connected to the shop. You can do this under Extensions → My extensions in the Shopware Account tab.

Getting started

Five building blocks work together to make a customer see their special price. When setting things up for the first time, follow this order — each step builds on the previous one:

  1. Create a price group — your price level gets a name, for example “VK2”. Under Products → Customer-dependent article price groups
  2. Release categories — use the Preisbildend tag to mark which categories this pricing logic applies to. Under Products → Categories
  3. Create a price rule — the rule later connects the price group with the price on the product. Under Settings → Automation → Rule builder
  4. Assign the customer — define which customer receives which price group in which category. Under Customers, in the article price groups tab
  5. Store the price on the product — this is the amount the customer actually pays. On the product in the Advanced pricing tab

Afterwards, check the result in your shop: log in as a test customer and open a product from the released category.

Important: The special price only appears once the customer is logged in. Without a login the shop cannot know which price groups apply to the visitor, so it always shows the regular price.

Settings

You can reach the settings in two ways: through the Configure link in Extensions → My extensions, or through Settings → Extensions → Customer-dependent article price groups.

The page is deliberately short — the actual work happens in the price groups, on the customer and on the product. The sales channel selector sits at the top of the page, and below it you will find the following items:

Open documentation

The Open documentation button opens this manual online, in the language you are using the administration in. Handy when you want to look something up while setting things up, without leaving the administration. If the plugin data cannot be loaded, for example because your user account lacks the permission, the administration reports “The documentation link could not be loaded.”

Enable plugin for this sales channel

The Enable plugin for this sales channel switch defines whether customer-dependent pricing takes effect in the selected sales channel at all. The help text next to it puts it plainly: customer-dependent price groups only take effect in sales channels for which this switch is enabled. It is switched on by default.

Why this is useful: If you run a consumer shop alongside your B2B shop, you usually do not want negotiated dealer prices to appear there. Select the sales channel in question at the top of the page and switch the setting off for that channel — your assignments remain fully intact and keep working in the other channels.

Tip: To use the same setting in every channel, leave the sales channel selector on its default. As soon as you change the setting for an individual channel, your different value applies there.

How to set up customer-dependent prices

This chapter walks you through the complete setup, using one continuous example: the price group “VK2”, the category “Music, Home & Automotive” and the customer “Verlie Gusikowski”.

How to create your price groups

What this gives you: A price group is the name for a price level. Only once that level has a name can you assign it to a customer and store a price for it. So this is where you start.

Step by step

  1. In the main menu, open Products → Customer-dependent article price groups
  2. Click Add price group at the top right
  3. Enter a meaningful name in Price group name, for example VK2
  4. Leave the Active switch turned on
  5. Click Save

Creating the price group VK2 with the fields Price group name and Active Fig. 2: A new price group only needs a name and the “Active” status

Your price group then appears in the overview. A green check mark in the Status column shows that it is active.

Overview of created price groups showing the entry VK2 Fig. 3: The overview lists all price groups you have created

Tip: Choose names you will still understand in six months. “VK2” or “Dealer North” helps you more later than “Group 1”. You will see the same name again on the customer and in the price rule.

Use the three dots at the end of a row to edit or delete a price group. The search bar at the top helps you find the right one once you have many entries.


How to release categories for price calculation

What this gives you: You decide which product areas can be priced per customer at all. This keeps the selection on the customer manageable: instead of scrolling through your entire category tree, you only see the categories you deliberately released.

You do this with the Preisbildend tag, which the plugin created for you during installation.

Step by step

  1. Open Products → Categories
  2. Select the category that should be priced per customer from the category tree on the left
  3. Stay in the General tab
  4. Click into the Tags field and select Preisbildend from the list
  5. Click Save at the top right

Category Music, Home & Automotive with the tag Preisbildend in the Tags field Fig. 4: The “Preisbildend” tag releases the category for customer-dependent pricing

Repeat this for every category you want to price per customer. Tags already assigned to the category are untouched — the new tag is simply added.

Tip: You do not have to release every subcategory individually. If you later assign a parent category to a customer, the special price also applies to products from its subcategories. In the example used throughout this manual, the category Music, Home & Automotive is released and the product sits in the subcategory Jewelry, Outdoors & Beauty — the special price still applies.

Important: Without this tag, the category does not appear in the search on the customer. This is by far the most common reason why a category seemingly “cannot be assigned”.


How to create the price rule

What this gives you: The price rule is the link between the price group and the price on the product. Without it the shop would not know which of the prices stored on the product applies to the price group. You create it once per price group and then reuse it on as many products as you like.

Step by step

  1. Open Settings and select Rule builder in the Automation area
  2. Create a new rule
  3. Enter a meaningful name under Name that identifies the price group — in the example Kundenabhängige Preisgruppe VK2
  4. Enter 999 under Priority
  5. Scroll to the Condition card and put the condition together:
    • Select article price group in the first selection field
    • Select Is one of in the second selection field
    • Select the price group in question in the third field — VK2 in the example
  6. Click Save at the top right

Rule Kundenabhängige Preisgruppe VK2 with priority 999 and the condition article price group Is one of VK2 Fig. 5: The condition “article price group – Is one of – VK2” links the rule to your price group

Tip: The high Priority makes sure your customer-dependent price prevails over other price rules attached to the same product. If you use several customer-dependent price groups, different priorities let you put them into a deliberate order.

Tip: You can also select several price groups under Is one of within one rule. That is worth doing when different price groups should receive the same price on the product. If they should receive different prices, you need a separate rule per price group.

Important: Name the rule so that you recognise it on the product. There it appears by name only, in a list of all rules in your shop.


How to assign a price group to a customer

What this gives you: This is where you record the actual agreement: this customer gets this price level in this category. Their regular customer group is untouched, so there is no need to regroup them.

For this purpose the plugin adds an article price groups tab to the customer administration.

Step by step

  1. Open Customers and call up the customer you want
  2. Switch to the article price groups tab
  3. Click Edit at the top right
  4. In the Associations card, click into the Search by categories field — a two-column selection opens
  5. Select the category on the left. Only categories carrying the Preisbildend tag appear (see How to release categories for price calculation)
  6. On the right, tick the price group that should apply to this category
  7. Click next to the selection to close it, then click Save at the top right

The completed assignment then appears in the Associations card: the product area on the left under Categories, the assigned price level on the right under Price groups.

Associations card with the category Music, Home & Automotive and the price group VK2 Fig. 6: The saved assignment — in this category the customer receives price group VK2

You can create as many rows as you like and also assign several price groups to one category. To remove one, click the small cross on the price group and save. As long as no price group is assigned to the customer yet, the card shows the note No price groups assigned yet.

Important: If the tab shows the message No product price groups available. instead of the selection, you have not created a price group yet. Do that under Products → Customer-dependent article price groups (see How to create your price groups).


How to store the special price on the product

What this gives you: Now you define the amount the assigned customer actually pays. This happens on the product, in Shopware’s own price management — so you are working in an interface you already know.

Step by step

  1. Open Products → Overview and call up the product you want
  2. Switch to the Advanced pricing tab
  3. Click Add price rule at the bottom
  4. Select your rule in the selection field — Kundenabhängige Preisgruppe VK2 in the example
  5. Enter the amount this customer should pay in the Price row
  6. Click Save at the top right

Product with the price rule Kundenabhängige Preisgruppe VK2 and the price 199.99 Fig. 7: The special price of €199.99 sits in its own block under the rule “Kundenabhängige Preisgruppe VK2”

The product’s regular sales price above remains unchanged, including any tiered prices. The block with your rule is simply added below it.

Tip: You can use tiers for the special price as well. Use the Quantity from … and to … fields and add further rows via Duplicate price rule — exactly as with the regular price.

Important: The special price only applies to products that sit in one of the released categories and for which you stored the rule here. A product without this price block stays at the regular price, even if the customer has a matching assignment.


How to verify the result in your shop

What this gives you: The cross-check in the shop shows you within ten seconds whether the chain is complete. Do it once after every new price agreement.

Step by step

  1. Open the product in the shop without being logged in. You see your regular sales price — in the example the tiers €1,669.58 and €1,369.06

    Product page without login showing the regular tiered price Fig. 8: Without a login, the visitor always sees the regular price

  2. Log in to the shop as the customer you assigned the price group to

  3. Open the same product again. The special price now appears — €199.99 in the example

    Product page as a logged-in customer showing the special price of 199.99 euros Fig. 9: As a logged-in customer with price group VK2, the special price applies

From here the price applies consistently: it is carried over into the cart and forms the basis of the order at checkout.

Tip: You do not need to know the customer account password for testing. Open the customer under Customers and click Log in as customer in the General tab. Shopware then opens the shop, logged in as this customer.

Troubleshooting

The customer does not see their special price

What causes it: One link in the chain from chapter 5 is missing — or the customer is simply not logged in.

How to fix it: Work through these points in order, it is almost always one of them:

  1. Is the customer logged in? Without a login the regular price always applies. This is intended.
  2. Does the category carry the Preisbildend tag? Check the Tags field in the General tab under Products → Categories.
  3. Is the product in that category? Check the category assignment on the product. A subcategory of the released category counts too.
  4. Is the assignment on the customer? Under Customers, tab article price groups, the combination of category and price group must appear in the Associations card — and be saved.
  5. Is the price group active? An inactive price group has no effect. Check the Status column under Products → Customer-dependent article price groups.
  6. Does the rule contain the right price group? Under Settings → Automation → Rule builder, the Condition card must contain exactly the price group the customer has.
  7. Is the price stored on the product? The Advanced pricing tab must contain a price block with your rule and an amount entered there.
  8. Is the plugin enabled in this sales channel? In the settings, check the Enable plugin for this sales channel switch with the affected sales channel selected.
  9. Finally, clear the cache: Settings → System → Caches & indexes → Clear cache. Prices are cached, so after changes to rules and prices the old display can linger for a moment.

The category does not appear in the search on the customer

What causes it: Only categories carrying the Preisbildend tag appear in the selection under Search by categories.

How to fix it: Open Products → Categories, select the category, add Preisbildend to the Tags field in the General tab and save. It is then available for selection on the customer.

The “article price groups” tab shows “No product price groups available.”

What causes it: There is no price group in your shop yet that you could assign.

How to fix it: Create at least one price group under Products → Customer-dependent article price groups using Add price group (see How to create your price groups), then open the customer again.

The “Customer-dependent article price groups” entry is missing under “Catalogues”

What causes it: The plugin is not activated yet, the cache is out of date — or your user account has no permission for this area.

How to fix it:

  1. Open Extensions → My extensions and check whether the switch next to the plugin is turned on
  2. Clear the cache: Settings → System → Caches & indexes → Clear cache
  3. Reload the administration in your browser
  4. If you are not working as an administrator, ask your administrator to grant you the permissions for Customer-dependent article price groups

A different price prevails than expected

What causes it: Several price rules are attached to the product and another one takes precedence.

How to fix it: Open the rules in question under Settings → Automation → Rule builder and compare the Priority field. The rule with the higher value prevails. Give your customer-dependent price rule the higher value — the recommended 999 is deliberately above the usual values.

All settings

Every setting in the plugin configuration with its default value, in the order shown in the Administration. As of version 6.7.2.

Configuration Channel

SettingDefaultDescription
Enable plugin for this sales channelonCustomer-dependent price groups only take effect in sales channels for which this switch is enabled.

FAQ

Q: Do I have to move my customers into new customer groups?

A: No. That is exactly what the plugin saves you from. The customer stays in their existing customer group and additionally receives their category-based price groups.

Q: What do visitors who are not logged in see?

A: Always your regular sales price, including tiered prices. Negotiated special conditions are never shown publicly.

Q: Does the special price also apply in the cart and at checkout?

A: Yes. The price is used consistently, from the product through the cart to the order.

Q: Can a customer have different price groups in several categories?

A: Yes. In the Associations card you can create as many rows as you like — one price group per category. You can also assign several price groups to one category.

Q: Do I have to release and assign every subcategory individually?

A: No. If you assign a parent category, the special price also applies to products from its subcategories.

Q: Can I use the same price group for many customers?

A: Yes, and that is exactly what it is for. You maintain the price once on the product and assign the price group to as many customers as you like. If you change the price later, it takes effect immediately for every customer in that price group.

Q: Can I set up the special price in tiers?

A: Yes. In the price block of your rule in the Advanced pricing tab, use the quantity fields exactly as you would for the regular price.

Q: Does the plugin work in all of my sales channels?

A: Only in those for which the Enable plugin for this sales channel switch is turned on. By default it is on everywhere.

Q: What happens to my prices if I delete a customer?

A: Only their personal assignments disappear. Your price groups, rules and the prices on the products remain unchanged.

Q: I set a price group to inactive — what does that mean?

A: An inactive price group no longer has any effect. Its assignments on the customers stay saved, but the shop ignores them. The price rule then does not apply and the customer sees the regular price again. Switch the price group back to Active and the special price applies again. If the shop display lags, clear the cache.

Q: Are the assignments copied when I duplicate a customer or a category?

A: No. The duplicate takes over no price group assignments. Assign them to the new customer deliberately.

For administrators / technical details

This section is aimed at technical administrators. You do not need it for normal use.

System requirements

  • Shopware: 6.7
  • PHP: 8.2 or newer
  • Database: MySQL 8.0 / MariaDB 10.11 or newer

Installation via the command line (Composer)

composer require swp/customerdependentarticlepricegroups-six
php bin/console plugin:refresh
php bin/console plugin:install SwpCustomerDependentProductPriceGroupsSix --activate
php bin/console cache:clear

Permissions

The plugin ships its own permissions under the name Customer-dependent article price groups. Use them in your user roles to control who may view, create and edit price groups. Without read permission, the entry under Catalogues is invisible to the staff concerned. Staff with customer permissions but without price group permissions open customers as usual. With read-only permission they see the assignments in the article price groups tab, and on the detail page of a price group the fields and Save are locked.

What happens when you uninstall

If you choose Remove all app data permanently when uninstalling, the plugin removes its own data: the price groups you created, the customer assignments, the plugin settings and the Preisbildend tag. Without this option everything is kept. Your categories, customers and products remain. Not removed automatically are the price rules you created and the price blocks on the products — clean those up yourself if needed.

Important: Back up your database before uninstalling the plugin. The assignments cannot be restored afterwards.

Prices and caching

Shopware caches prices. After changes to price groups, assignments, rules or product prices, the display in the shop can lag briefly. Clearing the cache under Settings → System → Caches & indexes applies the current state immediately.

So that no customer gets another customer’s price from the cache, the assignments of a logged-in customer go into the cache key. In addition, for logged-in customers with an assignment the plugin reloads the price on the product page and in the product box via JavaScript after the page has loaded (POST /swp/customer-price-groups/prices). This keeps the price right even behind an external hosting cache. For this it wraps the blocks buy_widget_price_inner and component_product_box_price_info in a container, and your theme renders the content as usual. If reloading fails, the price shown first stays in place.

Logging

The plugin writes to its own log file var/log/SwpCustomerDependentProductPriceGroupsSix-<date>.log, for example when a price block cannot be rendered during reloading.

Updating from older versions

If you come from 6.07.00 or older, the update removes two outdated foreign keys of the assignment table that MySQL 8.4 and Shopware’s database check reject. Your price groups and assignments are kept.


This manual was created for Customer-dependent article price groups version 6.7.2.

How much help do you need?

  • Updates and compatibility: Plugin-Care from €149 per month

    Before every Shopware release we check whether your plugins keep up. You get a written recommendation and install the updates yourself. Cancel monthly.

    See Plugin-Care
  • Setup or customisation: intro call

    Want us to set up the plugin, or are you missing a feature? We sort that out in a free intro call.

    Book an intro call

Need a team that keeps your shop running?

We have been working with Shopware since 2010 and maintain shops including updates, hotfixes and the plugins you are configuring right now.