# Produkte Mehrfachänderung

**URL:** <https://forum.shopware.com/t/produkte-mehrfachaenderung/101043>\
**Category:** Shopware 6 (German)\
**Created:** [28. August 2023 um 07:40 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043 "2023-08-28T07:40:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopware12](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@shopware12](https://forum.shopware.com/u/shopware12)\
**Post date:** [28. August 2023 um 07:40 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/1 "2023-08-28T07:40:05Z")

</div>

Hallo,

ich möchte eine Mehrfachänderung für 5 Produkte machen und zwar ein Bild hinzufügen.

Bei „Medien“ wähle ich aus „Hinzufügen“, wähle dann mein Bild aus den hochgeladenen Medien aus  
und gehe auf „Änderungen übernehmen“.

Alles scheint funktioniert zu haben und am Ende kommt die Meldung „Mehrfachänderung abgeschlossen“.

Leider wurde aber bei keinem Produkt das Bild hinzugefügt.

Was mache ich falsch.  
Kann mir bitte Jemand helfen?  
Vielen Dank!

---

<div class="post-metadata">

**Author:** ![MarkusFischer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/markusfischer/32/13693_2.png) [@MarkusFischer](https://forum.shopware.com/u/MarkusFischer)\
**Post date:** [28. August 2023 um 08:48 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/2 "2023-08-28T08:48:02Z")

</div>

Hallo shopware12,  
fehlt das Bild bei allen oder nur den letzten? Teilweise machen gleiche Namen Probleme, weil Shopware versucht einen eindeutigen Ordner für das Bild anzulegen, wenn es hochgeladen wird.  
Hast Du einmal geprüft, ob Du unter **Einstellungen \> System \> Ereignislog** oder über den Server im Verzeichnis `/var/log` im Production Log Fehlerhinweise findest?

Viele Grüße  
Markus

---

<div class="post-metadata">

**Author:** ![shopware12](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@shopware12](https://forum.shopware.com/u/shopware12)\
**Post date:** [28. August 2023 um 09:44 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/3 "2023-08-28T09:44:49Z")

</div>

Hallo Markus

vielen Dank für deine Antwort.  
Tatsächlich ist es so, dass das Bild beim ersten Produkt hinzugefügt wird. Bei den 4 anderen allerdings nicht.  
Was meinst du genau mit den gleichen Namen und was kann ich ändern, um dieses Problem zu beheben?  
Vielen Dank.  
Stefan.

---

<div class="post-metadata">

**Author:** ![shopware12](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@shopware12](https://forum.shopware.com/u/shopware12)\
**Post date:** [28. August 2023 um 09:49 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/4 "2023-08-28T09:49:52Z")

</div>

Das hier erhalte ich als Log-Info,  
damit kann ich aber leider nichts anfangen…

{  
„url“: „[Shopware Administration (c) shopware AG](https://shop.locher.info/admin#/sw/bulk/edit/product/null/0/save/process)“,  
„stack“: „selectedDocumentTypes@[https://shop.locher.info/bundles/administration/static/js/d003039868e3e8b1a457.js:1:3559\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789044\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:790039\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:792222\nanonymous@\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:806522\ni@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:840458\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789044\ne@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:788956\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:840471\ninit@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:794322\nn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:798151\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:828748\nA@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:829024\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831876\nS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831585\nS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831585\nS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831585\nS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:833195\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:805540\ni@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:840448\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789044\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789776\non@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:782180\n@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:786785\nIn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:786224\npromiseReactionJob@](https://shop.locher.info/bundles/administration/static/js/d003039868e3e8b1a457.js:1:3559%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789044%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:790039%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:792222%5Cnanonymous@%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:806522%5Cni@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:840458%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789044%5Cne@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:788956%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:840471%5Cninit@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:794322%5Cnn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:798151%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:828748%5CnA@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:829024%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831876%5CnS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831585%5CnS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831585%5CnS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:831585%5CnS@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:832059%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:833195%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:805540%5Cni@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:840448%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789044%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:789776%5Cnon@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:782180%5Cn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:786785%5CnIn@https://shop.locher.info/bundles/administration/static/js/app.js?1692683319:2:786224%5CnpromiseReactionJob@)[native code]“,  
„component“: „Unknown component“  
}

---

<div class="post-metadata">

**Author:** ![MarkusFischer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/markusfischer/32/13693_2.png) [@MarkusFischer](https://forum.shopware.com/u/MarkusFischer)\
**Post date:** [29. August 2023 um 06:45 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/5 "2023-08-29T06:45:04Z")

</div>

Hallo shopware12,  
wenn Du ein neues Produktbild verwenden willst, stecken im Hintergrund zwei Prozesse dahinter:

1. Das neue Medium muss hochgeladen und unter **Inhalte \> Medien** registriert werden. Dafür wird ein gehashter Ordner in Deinem Serverdateisystem angelegt und dort die Datei hinkopiert.
2. Das Produkt und das Medium werden verknüpft, dabei werden aber nur noch die Verweise genutzt, die unter **Inhalte \> Medien** angelegt wurden.

Wenn also z.B. fünfmal das selbe Bild hochgeladen und zugeordnet werden soll, legt Shopware beim ersten Mal einen Ordner an und kopiert das Bild dort hinein. Beim zweiten Mal läuft die Prozedure auf einen Fehler, weil der Ordner schon existiert, daher werden dann bei den nächsten Produkten keine Bilder mehr zugeordnet.

Zu dem geposteten Eintrag gibt es zu selectedDocumentTypes keine weiteren Informationen, was hier die Ursache ist. Ich denke in diesem Fall wirst Du das schneller lösen können, wenn Du den fünf Produkten manuell das Bild zuordnest. Falls es sich um eine Hauptprodukt und deren Varianten handelt, stelle einmalig die Vererbung der Medien wieder her, dann wird das Bild der Hauptvariante übernommen. Das gilt aber natürlich nur, wenn es keine anderen Bilder gibt.

Viele Grüße  
Markus

---

<div class="post-metadata">

**Author:** ![shopware12](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@shopware12](https://forum.shopware.com/u/shopware12)\
**Post date:** [30. August 2023 um 06:15 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/6 "2023-08-30T06:15:09Z")

</div>

Hallo Markus,  
vielen Dank für deine ausführliche Antwort.  
Leider sind es ca. 400 Produkte, bei denen das Bild rein soll :-((.

Kann ich irgend welche Ordner löschen oder das Bild umbenennen?  
Irgendwie muss es doch gehen? Habe momentan aber überhaupt keinen Plan, was ich machen soll…

Danke nochmals und einen schönen Tag dir.

Stefan

---

<div class="post-metadata">

**Author:** ![Laudenz](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@Laudenz](https://forum.shopware.com/u/Laudenz)\
**Post date:** [30. August 2023 um 07:34 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/7 "2023-08-30T07:34:37Z")

</div>

Hallo @shopware12,  
kannst du versuchen das Bild unter **Inhalte → Medien** direkt in den Ordner **Product Media** hochzuladen und anschließend in der Mehrfachänderung bei den Produkten zuzuweisen (anstatt hochzuladen)?  
Habe das nicht ausprobiert, ist nur eine Idee.

Grüße

---

<div class="post-metadata">

**Author:** ![shopware12](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@shopware12](https://forum.shopware.com/u/shopware12)\
**Post date:** [1. September 2023 um 04:41 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/8 "2023-09-01T04:41:54Z")

</div>

Hallo Laudenz,  
vielen Dank für den Tipp. Leider klappt’s nicht.  
Habe schon beide Varianten ausprobiert:

- Zuerst Bild hochladen und dann Mehrfachänderung.
- In der Mehrfachänderung das Bild hochladen.

Beides hat zur Folge, dass das Bild nur dem ersten Produkt zugeordnet wird.

Ich werde noch wahnsinnig:-).  
Es muss doch irgend eine Möglichkeit geben, das Problem zu beseitigen, bzw. zu umgehen.

Hat vielleicht noch Jemand nen schlauen Rat?  
Wäre echt dankbar, weil ein paar hundert Produkte von Hand zu bearbeiten  
ist nicht der größte Spaß.

---

<div class="post-metadata">

**Author:** ![ThomasChr](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomaschr/32/10466_2.png) [@ThomasChr](https://forum.shopware.com/u/ThomasChr)\
**Post date:** [1. September 2023 um 05:29 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/9 "2023-09-01T05:29:06Z")

</div>

Also dass die Mehrfachänderung das können sollte finde ich schon - hast du mal ein Ticket dafür aufgemacht?

Was dein aktuelles Problem betrifft, hast du einen Programmierer zur Hand der dir das per API machen kann?  
Bilder per API sind jetzt auch nicht direkt ein einfacher Spaß, aber das geht wenigstens!

Thomas

---

<div class="post-metadata">

**Author:** ![MarkusFischer](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/markusfischer/32/13693_2.png) [@MarkusFischer](https://forum.shopware.com/u/MarkusFischer)\
**Post date:** [13. September 2023 um 06:37 UTC](https://forum.shopware.com/t/produkte-mehrfachaenderung/101043/10 "2023-09-13T06:37:25Z")

</div>

Hallo Shopware12,  
ich habe das in Shopware 6.5.5.1 nochmal getestet. Wenn Du eine vorhandenes Bild nimmst und dann die Mehrfachänderung durchführst, wird es in allen betroffenen Produkten eingefügt. Allerdings ist es nicht möglich auf dem Weg das Bild als Coverbild einzusetzen.

> [@ThomasChr](#):
>
> hast du mal ein Ticket dafür aufgemacht?

Das wäre auf jeden Fall eine gute Sache.

Viele Grüße  
Markus
