Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Google checkout not working with coupons

    Well
    I have google checkout installed
    Seems to work fine without coupons
    When I use coupons
    I seem to be getting the message

    Sorry, the minimum purchase hasn't been reached to use this coupon


    I debugged the problem in the file responsehandler.php and found that the if comparison in the statement
    Code:
    } else if ($coupon->fields['coupon_minimum_order'] > 0 && 
    $order->info['total'] < $coupon->fields['coupon_minimum_order']) {
    $order->info['total'] is always getting a value of 0

    Any clue why its behaving this way??
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  2. #2
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: Google checkout not working with coupons

    I did a print of the variable $order->info and it can be clearly seen that total is coming as zero

    //Added the following code in responsehandler.php before the if loop
    file_put_contents('sample123.txt', serialize($order->info));

    Code:
    a:16:{s:12:"order_status";s:1:"1";s:8:"currency";s:3:"USD";
    s:14:"currency_value";s:10:"1.00000000";s:14:"payment_method";
    N;s:19:"payment_module_code";N;s:11:"coupon_code";N;
    s:15:"shipping_method";N;s:20:"shipping_module_code";N;
    s:13:"shipping_cost";N;s:8:"subtotal";i:0;s:12:"shipping_tax";
    i:0;s:3:"tax";i:0;s:5:"total";i:0;s:10:"tax_groups";a:0:{}s:8:"comments";
    s:0:"";s:10:"ip_address";s:29:"74.125.64.113 - 74.125.64.113";}
    Can someone help
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

 

 

Similar Threads

  1. Coupons not working with Google Checkout
    By raphael in forum Addon Payment Modules
    Replies: 0
    Last Post: 28 Jan 2011, 10:57 PM
  2. Google Checkout not working with IE8
    By tdelaney in forum Addon Payment Modules
    Replies: 1
    Last Post: 27 Jul 2010, 09:43 PM
  3. table rate shipping not working with google checkout
    By spikeycactus in forum Addon Payment Modules
    Replies: 5
    Last Post: 20 Apr 2009, 11:15 AM
  4. big_royal_mail_2.21a NOT WORKING WITH Google Checkout
    By khalidj786 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 21 Sep 2007, 10:44 AM
  5. Coupons Not working - checkout still asks for money
    By designerman in forum Managing Customers and Orders
    Replies: 5
    Last Post: 24 Aug 2007, 06:07 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