Totally Zenned
- Join Date:
- Nov 2003
- Posts:
- 1,878
- Plugin Contributions:
- 5
Paypal Sessions Viewer + pushorder
Sometimes paypal IPN orders are not completed automatically (the customer has payed successfully, but the order does not appear in the admin and no
order emails are sent).
This contribution allows you to "push" these orders into your orders table. It is based on the Paypal Sessions Viewer by Dr. Byte + ShoeTick's update and pushorder addon.
Last minute notes:
-
You need to check the payments yourself. The script does not do this for you.
-
Repeated IPN's sent by Paypal allow Zen Cart to complete the order, even if the initial IPN failed. So it's usually best to wait a while to see if the order is completed automatically after all.
-
The security of the pushorder feature has improved a lot compared to v2.0. But I still recommend to rename (or even remove) pushorder.php, especially when it's not in use.
Version details:
Version 3.01
1- added possibility to add pushorder comments to the order comments (defined in configure file)2- added notify checkbox (send order emails or not)
3- added a link to the customer details page
4- some other small modifications
Version 3.0
1- fixed PHP5 issue with viewer (I hope)
- Added pagination
Now 20 sessions are listed per page (in older versions all sessions were listed)2- improved security
added ip address check, and fixed the (was not working in 2.0 !?) pushorder password protection3- added confirmation form to pushorder.php
4- fixed link to pushorder.php
5- defined pushorder.php filename
Makes it easier to rename the file (to improve security)6- added two configure files
admin/includes/extra_configures/pushorder.php
pushorder passwordand:
includes/extra_configures/pushorder.php
pushorder password (this and the admin pushorder password must match)
ip-address setting (enter the ip address of the admin that is allowed to push the paypal orders)7- removed the redirection back to the admin
your admin should not reside at https://www.yourdomain.nl/admin anyway, but at a secret location!8- added email notification
PAYPAL_PUSHORDER_SEND_EMAIL true/falseKnown issues:
- pushorders are not saved to the "PayPal Instant Payment Notifications" table.
- The pushorder do not follow the "normal code flow". So several zen notifiers will probably be skipped by it.
v 2.0
This is a the stuck paypal orders script by DrByte but with some major improvements.
Firstly, Instead of using $_SESSION to store the data I am using a variable name.
This fixes the bug that makes DrByte's version log you out of admin when you use it.Secondly, You can push the order into your orders database so that you can keep track
of inventory and orders.
Available for download from the addons area: http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=84