Right, I have tried implementing the above code but seem to be having no joy, can someone please point me in the right direction? Below is the code for the whole page. It is a tpl file, does that make any difference?
<!--{include file="header.tpl" title="Image"}-->
<div align="center">
<table class="form" cellspacing="0">
<tbody>
<tr>
<td colspan="2" align="center" bgcolor="#555555"><b>Event</br></td>
</tr>
<tr>
<td class="fieldName" width="50%">Date:</td>
<td width="50%">
<a href="<!--{url name="EventIndex" current_ym=$event->eventDate|date_format:"%Y-%m"}-->"><!--{$event->eventDate}--></a></td>
</tr>
<tr>
<td class="fieldName">Name:</td>
<td><a href="<!--{url name="Event" id=$event->id}-->"><!--{$event->name}--></a></td>
</tr>
<tr>
<td class="fieldName">Description:</td>
<td><!--{$event->description}--></td>
</tr>
<tr>
<td class="fieldName">Venue:</td>
<td><!--{$venue->title}--></td>
</tr>
<tr>
<td class="fieldName">Dress Code:</td>
<td><!--{$event->dresscode}--></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#555555"><b>Image</br></td>
</tr>
<tr>
<td class="fieldName" width="50%">Date added:</td>
<td width="50%"><!--{$object->createDT}--></td>
</tr>
<tr>
<td class="fieldName" width="50%">Title:</td>
<td width="50%"><!--{$object->title}--></td>
</tr>
<tr>
<td class="fieldName" width="50%">Hits:</td>
<td width="50%"><!--{$object->hits}--></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#555555">Purchased prints are of higher quality and without the watermarks seen here.</td>
</tr>
<tr>
<td colspan="2" align="center"> <!--{img_image _object=$object _type="big"}--></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#555555"><b>Prints</br></td>
</tr>
<tr>
<td colspan="2" align="center">
<!--{if $__currentUser->id}-->
<table cellpadding="0" cellspacing="10">
<tr>
<!--{foreach from=$printSizes item=item}-->
<td align="center">
<b><!--{$item->title}--></b><br>Price: <!--{$item->price}--><br>
<form target="paypal" action="<!--{$payment.paypal_address}-->" method="post">
<input type="submit" class="but" VALUE="Add to Basket">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="cart">
<input type="hidden" name="business" value="<!--{$payment.paypal_id_prints}-->">
<input type="hidden" name="item_name" value="<!--{$object->title}-->(<!--{$item->title}-->)">
<input type="hidden" name="item_number" value="print<!--{$object->id}--><!--{$__currentUser->id}--><!--{$item->id}-->">
<input type="hidden" name="amount" value="<!--{$item->price}-->">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
</form>
</td>
<!--{foreachelse}-->
<td>No Prints available</td>
<!--{/foreach}-->
</tr>
</table>
<!--{else}-->
You need to <a href="<!--{url _name='Login'}-->">login</a> to buy prints
<!--{/if}-->
</td>
</tr>
</tbody>
</table>
</div>
<!--{include file="footer.tpl"}-->[/code]