Jason, I was thinking of using this code in the checkout.php file but when i test this...the sessions arnt being setup so errors occur on the success page due to no sessions. but the sessions are created if the page goes to paypal. just wondered why they dont get set any other way as i assumed they were set on any post.
ive attached the original files to show code structure (with the below code to check for orders that are zero. (also how can i code it so that if the voucher code is £45 and the order is £35 that the order invoices wont display £-10 (would prefer it just to say £0 but that would mean i woul need to hand code every single reference of the total cost on any page that displays them. is there another easier way to just display £0 rather then any negative value?
the code i was thinking of using for the checking of orders are that <= 0 is:
<?php if(isset($_SESSION['FormVoucherAmount']) && $_SESSION['FormVoucherAmount'] != "" && $DinkyCart->GrandTotal() < 0.01) { ?>
<form name="PayPal_ExpressCheckout_form" action="confirm.php" method="post">
<?php } else { ?>
<form name="PayPal_ExpressCheckout_form" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post">
<?php } ?>