-
Einbindung IONOS Shop
Hallo in die Runde
Habe Conto 4.9.20 und möchte nun einen Ionos-Shop einbinden
mittels HTML Element und folgendem Inhalt:
<div id="my-store-XXX"></div>
<div>
<script data-cfasync="false" type="text/javascript" src="https://app.ecommerce.ionos.de/script.js?XXX&data_platform=code&data_date=2024-03-23" charset="utf-8"></script><script type="text/javascript"> xProductBrowser("categoriesPerRow=3","views=grid(2 0,3) list(60) table(60)","categoryView=grid","searchView=list"," id=my-store-XXX");</script>
</div>
Und obwohl in den html Einstellungen script mit folgenden Werten erlaubt sind schmeisst mir contao
diverse Zeilen raus, so dass a Ende nur noch steht
<div id="my-store-XXX"></div>
<div>
<script data-cfasync="false"></script><script> xProductBrowser("categoriesPerRow=3","views=grid(2 0,3) list(60) table(60)","categoryView=grid","searchView=list"," id=my-store-XXX");</script>
</div>
Was bedenke ich nicht?
-
Hallo spor01,
aktualisiere auch die Contao Version. 4.9 ist nicht mehr unterstützt und gehe mindestens auf 4.13.
Zu deinem Theme iframe Einbindung hilft dir der Beitrag der Contao Academy weiter:
https://contao-academy.de/blog/ifram...ntao-einbinden
-
Oder sofort auf Contao 5.3 aktualisieren und das Modul "ungefiltertes HTML" nutzen ;)