Hierzu hätte ich auch noch zwei Fragen. Gehört der Inhalt in die finish.tpl oder in die finish:footer.tpl?
Ich habe dies nun wie folgt gelöst, erhalte aber diese Fehlermedlung. Kann den Fehler aber leider nicht finden. Was ist in Zeile 24 falsch?
Inhalt:
{* Table footer *}
{include file=„frontend/checkout/finish_footer.tpl“}
Hier beginnt der Code
{if $sAmountWithTax}
{assign var=„sRealAmount“ value=$sAmountWithTax|replace:",":"."}
{else}
{assign var=„sRealAmount“ value=$sAmount|replace:",":"."}
{/if}
{assign var=„sArticlePriceNettoNumeric“ value=($sRealAmount/119)*100}
{assign var=„sArticlePriceNetto“ value=$sArticlePriceNettoNumeric|number_format:2:",":""}
http://www.adcell.de/event.php?pid=???&eventid=???&referenz={$sOrderNumber}&betrag= {$sArticlePriceNetto}" border=0 width=1 height=1>
{/block}
Fehlermeldung:
SmartyCompilerException: Syntax Error in template „/homepages/?/?/htdocs/themes/Frontend/?/frontend/checkout/finish.tpl“ on line 24 „{/block}“ unexpected closing tag in /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php:657 Stack trace:
#0 /engine/Library/Smarty/sysplugins/smarty_internal_compilebase.php(170): Smarty_Internal_TemplateCompilerBase->trigger_template_error(‚unexpected clos…‘, 24)
#1 /engine/Library/Smarty/sysplugins/smarty_internal_compile_block.php(243): Smarty_Internal_CompileBase->closeTag(Object(Smarty_Internal_SmartyTemplateCompiler), Array)
#2 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Blockclose->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#3 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler(‚blockclose‘, Array, Array)
#4 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2493): Smarty_Internal_TemplateCompilerBase->compileTag(‚blockclose‘, Array)
#5 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r58()
#6 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(58)
#7 /engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(113): Smarty_Internal_Templateparser->doParse(0, 0)
#8 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile(’{* Table footer…’)
#9 /engine/Library/Smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default))
#10 /engine/Library/Smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#11 /engine/Library/Enlight/View/Default.php(276): Smarty_Internal_TemplateBase->fetch()
#12 /engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(216): Enlight_View_Default->render(Object(Enlight_Template_Default))
#13 /engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(242): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->renderTemplate(Object(Enlight_Template_Default))
#14 /engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(136): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->render()
#15 /engine/Library/Enlight/Event/Handler/Default.php(91): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->onPostDispatch(Object(Enlight_Controller_ActionEventArgs))
#16 /engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute(Object(Enlight_Controller_ActionEventArgs))
#17 /engine/Library/Enlight/Controller/Action.php(201): Enlight_Event_EventManager->notify(‚Enlight_Control…‘, Object(Enlight_Controller_ActionEventArgs))
#18 /engine/Library/Enlight/Controller/Dispatcher/Default.php(530): Enlight_Controller_Action->dispatch(‚finishAction‘)
#19 /engine/Library/Enlight/Controller/Front.php(223): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))
#20 /engine/Shopware/Kernel.php(189): Enlight_Controller_Front->dispatch()
#21 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(491): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /engine/Shopware/Components/HttpCache/AppCache.php(268): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)
#23 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)
#24 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(344): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Object(Symfony\Component\HttpFoundation\Request), true)
#25 /engine/Shopware/Components/HttpCache/AppCache.php(189): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#26 /vendor/symfony/http-kernel/HttpCache/HttpCache.php(210): Shopware\Components\HttpCache\AppCache->lookup(Object(Symfony\Component\HttpFoundation\Request), true)
#27 /engine/Shopware/Components/HttpCache/AppCache.php(116): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /homepages/32/d624158528/htdocs/shopware.php(118): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))
#29 {main}