Hab meine iso_invoice jetzt fast fertig. Falls es Dich interessiert habe ich sie unten eingefügt.
Dabei sind noch einige Punkte, die ich gerne verändert hätte, aber bisher noch nicht verstanden habe: Der Rechnungstitel (invoiceTitle) ist ein Mix aus Rechnungsnummer, Datum und Uhrzeit.Ich hätte das gerne irgendwie getrennt.
Am Ende, habe ich wie oft üblich einen Fußbereich eingestellt, der aber nicht ein echter "Footer" ist, sonder vom Inhalt verschoben wird. Auf der Seite des PDF Tools habe ich die Anleitung gefunden, wie man sich einen echten Fußbereich erstellen kann, allerdings gehört das nicht in die Template Datei sondern in IsotopeProductCollection.php wenn ich nicht nicht irre. Meine Frage wäre, ob ich in der IsotopeProductCollection.php Änderungen vornehmen darf, oder ob das wie bei den Templates updatesichter irgendwo geregelt ist?
PHP-Code:
<div style="font-size: 62.5%; font-family: Arial, Helvetica, sans-serif">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="50%" valign="bottom">
<h2 style="color: #000080; margin: 0px;"><?php echo $this->invoiceTitle; ?></h2>
</td>
<td align="right">
<img src="/tl_files/shop/logo_druck_rechnung.png" width="7cm">
</td>
</tr>
<tr>
<td>
<h3 style="margin-top: 10px;">Rechnungs-Adresse</h3>
<div><?php echo $this->info['billing_address']['info']; ?></div>
</td>
<td>
<h3 style="margin-top: 10px;">Versand-Adresse</h3>
<div><?php echo $this->info['shipping_address']['info']; ?></div>
</td>
</tr>
<tr>
<td>
<h3 style="margin-top: 10px;">Versand</h3>
<div>Versandart: <?php echo $this->info['shipping_method']['info']; ?></div>
<div><?php echo $this->info['shipping_method']['note']; ?></div>
</td>
<td >
<h3 style="margin-top: 10px;">Zahlungsart</h3>
<div>Zahlung per: <?php echo $this->info['payment_method']['info']; ?></div>
<div><?php echo $this->info['payment_method']['note']; ?></div>
</td>
</tr>
</table>
<br>
<br>
<table border="0" cellspacing="0" cellpadding="5" width="100%" style="margin-left:25px; margin-right:25px">
<thead>
<tr style="background-color:#000080;color:#ffffff;">
<td width="50%" colspan="3" align="left"><b>Artikel</b></td>
<td width="15%" align="right"><b>Menge</b></td>
<td width="15%" align="right"> <b>Einzelpreis</b></td>
<td width="20%" colspan="2" align="right"> <b>Gesamt</b></td>
</thead>
</tr>
<?php foreach( $this->items as $item ): ?>
<tr>
<td width="60%">
<?php echo $item['name']; ?><br />
<?php if(is_array($item['product_options']) && count($item['product_options'])): ?>
<ul style="margin: 5px;">
<?php foreach($item['product_options'] as $option): ?>
<li><strong><?php echo $option['label']; ?>:</strong> <?php echo $option['value']; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</td>
<td width="5%"><?php echo $item['quantity']; ?> x </td>
<td width="15%" align="right"><?php echo $item['price']; ?></td>
<td width="20%" align="right"><?php echo $item['total']; ?></td>
</tr>
<?php endforeach; ?>
<tr>
<td colspan="5">
</td>
</tr>
<tr>
<td colspan="2"><?php echo $this->subTotalLabel; ?></td>
<td colspan="2" align="right"><?php echo $this->subTotalPrice; ?></td>
</tr>
<?php if (is_array($this->surcharges)): foreach( $this->surcharges as $surcharge ): ?>
<tr>
<td colspan="2"><?php echo $surcharge['label']; ?></td>
<td align="right"><?php echo $surcharge['price']; ?></td>
<td align="right"><?php echo $surcharge['total_price']; ?></td>
</tr>
<?php endforeach; endif; ?>
<tr>
<td colspan="5">
</td>
</tr>
<tr>
<td colspan="2"><b><?php echo $this->grandTotalLabel; ?></b></td>
<td colspan="2" align="right"><b><?php echo $this->grandTotal; ?></b></td>
</tr>
</table>
<br>
<br><br>
<br>
<hr style="color: #969696; height: 1px;">
<br>
<br>
<br>
<br><br>
<br>
<table border="0" cellpadding="0" cellspacing="0" style="color: #969696;">
<tr>
<td width="25%">
<p>Anschrift</p>
</td >
<td width="25%">
<p>Telefon</p>
</td>
<td width="25%">
<p>Bankverbindung:</p>
</td>
<td width="25%">
<p>Handelsregister: </p>
</td>
</tr>
</table>
</div>
Lesezeichen