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!
Bookmarks