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 | 847 views | 7 replies

Christopher WestCommunity Expert

Hi Jason I implimented the code you stated (had to change the else statement a little as it came up with a syntax error.

Its not working though, as when i click the button to go to checkout page it automatically sends me to the success.php page and comes up with this error:

"Duplicate entry '' for key 3"

Im attaching the 2 files, checkout.php and confirm.php pages.

I did 2 types of tests:

In my Admin I created 2 voucher codes one being £80 and the second being £79

I then created an order consisting off:
Product £68
Product Option £5

On the checkout page I was going to select the delivery cost of £7

This would then = £80 for the total order...

(so then I was going to test how the website tackles the grandtotal of £0 AND second test of grandtotal being £1 (If I had selected the voucher for £79).

However the logical error for all this is that the code you supplied is checking the grandtotal BEFORE i select my delivery option of £7 because it automatically bypasses the checkout and confirm pages and goes straight to success (then gives me that error "Duplicate entry '' for key 3")

I can see that if in the cart the grandtotal would be "currently" £73 (since i havent selected the delivery option on the checkout page) so the code assumes that the grandtotal is <=0.

help :)

Attached Files
redirection.zip

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

Content

rating

Layout

rating

Ease of use

rating

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...