ok... reinstalled 1.0.5 and first thing I noticed is that it is passing my FedEx/USPS options to GCO, but they all have no monetary value?
Printable View
ok... reinstalled 1.0.5 and first thing I noticed is that it is passing my FedEx/USPS options to GCO, but they all have no monetary value?
really I'm not trying to post so much... but,
the no monetary value is my fault... I'm on a new testing server and google is calling the production server's address for the reference handler for some reason. This will probably be resolved later once I can get the sub-domain added on to the secure server.
So it looks like GCO 1.0.5 might be working correctly... this is excitting.
Yeah, I've got all the sandbox stuff set up right, and I have the address of the test server entered in the integration panel on GCO sandbox, but for some reason GCO keeps calling the address of the secure server and not the testing server. I'm not sure why. But like I said, I will hopefully have this resolved in the next hour or so, and then I will know if it's all working or not :)
Hi everyone
im posting a fix for merchant calculation shipping
this fix solves the problem when retrieving more than one quote (method) form the same shipping provider.
ex. getting FedEx: Priority (by 10:30AM, later for rural), FedEx: 2 Day Air
before the module returns for all methods the same shipping cost.
now it retrieves the correct price for each one.
change code in responsehandler.php line ~426
for this oneCode:$quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
//print_r($quotes);
$price = $quotes[0]['methods'][0]['cost'];
$shippable = "true";
//if there is a problem with the method, i mark it as non-shippable
if(!isset($quotes[0]['methods'][0]['cost']) || isset($quotes[0]['error'])) {
$shippable = "false";
$price = "0";
}
Code:$quotes = $shipping_modules->quote($methods_hash[$method_name][0], $methods_hash[$method_name][2]);
//print_r($quotes);
$quote_id = count($quotes[0]['methods'])-1;
$price = $quotes[0]['methods'][$quote_id]['cost'];
$shippable = "true";
//if there is a problem with the method, i mark it as non-shippable
if(!isset($quotes[0]['methods'][$quote_id]['cost']) || isset($quotes[0]['error'])) {
$shippable = "false";
$price = "0";
}
please feel free to give us some feed back.
ropu
tip:
have a look to googlecheckout/gcheckout.php line 476
here is set the url for the merchant calculations processPHP Code:
if ($srv_mode == 'https://sandbox.google.com/' && $http_mode == 'http') {
$url = HTTP_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
} else {
$url = HTTPS_SERVER . DIR_WS_CATALOG . 'googlecheckout/responsehandler.php';
}
$gcheck->push('merchant-calculations');
$gcheck->element('merchant-calculations-url', $url);
$gcheck->element('accept-merchant-coupons', 'true');
//$gcheck->element('accept-gift-certificates', 'true');
$gcheck->pop('merchant-calculations');
ropu
ok, I seem to have run in to a big wall on this one.
I thought everything would work once I got the secure server's ip address entered in to our DNS but it's just not working.
When I go to Google Checkout it won't pull in any shipping rates from my site.
In GCO's Sandbox inegration panel under Integrtion Issues all I'm getting now is
Every single time I go to the GCO cart.Quote:
Your server returned no data in its response; Checkout requires data of type merchant-calculation-results in response to merchant-calculation-callback
ropu, thanks for your suggestion, and I tried manually editing and setting the secure server's address in there but it didn't help me.
Any insight here? This is me stumped.
I reinstalled 1.0.5 entirely in hopes of using the merchant selection for shipping. I removed my mzmt shipping module as it did not seem to be recognized anyway. (I'll probably have to edit on the the obscure googlecheckout.php files... shouldn't have to though...)
I have table method and usps now. When setting up GCO module, the only shipping method that displays is usps. table does not appear.
Made the modification suggested 3 posts above this. Created order for sandbox. Shipping options are all usps and all have the same price - $3.63, no matter how many items purchased. (usps has $3.00 handling charge included...)
At times, messing with various mods suggested in this thread, I got yellow "Does not ship to this address" message in GCO screen. Figured out this is standard error message produced when shippable is set to false (code around same area as latest mods were installed.) For grins, commented out error handler that set shippable to false. Amazingly, I had a variety of shipping methods to choose from in GCO screen, including freeshipper, usps and table. Values were defaults from Payment module configuration, but the selection of methods displayed...
Comments:
We should not have to edit includes/modules/payment/googlecheckout.php to include or exclude values for the arrays. A better method would be to read the enabled methods from the active shipping modules and build the arrays dynamically. Addin methods (such as mzmt) should also be included dynamically depending upon whether they have been enabled.
The usps array in the file includes/modules/payment/googlecheckout.php does not have an entry for media mail. If you have to hard-code the array values, at least check the modules they are based on...
this topic has so many posts.
i'm having a similar problem as others.
I've got GCO sandbox setup on my shop, and I can click it and checkout. The orders are shown in my GCO account orders section, however nothing appears in ZC. My response_error and response_message logs are blank. Just out of curiosity, at the top of response_handler.php, I wrote some code to write a timestamp to a 3rd file. The 3rd file get written to when I directly to the response handler URL, but it never gets written to when I check out through GCO. I have set the API callback URL to the http://www.sss.com/googlecheckout/response_handler.php file on my site, and the callback method is XML.
I don't know what else to do or try, since it seems GCO will not even attempt to do any thing w/ myu response handler file. (as shown by no timestampe being written to the 3rd file).