# Breite der Modal-Box einstellen?

**URL:** https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017
**Category:** Programmierung
**Created:** [7. Mai 2015 um 17:16 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017 "2015-05-07T17:16:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [7. Mai 2015 um 17:16 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/1 "2015-05-07T17:16:01Z")

</div>

Hallo Gemeinde, wo kann man die Breite der Modal-Box einstellen? Dachte hier: /Responsive/frontend/\_public/src/less/\_components/modal.less [code]

This is the header

This is the content

[/code] Habe das in meinem eigenen Theme erstellt, tut sich aber leider nichts. Alle Cache gelöscht. Wird das an anderer Stelle eingestellt? Danke und Grüße Michael

---

<div class="post-metadata">

### Author: ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)
#### Post date: [7. Mai 2015 um 17:24 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/2 "2015-05-07T17:24:50Z")

</div>

Du legst die Größe über das data Attribut fest. `data-width="800" data-height="440"`

---

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [7. Mai 2015 um 17:27 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/3 "2015-05-07T17:27:45Z")

</div>

Danke… :oops: Wo finde ich das? Oder wo gebe ich das ein? (Hab doch keine Ahnung von alle dem… :() Danke noch mal

---

<div class="post-metadata">

### Author: ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)
#### Post date: [7. Mai 2015 um 17:33 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/4 "2015-05-07T17:33:35Z")

</div>

In dem Template, wo du das modal angezeigt haben möchtest 🙂 Wo soll das denn hin kommen ?

---

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [7. Mai 2015 um 17:38 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/5 "2015-05-07T17:38:06Z")

</div>

In den Artikeldetails wird bei Aufruf des Links der Versandkosten [quote]Preise inkl. gesetzlicher MwSt. zzgl. Versandkosten[/quote] die Versandkosten in einer Modal-Box angezeigt…

---

<div class="post-metadata">

### Author: ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)
#### Post date: [7. Mai 2015 um 17:49 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/6 "2015-05-07T17:49:19Z")

</div>

[quote=“Tanny”]In den Artikeldetails wird bei Aufruf des Links der Versandkosten [quote]Preise inkl. gesetzlicher MwSt. zzgl. Versandkosten[/quote] die Versandkosten in einer Modal-Box angezeigt…[/quote] [https://gist.github.com/hostianer/a5de36f3d14ee7d24951](https://gist.github.com/hostianer/a5de36f3d14ee7d24951) Lege dir ein Theme an. Und dann in frontend/detail/ legst du die Datei data.tpl an mit folgendem Inhalt [code]{extends file=‘frontend/detail/data.tpl’} {block name=‘frontend\_detail\_data\_tax’}

{s name=“DetailDataPriceInfo”}{/s}

{/block}[/code] data-width und data-height geben die Größen an.

---

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [7. Mai 2015 um 19:10 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/7 "2015-05-07T19:10:15Z")

</div>

Vielen Dank für deine Mühen! Wenn ich die data.tpl in meinem Theme mit dem Inhalt anlege, erhalte ich folgende Fehlermeldung: `Syntax Error in template "/var/www/vhosts/000.de/shopware/themes/Frontend/mein/frontend/detail/data.tpl" on line 2 "" illegal recursive call of "frontend/detail/data.tpl" in Smarty/sysplugins/smarty\_internal\_templatecompilerbase.php on line 657` Wenn ich die data.tpl nicht neu anlege läuft es normal…? Danke

---

<div class="post-metadata">

### Author: ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)
#### Post date: [7. Mai 2015 um 19:22 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/8 "2015-05-07T19:22:56Z")

</div>

Sorry [code]{extends file=‘parent:frontend/detail/data.tpl’} {block name=‘frontend\_detail\_data\_tax’}

{s name=“DetailDataPriceInfo”}{/s}

{/block}[/code] Ein parent: vor frontend/detail…

---

<div class="post-metadata">

### Author: ![Tanny](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@Tanny](https://forum.shopware.com/u/Tanny)
#### Post date: [7. Mai 2015 um 19:57 UTC](https://forum.shopware.com/t/breite-der-modal-box-einstellen/27017/9 "2015-05-07T19:57:39Z")

</div>

Vielen Dank! :thumbup: 🙂
