Da wir immer den selben Brutto-Betrag verrechnen möchten (egal welches Lieferland und Steuer) habe ich die Berechnung der Mehrwertsteuer ins Template ausgelagert.
Falls es wer braucht… iso_collection
PHP-Code:
<?php
use Isotope\Isotope;
$arrShippingAddress = $this->collection->getShippingAddress();
?>
<tr>
<td>enthaltene Ust (<?php echo $GLOBALS['TL_LANG']['CNT'][$arrShippingAddress->country]; ?>)</td>
<?php if ($arrShippingAddress->country == "lu"): ?>
<td>17%</td>
<td>€ <?php echo number_format(($this->collection->total * 17 / 117), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "mt"): ?>
<td>18%</td>
<td>€ <?php echo number_format(($this->collection->total * 18 / 118), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "de" OR $arrShippingAddress->country == "ro" OR $arrShippingAddress->country == "cy"): ?>
<td>19%</td>
<td>€ <?php echo number_format(($this->collection->total * 19 / 119), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "at" OR $arrShippingAddress->country == "bg" OR $arrShippingAddress->country == "ee" OR $arrShippingAddress->country == "fr" OR $arrShippingAddress->country == "sk" OR $arrShippingAddress->country == "li" OR $arrShippingAddress->country == "ch" ): ?>
<td>20%</td>
<td>€ <?php echo number_format(($this->collection->total * 20 / 120), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "be" OR $arrShippingAddress->country == "cz" OR $arrShippingAddress->country == "es" OR $arrShippingAddress->country == "lt" OR $arrShippingAddress->country == "lv" OR $arrShippingAddress->country == "nl"): ?>
<td>21%</td>
<td>€ <?php echo number_format(($this->collection->total * 21 / 121), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "it" OR $arrShippingAddress->country == "si"): ?>
<td>22%</td>
<td>€ <?php echo number_format(($this->collection->total * 22 / 122), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "ie" OR $arrShippingAddress->country == "pl" OR $arrShippingAddress->country == "pt"): ?>
<td>23%</td>
<td>€ <?php echo number_format(($this->collection->total * 23 / 123), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "gr" OR $arrShippingAddress->country == "fi"): ?>
<td>24%</td>
<td>€ <?php echo number_format(($this->collection->total * 24 / 124), 2, ",", ""); ?></td>
<?php endif; ?>
<?php if ($arrShippingAddress->country == "dk" OR $arrShippingAddress->country == "hr" OR $arrShippingAddress->country == "se"): ?>
<td>25%</td>
<td>€ <?php echo number_format(($this->collection->total * 25 / 125), 2, ",", ""); ?></td>
<?php endif; ?>
</tr>
Lesezeichen