# Kann kein Rabatt mit "Produktregel auf 1. Produkt anwenden" anlegen

**URL:** <https://forum.shopware.com/t/kann-kein-rabatt-mit-produktregel-auf-1-produkt-anwenden-anlegen/107642>\
**Category:** Administration\
**Tags:** administration\
**Created:** [22. Juli 2025 um 08:39 UTC](https://forum.shopware.com/t/kann-kein-rabatt-mit-produktregel-auf-1-produkt-anwenden-anlegen/107642 "2025-07-22T08:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoWi](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@RoWi](https://forum.shopware.com/u/RoWi)\
**Post date:** [22. Juli 2025 um 08:39 UTC](https://forum.shopware.com/t/kann-kein-rabatt-mit-produktregel-auf-1-produkt-anwenden-anlegen/107642/1 "2025-07-22T08:39:34Z")

</div>

Hallo zusammen,

ich versuche gerade eine Produktregel anzulegen, wo der Rabatt auf eine bestimmte Produktgruppe greifen soll und anschließend nur das erste Produkt mit 100% rabattieren soll.

Ich habe schon Regeln zum ermitteln des Warenkorb Wertes anglegt und eine Regel zum eingrenzen der Qualifizierten Produkte (mittels Tags).

Möchte ich einstellen das es nur auf das erste Produkt angewandt werden soll, Sortierung absteigend, so erhalte ich beim speichern ein Fehler [1x „Dieser Wert sollte vom Typ string sein.“].  
Ändere ich das auf Anwenden auf Jedes Produkt, so lässt sich die Rabatt Aktion speichern.  
Auch wird der Rabatt anschließend auf alle Artikel angewandt.  
Dies ist aber nicht was wir wollen. ein Absolutwert oder Maximalwert kann hier auch nicht genommen werden, da die Qualifizierten Produkte unterschiedliche Verkaufspreise haben, da diese auch Regulär gekauft werden können.

Bin ich hier auf dem falschen Weg oder hab ich nur ungünstig ein Bug entdeckt?

Viele Grüße

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [22. Juli 2025 um 08:56 UTC](https://forum.shopware.com/t/kann-kein-rabatt-mit-produktregel-auf-1-produkt-anwenden-anlegen/107642/2 "2025-07-22T08:56:27Z")

</div>

Ja, das scheint ein Bug zu sein.

> <https://github.com/shopware/shopware/issues/11403>
>
> \### Shopware Version
> 
> 6.6.10.6
> 
> \### Affected area / extension
> 
> Platform(Default)…
> 
> \### Actual behaviour
> 
> Get the error when trying to add a existing rule
> 
> \`\`\`
> {
> "errors": \[
> {
> "status": "404",
> "code": "FRAMEWORK\_\_RESOURCE\_NOT\_FOUND",
> "title": "Not Found",
> "detail": "The promotion\_discount\_rule resource with the following primary key was not found: discountId(019831536e2e7d1893218b7b3a8096a6) ruleId(0192af3a214373e88bc429d75a7ee9bf)",
> "meta": {
> "parameters": {
> "type": "promotion\_discount\_rule",
> "primaryKey": {
> "discountId": "019831536e2e7d1893218b7b3a8096a6",
> "ruleId": "0192af3a214373e88bc429d75a7ee9bf"
> },
> "primaryKeyString": "discountId(019831536e2e7d1893218b7b3a8096a6) ruleId(0192af3a214373e88bc429d75a7ee9bf)"
> }
> }
> }
> \]
> }
> \`\`\`
> 
> or when trying to create a rule within the discount tab
> 
> \`\`\`
> {
> "errors": \[
> {
> "status": "400",
> "code": "FRAMEWORK\_\_WRITE\_TYPE\_INTEND\_ERROR",
> "title": "Bad Request",
> "detail": "Expected command for \\"promotion\_discount\\" to be \\"Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Write\\\\Command\\\\UpdateCommand\\". (Got: Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Write\\\\Command\\\\InsertCommand)Hint: Use POST method to create new entities.",
> "meta": {
> "parameters": {
> "definition": "promotion\_discount",
> "expectedClass": "Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Write\\\\Command\\\\UpdateCommand",
> "actualClass": "Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Write\\\\Command\\\\InsertCommand"
> }
> }
> }
> \]
> }
> \`\`\`
> 
> \### Expected behaviour
> 
> No error.
> 
> \### How to reproduce
> 
> 1. Add promotion, activate and save it.
> 2. Add sales channel as pre-condition.
> 3. Add discount, cart, activate apply to a specific range of products only, apply to 1. item, price descending
>  
> 4.select existing rule with tag at least one is one of TAG
> 
> or
> 
> 4. create rule item with tag at least one is one of TAG
> 
> In 3 of 4 tests I got an error.
> 
> \### Definition of Done
> 
> \- \[\] An automated test covers the fix.
> \- \[\] Integration/E2E testing in staging is done.
> \- \[\] Changelog markdown file created or updated in /changelog/\_unreleased directory.
> \- \[\] Developer documentation written/updated.
> \- \[\] End user and/or developer documentation written or updated with clarification.
> \- \[\] Regression test created to ensure bug does not reappear, and automated regression tests pass.
> \- \[\] Code changes resolve the reported bug without introducing new issues.
