In der Vorlage für die Versandbestätigung ist ein Ende einer Schleife an einer falschen Stelle. In Zeile 822 muss das {% endfor -%} zwischen Zeile 818 / 819 eingefügt werden. Ansonsten zerschießt das Layout bei mehren Paketen.
Also aus
wird:
Also aus
PHP:
<!-- BEGIN PAKETE // --> <h3>Die Lieferung besteht aus folgenden Teilen</h3> <hr /> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="bodyPositions"> <thead> <tr> <th>Versandart</th> <th width="100%">Sendungsverfolgung</th> <th>Hinweis</th> </tr> </thead> <tbody> {% for paket in Vorgang.Pakete -%} {% capture name %}{% if paket.Versandart.Name != empty %}{{paket.Versandart.Name}}[{{ paket.Logistiker.Name }}]{% else %}Lieferung durch {{ paket.Logistiker.Name }}{% endif %}{% endcapture -%} <tr> <td>{{ name }}</td> <td class="PositionDescription"> {% capture trackingid -%}{% if paket.TrackingID != empty -%}{{ paket.TrackingID }}{% else %}Keine Tracking-ID vorhanden{% endif %}{% endcapture %} {% if paket.TrackingURL != empty -%} <a href="{{paket.TrackingURL}}">{{ trackingid }}</a> {% else -%} {{ trackingid }} {% endif -%} </td> <td>{{ paket.Hinweis }}</td> </tr> </tbody> </table> <p>Hinweis: Es kann bis zu 24h dauern, bis die Daten zur Sendungsverfolgung beim Dienstleister abgerufen werden können.</p> {% endfor -%} <!-- END PAKETE // -->
wird:
PHP:
<!-- BEGIN PAKETE // --> <h3>Die Lieferung besteht aus folgenden Teilen</h3> <hr /> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="bodyPositions"> <thead> <tr> <th>Versandart</th> <th width="100%">Sendungsverfolgung</th> <th>Hinweis</th> </tr> </thead> <tbody> {% for paket in Vorgang.Pakete -%} {% capture name %}{% if paket.Versandart.Name != empty %}{{paket.Versandart.Name}}[{{ paket.Logistiker.Name }}]{% else %}Lieferung durch {{ paket.Logistiker.Name }}{% endif %}{% endcapture -%} <tr> <td>{{ name }}</td> <td class="PositionDescription"> {% capture trackingid -%}{% if paket.TrackingID != empty -%}{{ paket.TrackingID }}{% else %}Keine Tracking-ID vorhanden{% endif %}{% endcapture %} {% if paket.TrackingURL != empty -%} <a href="{{paket.TrackingURL}}">{{ trackingid }}</a> {% else -%} {{ trackingid }} {% endif -%} </td> <td>{{ paket.Hinweis }}</td> </tr> {% endfor -%} </tbody> </table> <p>Hinweis: Es kann bis zu 24h dauern, bis die Daten zur Sendungsverfolgung beim Dienstleister abgerufen werden können.</p> <!-- END PAKETE // -->