Gelöst Wawi 1.5.45 - Formulare - Rechnung - Email - Variantenwert ausgeben - wo liegt mein Fehler? O_O

mona

Sehr aktives Mitglied
26. April 2016
308
25
Hallo Formularexperten

Möchte in der Emailvorlage (html) bei den Rechnungsformularen die Variationsnamen und Werte drin haben, wenn welche vorhanden sind.
Siehe dazu ---HIER NEU bis HIER FERTIG NEU. Es wird aber keine Variation angegeben. (Ja, Vorlage hat eine drin zum überprüfen 😉)
Habe von der Emailvorlage nachfolgend den ganzen Abschnitt für Artikel kopiert. Woran könnte das liegen?

Code:
<h3>Artikel</h3>
                                                    <hr />
                                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" class="bodyPositions">
                                                    <thead>
                                                        <tr>
                                                            <th></th>
                                                            <th width="100%"></th>
                                                            <th></th>
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                        {% assign versandposition = 0 -%}
                                                        {% for position in Report.InvoicePosition -%}
                                                            {% if position.PositionType == 'ShippingPosition' -%}
                                                            {% assign versandart = position.Name -%}
                                                            {% if NettoPreiseBenutzen -%}
                                                            {% assign versandkosten = position.TotalNetPrice -%}
                                                            {% else -%}
                                                            {% assign versandkosten = position.TotalGrossPrice -%}
                                                            {% endif -%}
                                                            {% else -%}
                                                        <tr>     
                                                            <td width="80%" class="PositionDescription">
                                                                {{ position.Quantity}}{% if position.Unit != empty %}&nbsp;{{ Position.Unit }}{% else %}x{% endif %}
                                                                {{ position.Name }}<br/>
                                                                {% if IncludeArtikelnummern == false -%}
                                                                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="PositionProperties">
                                                                <tbody>                                                                 
                                                                
                                                                    </tr>                                                                 
                                                                </tbody>
                                                                </table>
                                                                {% endif -%}
                                                                {% if IncludeEinzelpreise == true -%}
                                                                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="PositionProperties">
                                                                <tbody>                                                                 
                                                                    <tr class="Einzelpreis">
                                                                        <td class="spacer"><div>&nbsp;</div></td>
                                                                        <td class="name">
                                                                            Einzelpreis:
                                                                        </td><td class="content">
                                                                            {% if NettoPreiseBenutzen %}{{ position.NetPricePerUnit | Nummer : 'C' | Replace: ' ','&nbsp;' }}{% else %}{{ position.GrossPricePerUnit | Nummer : 'C' | Replace: ' ','&nbsp;' }}{% endif %}
                                                                        </td>
                                                                    </tr>                                                                 
                                                                </tbody>
                                                                </table>  {% endif -%}
-------------------------------  ------ HIER NEU->>              {% if position.InvoicePositionConfiguration.size > 0 -%}
                                                                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="PositionProperties">
                                                                <tbody>
                                                                    {% for configuration in position.InvoicePositionConfiguration.size -%}
                                                                    <tr class="Variation">
                                                                        <td class="spacer"><div>&nbsp;</div></td>
                                                                        <td class="name">
                                                                            {{ InvoicePositionConfiguration.Name }}:
                                                                        </td><td class="content">
                                                                            {{ InvoicePositionConfiguration.ValueText }}
                                                                        </td>
                                                                    </tr>
                     ---------------------------          {% endfor -%}   ---------------------------> FERTIG NEU----------------------------------------------------------
                                                               
                                                                </tbody>
                                                                </table>
                                                                {% endif -%}                                                                    
                                                                                                                    
                                                            </td>
                                                            <td width="20%" class="PositionPrice">
                                                                {% if NettoPreiseBenutzen %}{{ position.TotalNetPrice | Nummer : 'C' | Replace: ' ','&nbsp;' }}{% else %}{{ position.TotalGrossPrice | Nummer : 'C' | Replace: ' ','&nbsp;' }}{% endif %}
                                                            </td>
                                                          
                                                        </tr>
                                                            {% endif %}
                                                        {% endfor -%}
                                                </tbody>
                                                </table>
 

mona

Sehr aktives Mitglied
26. April 2016
308
25
Gelöst - unten braucht es nur noch configuration.Name und configuration.ValueText ohne InvoicePosition 🙂 🙂
 
  • Gefällt mir
Reaktionen: Happy

Ähnliche Themen