Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
hem
The IPN mod does use notifiers though (Google Checkout doesn't). All I can think is that the mod does not call any user created classes. The problem is that debugging IPN is close to impossible.
IIRC in ZC1.3.7 the PayPal IPN Handler uses its own application_top.php file which does not load any of the auto loaders so user defined notifiers and classes will not get loaded. ZC1.3.8 uses the standard application_top so autoloaders should get loaded. I don't recall ipn_main_handler.php triggering any notifiers at the point of order creation or status update though.
The last time I had to hook into the order creation process I ended up just changing the includes/classes/order.php file. It meant changing a core file but it ensured that all orders were caught and everything was simpler.
Regards,
Christian.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
Einstin
Andrew,
Tried the new class files posted at
http://www.zen-cart.com/forum/showpo...&postcount=413 and had an order come in last night using PayPal IPN and was an instant payment transaction type unique. No points were added to the customers pending balance. No errors were shown or logged anywhere that I could find. Had to add the points manually for the customer this morning.
Same here although only happened on one sale as the otherts just sat in pending.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
CJPinder
The last time I had to hook into the order creation process I ended up just changing the includes/classes/order.php file. It meant changing a core file but it ensured that all orders were caught and everything was simpler.
Regards,
Christian.
I really don't want to hack the core orders.php file as this could have severe implications for anyone using ZenCart, not only those who are using PayPal IPN
Re: Reward Points Module- Live Release now available.
Okay, I've had a long hard look at the IPN code and followed through the logic. I nearly wrote a test environment which would simulate a valid IPN session but then sanity kicked in.
I think I may have been wrongly assuming that my observer class never got called. It looks like now that the class is being called but IPN is not passing the customer_id via a $_SESSION variable.
So, I've done two things. I've changed the hook (again) and also told the mod to look for the customer_id in other places.
Fingers crossed that this works. At this stage I've spent more time trying to debug IPN than it took me to write the mod in the first place.
Re: Reward Points Module- Live Release now available.
Okay, I have installed this latest observer class. Will let you know as soon as I have a IPN customer and let you know whether or not it works
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
hem
Okay, I've had a long hard look at the IPN code and followed through the logic. I nearly wrote a test environment which would simulate a valid IPN session but then sanity kicked in.
I think I may have been wrongly assuming that my observer class never got called. It looks like now that the class is being called but IPN is not passing the customer_id via a $_SESSION variable.
So, I've done two things. I've changed the hook (again) and also told the mod to look for the customer_id in other places.
Fingers crossed that this works. At this stage I've spent more time trying to debug IPN than it took me to write the mod in the first place.
:clap:
Hem
This new class.reward_points.php fixed the Google Checkout problem! It now awards points with Google Checkout. Outstanding job! Thanks for all the hard work I know it was a pain and time consuming to fix. Hopefully it also fixed the Paypal IPN issue (I don't use Paypal and can't test it).
Thanks
Ken
Paws4Deals
Re: Reward Points Module- Live Release now available.
Cheers for the update and all your hard work, I have installed the new class and will report back if it works when someone next uses paypal on my site.
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
kenwahl
:clap:
Hem
This new class.reward_points.php fixed the Google Checkout problem! It now awards points with Google Checkout. Outstanding job! Thanks for all the hard work I know it was a pain and time consuming to fix. Hopefully it also fixed the Paypal IPN issue (I don't use Paypal and can't test it).
Thanks
Ken
Paws4Deals
I just came here to post that the new version should also fix the Google Checkout problem too. You beat me to it. :P
Re: Reward Points Module- Live Release now available.
Okay, presuming Paypal IPN and Google Checkout are now working (fingers crossed) I can now devote so time into adding further features. I have on the wishlist:
- A better Customer Reward Point admin interface
- The ability to display earned and pending points in a customer email/newsletter
- Round points on quantity*price rather than just price.
The 3rd item is where 0 points are being awarded for an item priced say 0.5 even when 20 of them are purchased. Just out of interest how would people expect to see the Reward Points displayed for this item??? Have something like "buy 2 and get 1 reward point"???
Anyone any other items I should add to the wishlist???
Re: Reward Points Module- Live Release now available.
Quote:
Originally Posted by
Rasyr
Okay, I have installed this latest observer class. Will let you know as soon as I have a IPN customer and let you know whether or not it works
Sorry, but no points were awarded (pending) to the Paypal customer who made a purchase last night...