Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Never reach checkout_success although purchase successful, sometimes no email sent


inra311

Recommended Posts

Trying to get this running with a fresh installation of 2.3.4BS, Paypal Standard, Paypal App 4.039 and today with 5.000.

 

Customers buys ->  is directed to papal ->  pays ->is directed back into my shop (to checkout_process although checkout_success is specified as Auto retun URL on Paypal website), and lands in the shopping cart with a note that his shopping cart is empty.

 

Especially in case of downloads it is important that he reaches checkout_succes to find the download link but ne never does.

 

Sometimes he gets an email, sometimes not .(OSC always says email sent) .. in the order history at OSC admin I see the status from preparing changed to 'money received,' but then preparing again (see screenshot, this is only in the history, the order itself stays at status 'money received', customer can download from his account 'view my orders' page, or via the link in the email (in case he gets one).

 

I searched the forum and found many with similar problems but hardly a solution...

 

-------

Settings:

Paypal: auto return on, to checkout_success (full URL starting with https://www....),PDT on, (also tried with checkou_process as auto return, same result)

 

OSC: Paypal Standard, PDT token entered, all three API credential and merchant ID entered

post-334884-0-36701100-1487370845_thumb.jpg

Edited by inra311
Link to comment
Share on other sites

I might have solved the problem myself...

 

I admit I am not a programmer but reading and trying to understand that paypal_standard.php I made this change:

 

 

// unregister session variables used during checkout
      tep_session_unregister('sendto');
      tep_session_unregister('billto');
      tep_session_unregister('shipping');
      tep_session_unregister('payment');
      tep_session_unregister('comments');

      tep_session_unregister('cart_PayPal_Standard_ID');

      tep_redirect(tep_href_link('checkout_success.php', '', 'SSL'));
    }

 

 

 

 

 

It was checkout_process.php before. Works now for me for the first time, as it was in my old shop. :D

 

Makes me wonder about two things:
- why was it to checkout_process? I want to confirm that the purchase was successful, and give the buyer the download link for downloads.

- is there any good reason why I should not edit this line?

Edited by inra311
Link to comment
Share on other sites

 

- is there any good reason why I should not edit this line?

 

Hmm, it seems stock quantity might not be reduced, and there os no confirmation email ... :wacko: 

Is it for this reason that it goes through checkout_process again? This one also ends with the same unregister code, in fact directed to checkout_success there! But it never arrives at that line, as my customer never reaches the success page...

And which file sends the email? There is almost identical send-email code in at least checkout_process.php, paypal_standard.php, and standard_ipn.php ...??? confusing..

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