Here's a quick hack of the googlecheckout.php which adds the reward_points_display module to Google Checkouts list of Order Total mods to ignore. Unfortunately is list is hard coded rather than databased hence the code change.
Just extract the php file to includes/modules/payment/
Last edited by hem; 5 May 2009 at 10:32 AM.
Thanks Hem
This change works great. It no longer shows the Rewards points line in Google checkout like before.
I don't know how familiar you are with Google Checkout but it works different than most payment modules. Once the customer goes to Google Checkout (they don't log into zencart) they don't come back to the site. Thus, checkout success page isn't hit. Zen cart gets a notification via responsehandler.php that a purchase was made and passes all the info on the order to zencart. It doesn't seem that something is getting triggered to award them there points when their order is created after notification from the responsehandler. Though it does show how many points were awarded on their invoice.
I have Reward Point Status Track set to:
Pend: [Pending, Processing, Google New, Google Processing] Earn: [Shipped, Google Shipped]
I have both Pending & Processing set because I had a problem with it changing from Pending to Processing so fast that it was like it was never in Pending status and didn't award points.
Thanks
Ken
Ken, I've checked it out and it's because the responsehandler does not call any of the ZenCart notifiers. As the "store points awarded" code is hooked to NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_CREATE_ADD_PRODUCTS this is never called and therefore no points get stored. I'm afraid that it's something the Google Checkout team will need to address.
Thanks Hem
Thats what I was afraid would be the case.
Just one more question on Google Checkout. Do you think it would be possible in some way to pass the info to Reward Points via Google Checkouts AddThirdPartyTracking in googlecheckout/library/googlecart.php (around line 389)? I know that is what JROX affiliate module has to do. an example line for JROX is:
$cart->AddThirdPartyTracking("www.YOURDOMAIN.com/JAMINSTALLATION/sale.php?",array('trans_id','amount' => 'order-total'));
Thanks
Ken
hello .. thx for the great work .. i've installed a modified payment module and have a problem when anybody want to buy anything above 1000 it gives me this error" Please make sure you entered the correct card information or contact your Card issuing Bank, then try again."
can you help me please. thanx
Bookmarks