keat Posted July 15, 2016 Share Posted July 15, 2016 Cubecart sends an admin email notifying of a customer order during one of two stages. 1. Pending or 2. Processing. If a customer transfers to PayPal, but decides not to pay, then the order remains in the ‘Pending’ Stage. If a customer transfers to PayPal, makes a payment, and instantly closes his browser, then the order can remain in the ‘Pending’ stage. We also use the ‘Print Order Form’ gateway, which always remain in the ‘Pending’ stage. If we were to configure the cart, to notify at the ‘Processing’ stage, then we’d never know about those orders. So for obvious reasons, we have the cart configured to send the admin email at the ‘Pending’ stage, and these we receive without any issue. However, this unfortunately has a fundamental flaw, in the respect that a customer can (and quite often will) go back and change his order. The cart does not send another email to notify of the order change. At the moment, it sends this admin email only once. Customer clicks ‘Secure Checkout’, admin email is sent. Customer clicks back button and changes order. Customer clicks ‘Secure Checkout’ button, no second email is sent. So I’m looking at two possible ways to fix this. Rewrite the code so that the cart sends an admin email every time the ‘Secure Checkout’ button is pressed. (preferred) Or Move the email trigger, so that it’s triggered at the point where the customer has chosen his preferred gateway and clicked the button to make his payment. Does anyone fancy taking a look at this ? Quote Link to comment Share on other sites More sharing options...
Noodleman Posted September 13, 2016 Share Posted September 13, 2016 PayPal uses an IPN. It sends a status update from their systems to your store. If the customer paid, the order will go to a processing status unless the IPN failed to connect to your store, or there was a system fault. You should validate if the IPN is working correctly in your store. it's a very simple change to make the print order form set the order status to processing rather than pending. I've done it for other people in the past who had similar requirements to yourself. If you needed some other custom solution I can definately assist. 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.