Page 45 of 248 FirstFirst ... 3543444546475595145 ... LastLast
Results 441 to 450 of 2475
  1. #441
    Join Date
    Apr 2007
    Location
    Herts. UK
    Posts
    890
    Plugin Contributions
    4

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by hem View Post
    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.

  2. #442
    Join Date
    May 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by Einstin View Post
    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.

  3. #443
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by CJPinder View Post
    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
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  4. #444
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default 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.
    Last edited by hem; 5 May 2009 at 10:32 AM.
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  5. #445
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default 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

  6. #446
    Join Date
    Feb 2008
    Posts
    31
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by hem View Post
    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.



    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

  7. #447
    Join Date
    May 2007
    Posts
    15
    Plugin Contributions
    0

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

  8. #448
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by kenwahl View Post


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

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  9. #449
    Join Date
    Sep 2007
    Location
    Dublin, Ireland
    Posts
    1,288
    Plugin Contributions
    8

    Default 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:

    1. A better Customer Reward Point admin interface
    2. The ability to display earned and pending points in a customer email/newsletter
    3. 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???
    Andrew

    Andrew Moore
    Omnicia Agile Development
    www.omnicia.com

  10. #450
    Join Date
    Aug 2006
    Posts
    231
    Plugin Contributions
    0

    Default Re: Reward Points Module- Live Release now available.

    Quote Originally Posted by Rasyr View Post
    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...

 

 

Similar Threads

  1. v139h Reward Points module display order totals including reward points
    By irsarahbean in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Jun 2013, 01:19 AM
  2. Reward points module : 0 points earned
    By jonnyboy22 in forum Addon Payment Modules
    Replies: 5
    Last Post: 5 Jun 2012, 09:52 AM
  3. Reward Points module- points not calculated correctly
    By cpoet in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 9 Sep 2010, 05:02 PM
  4. Reward Points Module - Hide message when 0 points offered
    By expresso in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Dec 2008, 06:58 PM
  5. Experimental Reward Points Module
    By precursor999 in forum Addon Payment Modules
    Replies: 7
    Last Post: 2 Apr 2007, 09:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR