javascript / JTL Shop 4 / include

3jojojo

Sehr aktives Mitglied
20. Januar 2016
783
45
Hallo Leute

Ich probiere heute aus einem javascript ein include aufzurufen (Frage zum Produkt , {include file="productdetails/question_on_item.tpl"})

Das Problem ist das nicht der include ausgeführt sondern {include file="productdetails/question_on_item.tpl"} wieder ausgeben wird. Kann mir jemand sagen wiese?
 

ag-websolutions.de

Sehr aktives Mitglied
29. Dezember 2009
14.548
233
AW: javascript / JTL Shop 4 / include

Smarty wird serverseitig ausgeführt; JavaScript clientseitig.
Ohne jetzt im Detail zu wissen, was du überhaupt vor hast, kann das nicht klappen.
 

martinwolf

Offizieller Service Partner
SPBanner
6. September 2012
3.724
355
AW: javascript / JTL Shop 4 / include

Hallo Leute

Ich probiere heute aus einem javascript ein include aufzurufen (Frage zum Produkt , {include file="productdetails/question_on_item.tpl"})

Das Problem ist das nicht der include ausgeführt sondern {include file="productdetails/question_on_item.tpl"} wieder ausgeben wird. Kann mir jemand sagen wiese?

Zur Info: include (einbinden) | Smarty

Im JS müsstest du den gesmaten Inhalt in einer Variable ablegen:

Code:
var html = '{include file="productdetails/question_on_item.tpl"}';
 

Ähnliche Themen