close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

sending to success if no need for payment on paypal express

Thread began 5/25/2012 9:37 am by Christopher West | Last modified 5/30/2012 11:40 am by Christopher West | 863 views | 7 replies

Christopher WestCommunity Expert

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 } ?>

Attached Files

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...