close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cart Empty after returning from PayPal on Checkout

Thread began 3/23/2010 6:05 pm by Larsort2375074 | Last modified 3/25/2010 4:26 pm by Dani Chankhour | 1041 views | 4 replies |

Larsort2375074

Cart Empty after returning from PayPal on Checkout

I am trying to implement Paypal into the checkout of the shopping cart I am developing using Ecart. I ran the checkout wizard, which created all of the normal checkout and PayPal checkout pages.
After adding a product to my cart, and starting checkout, I select Use PayPal from the checkout page. It goes to PayPal OK and I can log into my PP account, but when it comes back to the pp_confirm.php page, the cart is empty and I get redirected back to the cart page.
I have verified it is going to the pp_confirm.php page.

Why is the cart empty afterwards??? Is it a session problem? It is acting like the session was destroyed and restarted. One other thing. Since I am testing, I do not have an active SSL certificate on the site I am currently developing this on.

Sign in to reply to this post

Dani Chankhour

You are correct, this seems to be a session problem, and this could happen if you are being returned to a different domain.

do you have a url for me to do a quick test?

Sign in to reply to this post

Larsort2375074

I am using another site I hvae hosted to contain the folder for my shopping cart.

The URL is ecart-temp/

Let me know if this helps.

Sign in to reply to this post

Larsort2375074

I figured out why I am getting a new session created when I return from PayPal.
The original url was www.bw..... and the return url is bw..... The www is missing. I added in the www in the return and the cart is intact when I return now.

Is there a good way to determine if someone starts the site at bw... instead of www.bw.... ? It seems to me that the return url will need to be determined by the url they started at. Any suggestions?

Sign in to reply to this post

Dani Chankhour

I think you can use the server name to see the url, try placing this line of code at the top of the page in both cases and see if you get a different output:

<?php echo $_SERVER['SERVER_NAME']; ?>

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