View Full Version : send mail on clicking ecart's "Submit Order" button
pbartelt102585
06-05-2009, 06:05 AM
How can I send an email on a confirm.php (ecart) when the "Submit Order" button is clicked? The trigger "Button: Submit_order pressed" doesn't work. In the meantime I selected the trigger "any form post" but that's a bad solution because there is also the "Modify Information" button on the form and, last but not least, every time when the page is loaded the trigger is fired.
I use the PayPal Express Checkout. Hitting the "Submit Order" button redirects to PayPal.
Many thanks in advance.
Peter
Ray Borduin
06-05-2009, 07:56 AM
You would probably have to send the email after the user has returned from paypal.
Are you using express checkout or standard checkout? Sounds like you might be using standard.
pbartelt102585
06-06-2009, 02:02 AM
Bloody beginner with ecart and ue. In the checkout wizard I selected "Remotely - Website Payments Standard", my client doesn't want a credit card option. Is that the reason why? In the meantime I could make a test order but I've never seen the checkout_success.php in the browser after the payment was done and logged out from PayPal. Do I have to be logged in to PayPal before I submit the order?
Ray Borduin
06-08-2009, 06:12 AM
If you are using Remote and Paypal Standard, then the only way to send an email is to use an IPN page.
You should not need to be logged in to paypal before you submit the order. It should prompt you to sign in when you click the checkout button on the confirm page.
pbartelt102585
06-09-2009, 01:34 AM
Thanks Ray.
In the meantime I found out that I forgot the values for the hidden form variables "return" and "cancel return" and fixed them. This works - but only if the one who has payed will click the "return to shop" button on the paypal page. So which advantages do I will get by using an IPN page and how does this work?
I also need the posted value for the OrderID (store cart summary in database) on the confirmation email and as the value for the hidden form variable "invoice" but I think this belongs to the ecart forum?
(sorry if there are any stupid questions)
Ray Borduin
06-09-2009, 07:39 AM
IPN works even when they don't click the "return to shop" button and includes security that a simple redirect to success doesn't include.
The drawback is that it is often difficult to debug and complicated to understand. It sounds like the complexity of your application would require either IPN or a payment system other than paypal standard in order to pull off. The success page is not the answer.
pbartelt102585
06-09-2009, 07:56 AM
Thank you for that quick and clear answer. I will check these options, in order to make a decision.
sales377016
06-11-2009, 01:17 PM
I am having the same problem. A paypal developer has written a great program you can download and use for free, plus the forum is great and will walk you through it, but IPN does not solve the issue of emailing the customer. I've been told you would need to add your own email code for sending email receipts.
Here is the link to the developer site http://developer.paypal-portal.com/pdn/board/message?board.id=ipn&thread.id=14078
Believe me its worth getting!
Ray Borduin
06-11-2009, 01:31 PM
You could use Universal Email on the IPN page to send an email receipt.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.