Guest Posted December 6, 2008 Share Posted December 6, 2008 HI there, I have installed PayPal EC for OSCommerce V2.23 (Dec 4th) Everything seem to work ok, but when you are redirected back to the store from paypal, the shopping cart shows empty? I am guessing the error is coming from my html_output.php file so I thought to post part of my html_output.php file and see if someone can help me: // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } return $link; } Quote Link to comment Share on other sites More sharing options...
Guest Posted February 26, 2009 Share Posted February 26, 2009 Hi there. Did you ever solve this problem. I have a similar problem I think ... On return from PayPal EC my session seems to have been dropped and I am returned to an empty shopping cart. The order has not been added to osCommerce and the contents of the cart are still there when I log back in. Was this the same problems as you? Any help appreciated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.