rendered paste body<?php
$checkout = $_SESSION['checkoutdata'];
if($_SESSION['nzshpcrt_checkouterr'] != null)
{
echo "".$_SESSION['nzshpcrt_checkouterr']."<br />";
$_SESSION['nzshpcrt_checkouterr'] = '';
}
if(get_option('permalink_structure') != '')
{
$seperator ="?";
}
else
{
$seperator ="&";
}
$currenturl = get_option('checkout_url') . $seperator .'total='.$_GET['total'];
if(is_numeric($_GET['total']) && !isset($_GET['result']))
{
?>
<div class="wrap">
<strong>Please enter your contact details:</strong><br />
Note, Once you press submit, you will need to have your Credit card handy.<br /><br />
Fields marked with an asterisk must be filled in.
<form action='<?php echo $currenturl;?>' method='POST'>
<table>
<tr>
<td>
* First Name:
</td>
<td>
<input type='text' value='<?php echo $checkout['firstname'] ?>' name='firstname' />
</td>
</tr>
<tr>
<td>
* Last Name:
</td>
<td>
<input type='text' value='<?php echo $checkout['lastname'] ?>' name='lastname' />
</td>
</tr>
<tr>
<td>
* Email:
</td>
<td>
<input type='text' value='<?php echo $checkout['email'] ?>' name='email' />
</td>
</tr>
<tr>
<td>
* Address:
</td>
<td>
<textarea name='address'><?php echo $checkout['address'] ?></textarea>
</td>
</tr>
<tr>
<td>
* Phone:
</td>
<td>
<input type='text' value='<?php echo $checkout['phone'] ?>' name='phone' />
</td>
</tr>
<?php
$termsandconds = get_option('terms_and_conditions');
if($termsandconds != '')
{
?>
<tr>
<td>
</td>
<td>
<input type='checkbox' value='yes' name='agree' /> I agree to The <a target='_blank' href='' class='termsandconds' onclick='window.open("<?php
echo "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."&termsandconds=true";
?>","","width=550,height=600,scrollbars,resizable"); return false;'>Terms and Conditions</a>
</td>
</tr>
<?php
}
else
{
echo "<input type='hidden' value='yes' name='agree' />";
echo "";
}
?>
<tr>
<td>
</td>
<td>
<input type='hidden' value='true' name='submitwpcheckout' />
<input type='submit' value='Make Purchase' name='submit' />
</td>
</tr>
</table>
</form>
</div>
<?php
}
else
{
echo "Please buy some products before using this page";
}
?>