einkaufswelt element frontend template include

https://developers.shopware.com/developers-guide/custom-shopping-world-elements/

wie includen wir andere smarty templates in der Resources/views/emotion_components/widgets/emotion/components/whatever.tpl?

ganz normales smarty {include file=…}

1 „Gefällt mir“

ahaa!

hab ein template Resources/views/emotion_components/widgets/emotion/components/test.tpl addiert und in der emotion_vimeo.tpl included, und der hinweis ist wohl in der fehler:

core.CRITICAL: Unable to load template snippet 'test.tpl' in 'widgets/emotion/components/emotion_vimeo.tpl'

die richtige pfad muss dieselbe sein wie die “in” pfad in fehler:

{include file="widgets/emotion/components/test.tpl"}

also braucht man keine extra template subscriber, cool!