Neu Bestimmte Attribute mit Umlaut im Shop anzeigen

WAM

Aktives Mitglied
11. Mai 2018
8
0
Code:
<div class="product-attributes">
            {block name="productdetails-attributes"}
            <div class="table-responsive">
                <table class="table table-striped table-bordered">
                    <tbody>
                    <tr class="attr-custom">
                    <td class="attr-label word-break">Breite</td>
                    <td class="attr-value">{assign var="attrname" value="Breite"}
                    {$Artikel->AttributeAssoc.$attrname}</td>
                    </tr>
                    <tr class="attr-custom">
                    <td class="attr-label word-break">Tiefe</td>
                    <td class="attr-value">{assign var="attrname" value="Tiefe"}
                    {$Artikel->AttributeAssoc.$attrname}</td>
                    </tr>               
                    <tr class="attr-custom">
                    {assign var="currentAttribute" value=$Artikel->Attribute[array_search(17693, $Artikel->Attribute|array_column:'kAttribut')]}
                    <td class="attr-label word-break">{$currentAttribute->cName} </td>
                    <td class="attr-value">{$currentAttribute->cWert}</td>

                    </tr>
                    </tbody>{* /attr-group *}
                </table>
            </div>
            {/block}
        </div>
 

WAM

Aktives Mitglied
11. Mai 2018
8
0
🙂 ich hatte STRG Z gemacht nachdem es nicht Funktioniert hatte

Code:
.....<tr class="attr-custom">
                   {assign var="currentAttribute" value=$Artikel->Attribute[array_search(3569, $Artikel->Attribute|array_column:'kAttribut')]}
                   <td class="attr-label word-break">{$currentAttribute->cName} </td>
                   <td class="attr-value">{$currentAttribute->cWert}</td>
</tr>......

Der geht aber auch nicht.
 

Ähnliche Themen