Hallo,
Ich übernehme mal den Beitrag mal von dem Kollegen.
Nach einem neuen Test, ist das Resultat, wenn ich es so einbaue, also nur mal die "nnnn" drin gelassen.
Zeigt er mir Seltsamerweise die Breite des Produkts an?!
<tr class="attr-custom">
{assign var="currentAttribute" value=$Artikel->Attribute[array_search(nnnn, $Artikel->Attribute|array_column:'kAttribut')]}
<td class="attr-label word-break">{$currentAttribute->cName}</td>
<td class="attr-value">{$currentAttribute->cWert}</td>
</tr>
Ändere ich das "nnnn" vom kAttribute in:
>> {assign var="currentAttribute" value=$Artikel->Attribute[array_search(Höhe, $Artikel->Attribute|array_column:'kAttribut')]}
oder
>> {assign var="currentAttribute" value=$Artikel->Attribute[array_search(Höhe, $Artikel->Attribute|array_column:'kAttribut')]}
oder
>> {assign var="currentAttribute" value=$Artikel->Attribute[array_search(H<![CDATA[¨]]>he, $Artikel->Attribute|array_column:'kAttribut')]}
Knallt es direkt und ich bekomme das:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/templates/rst2018/productdetails/details.tpl" on line 93 "{assign var="currentAttribute" value=$Artikel->Attribute[array_search(Höhe, $Artikel->Attribute|array_column:'kAttribut')]}" - Unexpected ";", expected one of: "","" , ")" <-- thrown in /includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 93
oder das hier:
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/templates/rst2018/productdetails/details.tpl" on line 93 "{assign var="currentAttribute" value=$Artikel->Attribute[array_search(Höhe, $Artikel->Attribute|array_column:'kAttribut')]}" - Unexpected "Ã", expected one of: "","" , ")" <-- thrown in /includes/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 93