Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal Express Checkout & Empty Shopping Cart?


Guest

Recommended Posts

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;

}

Link to comment
Share on other sites

  • 2 months later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...