# Default Wert für eine Option im Plugin CustomizedProducts

**URL:** https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117
**Category:** Administration
**Created:** [8. Oktober 2020 um 15:00 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117 "2020-10-08T15:00:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![geraldes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/geraldes/32/9933_2.png) [@geraldes](https://forum.shopware.com/u/geraldes)
#### Post date: [8. Oktober 2020 um 15:00 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/1 "2020-10-08T15:00:07Z")

</div>

Hallo Community,

in der Tabelle „swag\_customized\_products\_template\_option“,welche für das Plugin SwagCustomizedProducts verwendet wird, existiert eine Spalte „default“ (tinyint 0/1) die vermutlich ermöglicht eine Option als Default-Wert zu setzen.

Leider gibt es seitens der Doku nichts zu diesem Feld dazu zu finden.  
[https://docs.shopware.com/en/shopware-6-en/catalogues/customproducts](https://docs.shopware.com/en/shopware-6-en/catalogues/customproducts)

Weiß jemand ob ich mit meiner Vermutung richtig liege und hat schon mal jemand versucht, dieses Feld im Adminbereich freizuschalten, da es dort nicht auftaucht?  
Wäre echt nice, da man so CustomProducts erstellen könnte, bei denen schon erste Werte vordefiniert sind

Viele Grüße

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [9. Oktober 2020 um 07:52 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/2 "2020-10-09T07:52:09Z")

</div>

Hallo,

im Standard hat und hatte die Tabelle&nbsp;“swag\_customized\_products\_template\_option” keine Spalte “default”.

Sie muss also irgendwo anders herkommen&nbsp; ![Smile](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bac5f5766b6a20565a8fb995345b4e41d24daac0.png "Smile")

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![geraldes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/geraldes/32/9933_2.png) [@geraldes](https://forum.shopware.com/u/geraldes)
#### Post date: [9. Oktober 2020 um 07:58 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/3 "2020-10-09T07:58:02Z")

</div>

Hallo Michael,

da hast du völlig Recht. Ich hab auch die falsche Tabelle aufgeschrieben. ![Halo](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/halo.png "Halo")&nbsp;Es geht um diese Tabelle:  
swag\_customized\_products\_template\_option\_value

Viele Grüße aus Günzburg

Geraldes

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [9. Oktober 2020 um 08:46 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/4 "2020-10-09T08:46:15Z")

</div>

Hallo Geraldes,

ja ok, da kommen wir der Sache schon näher&nbsp; ![Smile](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bac5f5766b6a20565a8fb995345b4e41d24daac0.png "Smile")  
Diese Spalte haben wir tatsächlich angedacht, um in Selections einen vorausgewählen Value definieren zu können. Momentan ist das aber noch nicht einstellbar, wie du schon richtig bemerkt hast. Es gibt da aber bereits ein Ticket dazu:&nbsp;[Shopware Issuetracker](https://issues.shopware.com/issues/CUS-46) Gerne darauf Voten, damit es von uns höher priorisiert wird.

Viele Grüße aus Schöppingen

![cool](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/86c57fbace799dd4eb1f1b8a2d3bdc1733f0aea1.png "cool")&nbsp;Michael Telgmann

---

<div class="post-metadata">

### Author: ![geraldes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/geraldes/32/9933_2.png) [@geraldes](https://forum.shopware.com/u/geraldes)
#### Post date: [9. Oktober 2020 um 08:51 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/5 "2020-10-09T08:51:11Z")

</div>

Super vielen Dank für das schnelle Feedback.

Dann kann ich es ja verwenden. Ist zwar im Backend nicht einstellbar, aber durch die API kann ich das dann für den Kunden steuern.

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [9. Oktober 2020 um 11:02 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/6 "2020-10-09T11:02:17Z")

</div>

ja, vorsicht, es hat auch bisher noch keine Auswirkung auf die Ausspielung in der Storefront.&nbsp;

---

<div class="post-metadata">

### Author: ![geraldes](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/geraldes/32/9933_2.png) [@geraldes](https://forum.shopware.com/u/geraldes)
#### Post date: [9. Oktober 2020 um 11:10 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/7 "2020-10-09T11:10:28Z")

</div>

Ich hab ein Plugin geschrieben, das mir an den entsprechenden Twigs diesen Wert ausliest und wenn keine Konfiguration vorliegt den entsprechenden Default-Wert als selected markiert. Wenn ihr das dann in Zukunft ändert, kann ich das Plugin einfach deinstallieren.

---

<div class="post-metadata">

### Author: ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)
#### Post date: [9. Oktober 2020 um 11:39 UTC](https://forum.shopware.com/t/default-wert-fur-eine-option-im-plugin-customizedproducts/70117/8 "2020-10-09T11:39:43Z")

</div>

ah, sehr gut&nbsp; ![Smile](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/bac5f5766b6a20565a8fb995345b4e41d24daac0.png "Smile") ![Thumb-Up](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/7fcda44f782696668a3d093569d15e88105769e1.png "Thumb-Up")
