Results 1 to 9 of 9
  1. #1
    Join Date
    May 2007
    Posts
    114
    Plugin Contributions
    0

    Default Google Checkout and Free shipping - SOLUTION HERE

    Problem:
    If "Free shipping options" method is enable in ZC, GC makes all shipping free (including the ones you dont want) if responsehandler times out (which happens quite often).

    After spending a night searching for a solution and reading through dozens of posts, i finally decided to try to hack it myself.

    Solution:

    edit file /store/googlecheckout/gcheckout.php

    insert the following code to line 462:

    PHP Code:
            //BEGIN: Hack to remove FreeOptions shipping 
        // FreeOptions shipping is removed from the list of shipping methods available to Google Checkout 
        // if it does not meet the Free shipping criteria (variable $price is not set by the quote() function).
        
    if($curr_ship == "FREEOPTIONS"){
                
    $module = new $module_name;
                
    $quote $module->quote();
                
    $price $quote['methods'][0]['cost'];
                if (
    is_null($price)) {
                    
    $enable "False";
                    unset(
    $module_info_enabled['FREEOPTIONS']);
                }
            }
        
    //END: Hack to remove FreeOptions shipping 


    or just replace your file by the one attached.

    The code removes FreeOptions shipping from the list of shipping methods available to Google Checkout if it does not meet the Free shipping criteria.
    I implemented this on ZC v1.3.7 with GC v1.45 and it works well.
    Good luck!
    Attached Files Attached Files
    Last edited by greenhat; 15 Dec 2008 at 06:34 AM.

  2. #2
    Join Date
    May 2007
    Posts
    114
    Plugin Contributions
    0

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    use this file instead (small change). not sure how to remove the attachment from the previous post.
    Attached Files Attached Files

  3. #3
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    Why not also post this in Google Checkout thread..
    Single posts are not always found by zencart forum
    members...

  4. #4
    Join Date
    May 2007
    Posts
    114
    Plugin Contributions
    0

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    I am about to post a reference to this thread there. GC thread is really huge and it's too easy for a solution to get lost there.

  5. #5
    Join Date
    May 2007
    Posts
    114
    Plugin Contributions
    0

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    just did a quick search to see if anyone else needs this, and found this thread (i wish i found it sooner). It's actually a cleaner solution than mine:

    http://www.zen-cart.com/forum/showthread.php?t=112491

  6. #6
    Join Date
    May 2008
    Posts
    21
    Plugin Contributions
    0

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    Thanks a bunch! I've been screwing around with this for hours, and I finally got it to work! Now the FREE SHIPPING options only show up like I have it set on Zen Cart, for orders over $25,. Sure do appreciate the coding fix!

  7. #7
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    This fix wont work with the latest version.... back to square 1

  8. #8
    Join Date
    Sep 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    It looks like it isnt timing out for me anymore and the free shipping options aren't shown ever now. Make sure to edit out any shipping methods youa re not using in the shipping_methods.php file... it helps speed this up.

  9. #9
    Join Date
    Apr 2010
    Posts
    44
    Plugin Contributions
    0

    Default Re: Google Checkout and Free shipping - SOLUTION HERE

    You are my hero! thanks

 

 

Similar Threads

  1. Free shipping & Google Checkout
    By roger06 in forum Addon Payment Modules
    Replies: 6
    Last Post: 15 Dec 2008, 07:03 AM
  2. Free Shipping Options on Google Checkout
    By xbboychink in forum Addon Payment Modules
    Replies: 1
    Last Post: 5 Mar 2008, 06:46 PM
  3. Free Shipping Options on Google Checkout
    By xbboychink in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Feb 2008, 01:36 AM
  4. Can I set shipping as free and send to google checkout
    By jwball in forum Addon Shipping Modules
    Replies: 1
    Last Post: 20 Apr 2007, 10:07 AM
  5. Google Checkout - Duplicate shipping name FREE SHIPPING! found
    By krullkar in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 3 Apr 2007, 02:57 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