close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal "Error Detected"

Thread began 1/04/2011 5:43 pm by Bknvc1111729 | Last modified 1/05/2011 12:13 pm by Jason Byrnes | 2211 views | 5 replies |

Bknvc1111729

PayPal "Error Detected"

I have made several carts using eCart and PayPal as my main checkout gateway. The site is live (www.tigerdio.com) and I am getting the following error when I try to checkout.

Error Detected
Your shopping cart is empty

The order is being stored in the database but PayPal seems to not be getting any data. Any ideas?

Thanks

Sign in to reply to this post

Bknvc1111729

here is the confirm file I am using for this site

Attached Files
Confirm.zip
Sign in to reply to this post

Ray BorduinWebAssist

Is there a particular product that caused that error? I just went through the process and got to paypal and it displayed the item in my cart. Maybe a particular item is causing an issue?

Sign in to reply to this post
Did this help? Tips are appreciated...

Jason ByrnesWebAssist

the cart information is sent to paypal in hidden form elements.


when i view source of the confimr page, the item name is sent as:
<input type="hidden" name="item_name_1" id="item_name_1" value=""Sunken Road"" />


it looks there are double quotes being forced around the item name when it goes into the cart, those should not be there, it making the name look like an empty value.

on the confirm page, change:

php:
<input type="hidden" name="item_name_<?php echo $eCart1_Index+1?>" id="item_name_<?php echo $eCart1_Index+1?>" value="<?php echo $eCart1->DisplayInfo("Name"?>" />



to:

php:
<input type="hidden" name="item_name_<?php echo $eCart1_Index+1?>" id="item_name_<?php echo $eCart1_Index+1?>" value="<?php echo str_replace("\""""$eCart1->DisplayInfo("Name")) ?>" />
Sign in to reply to this post

Bknvc1111729

Figured out the issue. It was the quotes that were in the product's name that was throwing the error message. Using the code that Jason Byrnes suplied me curred the issue.

Thank you for help

Sign in to reply to this post

Jason ByrnesWebAssist

Great, glad to hear it is working.

Sign in to reply to this post

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