OK, her kommer min kode så:
<?
$VID = session_id();
// **** Start ****
// Head of the template
switch ($svTemplatePart) {
case "start":
?>
<!-- <?php echo $cfgTplPath ?>/receipt_table.tpl (start) -->
<table border="0" width="100%" cellpadding=3 cellspacing=0 bordercolor="#000000" align="center">
<tr>
<td colspan="6" class=topic>Kvittering</td>
</tr>
<tr>
<td colspan="6" class="bodytext">
Din bestilling og adresse info.
</td>
</tr>
<tr>
<td class="topic">Vare</td>
<td class="topic">Antal</td>
<td class="topic" align="right" colspan="2">Pris</td>
<td class="topic" align="right" colspan="2">Total</td>
</tr>
<?php
// **** Loop ****
// Loop every product
break;
case "loop":
?>
<tr>
<td class="bodytext" valign="top" wrap>
<b><? echo $svName ?></b>
</td>
<td class="bodytext" valign="top">
<? echo $nQuantity ?>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class="bodytext"><b>DKK.:</b></div>
</td>
<td class="bodytext" valign="top" align="right">
<div class="bodytext"><b><?=$nTaxPrice?></b><br>(DKK.<? echo $nPrice ?>)</div>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class="bodytext"><b>DKK.:</b></div>
</td>
<td class="bodytext" valign="top" align="right">
<div class="bodytext"><b><?=$nSumTaxPrice?></b><br>(DKK.<? echo $nSumPrice ?>)</div>
</td>
</tr>
<?php
// **** Versandkosten ****
// Shipping costs
break;
case "shipcost":
?>
<tr>
<td class="bodytext" valign="top" align="right" colspan="4">
<b>Forsendelsesomk.</b>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class=bodytext><b>DKK.:</b></div>
</td>
<td class="bodytext" align="right" valign="top">
<div class="bodytext"><b><? echo $saShipCost ?></b></div>
</td>
</tr>
<tr>
<td class="bodytext" valign="top" align="right" colspan="4">
<b>Vægt.</b>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class=bodytext></div>
</td>
<td class="bodytext" align="right" valign="top">
<div class="bodytext"><? echo $svWeight ?> kg.</div>
</td>
</tr>
<?php
// **** End ****
// End of the template
break;
case "end":
?>
<tr>
<td colspan="6"><hr noshade></td>
</tr>
<tr>
<td class="bodytext" valign="top" align="right" colspan="4">
<b>eksp. gebyr.</b>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class=bodytext><b>DKK.:</b></div>
</td>
<td class="bodytext" align="right" valign="top">
<div class="bodytext"><b><? echo $nShippingCosts2 ?></b></div>
</td>
</tr>
<?
if($saShipCost4!="0")
{
?>
<tr>
<td class="bodytext" valign="top" align="right" colspan="4">
<b>Kreditkort gebyr</b>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class=bodytext><b>DKK.:</b></div>
</td>
<td class="bodytext" align="right" valign="top">
<div class="bodytext"><b><? echo FormatPrice($saShipCost4) ?></b></div>
</td>
</tr>
<?}?>
<?
if($saShipCost3!="0")
{
?>
<tr>
<td class="bodytext" valign="top" align="right" colspan="4">
<b>Efterkravs gebyr.</b>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class=bodytext><b>DKK.:</b></div>
</td>
<td class="bodytext" align="right" valign="top">
<div class="bodytext"><b><? echo FormatPrice($saShipCost3) ?></b></div>
</td>
</tr>
<?}?>
<tr>
<td class="bodytext" valign="top" align="right" colspan="4" class="content">
<b>Total-Brutto:</b>
</td>
<td class="bodytext" valign="top" align="right" nowrap>
<div class=bodytext><b>DKK.:</b></div>
<div class=bodytext>€:</div>
</td>
<td class="bodytext" align="right">
<div class="bodytext"><b><? echo $nTotalSumNet ?></b></div>
<div class="bodytext"><? echo $nFoCuTotalSumNet ?></div>
</td>
<td class="bodytext"> </td>
</tr>
<tr><td colspan="6">
<hr noshade color="#000000">
</tr>
</table>
<table border="0" width="100%" cellpadding=3 cellspacing=0 align="center">
<tr>
<td colspan="2" class=topic>Bestillings- og leveringsadresse</td>
</tr>
<tr>
<td class="bodytext" valign="top" align="right" width="20%">Bestillingsadresse:</td>
<td class="bodytext" valign="top" align="left" width="80%">
<?php echo $saAdress["company"] ?><br>
<?php echo $saAdress["salutation"] ?>
<?php echo $saAdress["firstname"] ?>
<?php echo $saAdress["surname"] ?>
<br>
<?php echo $saAdress["street"] ?>
<br>
<?php echo $saAdress["zipcode"] ?>
<?php echo $saAdress["city"] ?>
</td>
</tr>
<tr>
<td class="bodytext" valign="top" align="right">Leveringsadresse:</td>
<td class="bodytext" valign="top" align="left">
<?php echo $saAdress["da_company"] ?><br>
<?php echo $saAdress["da_salutation"] ?>
<?php echo $saAdress["da_firstname"] ?>
<?php echo $saAdress["da_surname"] ?>
<br>
<?php echo $saAdress["da_street"] ?>
<br>
<?php echo $saAdress["da_zipcode"] ?>
<?php echo $saAdress["da_city"] ?>
</td>
</tr>
<tr>
<td class="bodytext" valign="top" align="right">Betalingsform:</td>
<td class="bodytext" valign="top" align="left">
<?php echo $saAdress["order_type"] ?>
</td>
</tr>
<tr>
<td class="bodytext" colspan="1" align="left">
</td>
<td class="bodytext" colspan="1" align="right">
Afslut bestillingen
<?if($saAdress["order_type"]=="Kreditkort")
{
$nTotalSumNet = str_replace(",", ".", $nTotalSumNet);
$nTotalSumNet = $nTotalSumNet*100;
echo "<form action='
https://www.freepay.dk/ui/pages/external/relay.aspx/3333701/?nCustomerID=$nCustomerID&VID=$VID&orderid=$saOrderNumber&amount=$nTotalSumNet&erhverv=true' method='post'>";
}
else
{?>
<form action="<? echo $cfgFileOrderExecErhverv ?>" method="POST">
<?}?>
<input type="hidden" name="VID" value="<? echo $VID ?>">
<input type="hidden" name="nCustomerID" value="<? echo $nCustomerID ?>">
<input type="image" name="btnOrderExec" src="<?php echo $cfgTplPath ?>/images/order_now.gif" alt="Afslut bestillingen">
</form>
</td>
</tr>
</table>
<?php
// **** Switch End ****
break; } ?>