Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Offical Google Checkout module for osCommerce Support Thread


1175 replies to this topic

#21 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 13 August 2007, 03:25

View Posttheantiquestore, on Aug 12 2007, 03:46 PM, said:

ok, install is still not working, I'm dumbfounded! Any suggestions?

Go into your Databases Configuration_Table and look for all Google Checkout references and delete them.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#22 theantiquestore

  • Community Member
  • 583 posts
  • Real Name:Rachael
  • Gender:Female

Posted 13 August 2007, 14:36

View PostSilverado05, on Aug 12 2007, 11:25 PM, said:

Go into your Databases Configuration_Table and look for all Google Checkout references and delete them.


There are no references to google in my database. I must have missed something. I'll look at it with fresh eyes today.

#23 doni

  • Community Member
  • 70 posts
  • Real Name:Don

Posted 13 August 2007, 14:39

Hi Nick

My problem was :

QUOTE(doni @ Aug 9 2007, 04:45 AM)

I have installed the latest contribution, and have the following errors :

Warning: getxml(xml-processing/xmlbuilder.php): failed to open stream: No such file or directory in /mysite/googlecheckout/library/googlecart.php on line 232

Fatal error: getxml(): Failed opening required 'xml-processing/xmlbuilder.php' (include_path='') in /mysite/googlecheckout/library/googlecart.php on line 232

... at the point where I enter the Checkout Page (with items in my cart), and below the "- or Use -" text.

I used to see this code sometimes in the past, and if I refreshed the page, the GC button would usually appear. I have actually processed an order using GC. But now, this text always appears, and NO GC buttone ever appears even when I refresh the page.

Anyone any guidance on what I should do, or generally what this error means?


___________

AND YOU ASKED FOR MY SHOPPING CART, WHICH IS :
___________


<?php
/*
$Id: shopping_cart.php,v 1.73 2003/06/09 23:03:56 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2003 osCommerce

Released under the GNU General Public License
*/

require("includes/application_top.php");

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART);

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_cart.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
if ($cart->count_contents() > 0) {
?>
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_REMOVE);

$info_box_contents[0][] = array('params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_PRODUCTS);

$info_box_contents[0][] = array('align' => 'center',
'params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_QUANTITY);

$info_box_contents[0][] = array('align' => 'right',
'params' => 'class="productListing-heading"',
'text' => TABLE_HEADING_TOTAL);

$any_out_of_stock = 0;
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
// Push all attributes information in an array
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
while (list($option, $value) = each($products[$i]['attributes'])) {
echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);
$attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix
from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
where pa.products_id = '" . $products[$i]['id'] . "'
and pa.options_id = '" . $option . "'
and pa.options_id = popt.products_options_id
and pa.options_values_id = '" . $value . "'
and pa.options_values_id = poval.products_options_values_id
and popt.language_id = '" . $languages_id . "'
and poval.language_id = '" . $languages_id . "'");
$attributes_values = tep_db_fetch_array($attributes);

$products[$i][$option]['products_options_name'] = $attributes_values['products_options_name'];
$products[$i][$option]['options_values_id'] = $value;
$products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name'];
$products[$i][$option]['options_values_price'] = $attributes_values['options_values_price'];
$products[$i][$option]['price_prefix'] = $attributes_values['price_prefix'];
}
}
}

for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (($i/2) == floor($i/2)) {
$info_box_contents[] = array('params' => 'class="productListing-even"');
} else {
$info_box_contents[] = array('params' => 'class="productListing-odd"');
}

$cur_row = sizeof($info_box_contents) - 1;

$info_box_contents[$cur_row][] = array('align' => 'center',
'params' => 'class="productListing-data" valign="top"',
'text' => tep_draw_checkbox_field('cart_delete[]', $products[$i]['id']));

$products_name = '<table border="0" cellspacing="2" cellpadding="2">' .
' <tr>' .
' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' .
' <td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';

if (STOCK_CHECK == 'true') {
$stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']);
if (tep_not_null($stock_check)) {
$any_out_of_stock = 1;

$products_name .= $stock_check;
}
}

if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
reset($products[$i]['attributes']);
while (list($option, $value) = each($products[$i]['attributes'])) {
$products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
}
}

$products_name .= ' </td>' .
' </tr>' .
'</table>';

$info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"',
'text' => $products_name);

$info_box_contents[$cur_row][] = array('align' => 'center',
'params' => 'class="productListing-data" valign="top"',
'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']));

$info_box_contents[$cur_row][] = array('align' => 'right',
'params' => 'class="productListing-data" valign="top"',
'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');
}

new productListingBox($info_box_contents);
?>
</td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td align="right" class="main"><b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b></td>
</tr>
<?php
if ($any_out_of_stock == 1) {
if (STOCK_ALLOW_CHECKOUT == 'true') {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></td>
</tr>
<?php
} else {
?>
<tr>
<td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td>
</tr>
<?php
}
}
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main"><?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?></td>
<?php
$back = sizeof($navigation->path)-2;
if (isset($navigation->path[$back])) {
?>
<td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td>
<?php
}
?>
<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></form></td>
</tr>
<tr>
<td>
<?php
// ** GOOGLE CHECKOUT **
// Checks if the Google Checkout payment module has been enabled and if so
// includes gcheckout.php to add the Checkout button to the page
if (defined('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS') && MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') {
include_once('googlecheckout/gcheckout.php');
}
// ** END GOOGLE CHECKOUT **
?>
</td>
</tr>
<?php
} else {
?>

<tr>
<td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
}
?>
</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
_______

and any help would be fabulous.

#24 otsmith1

  • Community Member
  • 35 posts
  • Real Name:neil

Posted 13 August 2007, 15:02

Hello there, I'd appreciate an answer on this if someone out there can help me.

I've just installed v1.4beta1 but I'm in the UK and can't seem to get it to add VAT (17.5%) on my taxable products.

Can anybody point me to the file to edit?

Cheers :thumbsup:

#25 theantiquestore

  • Community Member
  • 583 posts
  • Real Name:Rachael
  • Gender:Female

Posted 13 August 2007, 15:16

Ok, the issue seemed to be with my edits to admin/modules.php. I went line by line and saw that I didnt actually have any other code changes from the original osc modules.php so I just used the file from the contrib. It's installed now.

Thanks for tolerating me on that one!

#26 theantiquestore

  • Community Member
  • 583 posts
  • Real Name:Rachael
  • Gender:Female

Posted 13 August 2007, 15:59

Thank you so much to everyone who has participated in the creation of this module! I really appreciate all your hard work! I have it installed and it appears to be working well, even with USPS calculated rates.

That being said, is there a way to have the shipping order sorted by highest to lowest in the google checkout? I was looking for a sort order or a < or > and didnt see it. Perhaps I'm not looking in the right place.

I have a free pickup module in my shipping and I dont want to have every customer just going through checkout without selecting the correct shipping method and having to invoice them for the difference because they didnt read. I would prefer to have the highest shipping charge shown first, it will give them some incentive to select the correct option.

Thanks again!

#27 tiernanc

  • Community Member
  • 1 posts
  • Real Name:Tiernan C

Posted 13 August 2007, 15:59

This is largely unrelated to the above posts, but I also suffered from $0 shipping rate quotes in Google Checkout using merchant calculated rates. I had the UPS XML module installed and the Google Checkout 1.4beta contribution. The error I found was that UPS XML redeclared a class XMLParser which threw a fatal error and sent no response to Google.
For anyone using UPS XML rates this is an easy fix. Simply open /includes/classes/xmldocument.php and rename XMLParser to upsXMLParser, and rename the appropriate calls to it in /includes/modules/shipping/upsxml.php. There are only two calling for a new XMLParser, change them to upsXMLParser. I am not sure whether other contributions have dependencies on the xmldocument class file. If they do this might require a more severe modification but this is the solution that worked for me.

The usual cause for $0 shipping rates are a) Request Timeout [We timed out...], b) Force Cookies is True [HTTP 500: Shopping cart not obtained from session] (without the above workaround), c) PHP errors are being sent back to Google [Error parsing XML...], d) nothing is being sent back to Google due to a fatal error without display errors being turned on [Your server returned no data in response..].
While debugging I recommend adding ini_set('display_errors', 1); near the top of /googlecheckout/responsehandler.php if you are using a secure server that does not display errors normally. This will allow you to view any errors created in the Google Checkout (Sandbox hopefully) Integration Center under settings.

I hope this helps someone

Edited by tiernanc, 13 August 2007, 15:59.


#28 theantiquestore

  • Community Member
  • 583 posts
  • Real Name:Rachael
  • Gender:Female

Posted 13 August 2007, 16:11

For some reason, since this install my cart link now shows (1) $0.00 all the time, when its empty and adds 1 to the number of items in the cart when it does have something in it. Is there something I need to change in that code to fix this?

<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>" class="headerNavigation"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?>&nbsp;(<?=$cart->count_contents()?>)&nbsp;<?= $currencies->format($cart->show_total())?>

Also, I was wondering if I have worldwide shipping available (USPS module) will all countries (who can use google checkout) be able to checkout through google or do I need to edit the code to allow this. I looked over the code and it appeared to be allowing "all" to checkout, but I wanted to be sure.

#29 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 13 August 2007, 19:30

View Postotsmith1, on Aug 13 2007, 10:02 AM, said:

Hello there, I'd appreciate an answer on this if someone out there can help me.

I've just installed v1.4beta1 but I'm in the UK and can't seem to get it to add VAT (17.5%) on my taxable products.

Can anybody point me to the file to edit?

Cheers :thumbsup:

Not being from the UK I am not sure how your tax works. Do you have your Zones set up correctly in your OSC Admin?
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#30 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 13 August 2007, 19:37

View Posttheantiquestore, on Aug 13 2007, 11:11 AM, said:

For some reason, since this install my cart link now shows (1) $0.00 all the time, when its empty and adds 1 to the number of items in the cart when it does have something in it. Is there something I need to change in that code to fix this?

<a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); ?>" class="headerNavigation"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?>&nbsp;(<?=$cart->count_contents()?>)&nbsp;<?= $currencies->format($cart->show_total())?>

Also, I was wondering if I have worldwide shipping available (USPS module) will all countries (who can use google checkout) be able to checkout through google or do I need to edit the code to allow this. I looked over the code and it appeared to be allowing "all" to checkout, but I wanted to be sure.

About your cart showing 1 item but $0.00 that is probably due to you doing a lot of testing under the same using during one session. Just run a test order on with your normal OSC checkout process. Don't add anything else to the cart and do try to remove it. This is one reason I have the contribution "Fax or Phone your Order" because you can easily use it for test orders and then delete it from the admin and if you don't want to offer that payment method then you can disable it and just use it for testing.

If you have your USPS module set up for worldwide shipping and you have it set in your shipping_methods.php then you should be good to go. Only way to test this though is to make a couple of sandbox buyer accounts from different places around the world and make sure it is working correctly.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#31 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 13 August 2007, 19:43

View Postdoni, on Aug 13 2007, 09:39 AM, said:

Hi Nick

My problem was :

QUOTE(doni @ Aug 9 2007, 04:45 AM)

I have installed the latest contribution, and have the following errors :

Warning: getxml(xml-processing/xmlbuilder.php): failed to open stream: No such file or directory in /mysite/googlecheckout/library/googlecart.php on line 232

Fatal error: getxml(): Failed opening required 'xml-processing/xmlbuilder.php' (include_path='') in /mysite/googlecheckout/library/googlecart.php on line 232

... at the point where I enter the Checkout Page (with items in my cart), and below the "- or Use -" text.

I used to see this code sometimes in the past, and if I refreshed the page, the GC button would usually appear. I have actually processed an order using GC. But now, this text always appears, and NO GC buttone ever appears even when I refresh the page.

Anyone any guidance on what I should do, or generally what this error means?
___________

AND YOU ASKED FOR MY SHOPPING CART, WHICH IS :
___________


I don't know why I asked you for your shopping_cart.php must have been late and I was tired because if you are getting that error then the button code is in place.

What version are you using and have you installed anything else after GC? I have seen this error before and sometimes it is because of Google because these buttons are generate from the Google server. In your case though I don't think this is because of Google, I think you have changed a setting someone that is throwing this error. So double checkout your installation and make sure you have all the correct files uploaded.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#32 doni

  • Community Member
  • 70 posts
  • Real Name:Don

Posted 14 August 2007, 08:08

View PostSilverado05, on Aug 13 2007, 08:43 PM, said:

I don't know why I asked you for your shopping_cart.php must have been late and I was tired because if you are getting that error then the button code is in place.

What version are you using and have you installed anything else after GC? I have seen this error before and sometimes it is because of Google because these buttons are generate from the Google server. In your case though I don't think this is because of Google, I think you have changed a setting someone that is throwing this error. So double checkout your installation and make sure you have all the correct files uploaded.


Nick - I am dumbfounded by this.

Here is what I tried this morning.

1. added an item to my basket.
2. At the shopping cart page I actually saw the button.
3. I pressed F5, and the error occurred, showing the text I had previously previously quoted
4. I pressed the F5 button six more times, and the error was still there, but on the 7th occassion, the button appeared!
5. I kept pressing the F5 button, and the button appears randmonly, but on average after about 8-9 re-fresh, and on every other occasion, there errior is apparent.

It therefore appears to me, that I have installed this correctly, but something is unstable, but I have no idea what this might be?

Edited by doni, 14 August 2007, 08:09.


#33 otsmith1

  • Community Member
  • 35 posts
  • Real Name:neil

Posted 14 August 2007, 14:40

View PostSilverado05, on Aug 13 2007, 03:30 PM, said:

Not being from the UK I am not sure how your tax works. Do you have your Zones set up correctly in your OSC Admin?

Spot on, that worked. Thanks for your help.

#34 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 14 August 2007, 21:54

View Postdoni, on Aug 14 2007, 03:08 AM, said:

Nick - I am dumbfounded by this.

Here is what I tried this morning.

1. added an item to my basket.
2. At the shopping cart page I actually saw the button.
3. I pressed F5, and the error occurred, showing the text I had previously previously quoted
4. I pressed the F5 button six more times, and the error was still there, but on the 7th occassion, the button appeared!
5. I kept pressing the F5 button, and the button appears randmonly, but on average after about 8-9 re-fresh, and on every other occasion, there errior is apparent.

It therefore appears to me, that I have installed this correctly, but something is unstable, but I have no idea what this might be?

Yea that is weird. You do have it installed correctly or you wouldn't be getting any errors or button at all.

What version are you using?

Also have you looked to see if any errors are showing up in your error log and on the settings page under integration on the Google Checkout side?
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#35 doni

  • Community Member
  • 70 posts
  • Real Name:Don

Posted 15 August 2007, 08:50

View PostSilverado05, on Aug 14 2007, 10:54 PM, said:

Yea that is weird. You do have it installed correctly or you wouldn't be getting any errors or button at all.

What version are you using?

Also have you looked to see if any errors are showing up in your error log and on the settings page under integration on the Google Checkout side?

1. Using 1.4 beta

2. Guess what - my "F5 refresh hit rate" (when I observe the Google Checkout buttone, compared to seeing the error), has improved to about 5 in 8 (from 1 in 8 yesterday).

3. I cannot locate any error files on the Google side.

4. The only error files I have on my side is "Failed to Get Basic Authentication Headers" when I ran https://mysite/googlecheckout/responsehandler.php. I had investigated this in the past, in a post rpou was having with someone else, and he suggested invoking the htaccess.php file to create the .htaccess and .htpasswd files in Googlecheckout/, but this has no effect on whether the button show or not, so I removed the .htaccess and .htpasswd files and re-set back to using without this.

5. This next point is very interesting : When I run the Shipping_Generator file, sometimes I get :

Warning: main(multishipping_generator.php): failed to open stream: No such file or directory in /mysite/googlecheckout/shipping_generator/shipping_method_generator.php on line 284

Warning: main(): Failed opening 'multishipping_generator.php' for inclusion (include_path='') in /mysite/googlecheckout/shipping_generator/shipping_method_generator.php on line 284

... and sometimes, when I refresh F5, I get the correct table showing.

6. On the face of it, it seems to me that I am having some kind of resource issues here, where the files cannot complete a task, but I have ample server space, and the traffic is very low at this time of year, so I don't think the resource issue is coming from my side. (i.e. Without GC, we can process order through HSBC fine).

I think I am very stuck.

#36 Silverado05

  • Community Member
  • 1,605 posts
  • Real Name:Nick

Posted 15 August 2007, 09:23

I am not sure what to tell you honestly. If it works sometimes but not others it is probably a Google error. I would try contact them through their support and tell them the issue. or reach Ropu on his support forum since he is the Author of the module he might be able to help you further.
Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.

#37 doni

  • Community Member
  • 70 posts
  • Real Name:Don

Posted 15 August 2007, 10:22

Yes - it is a tricky one isn't it.

Thanks for all your time on these boards supporting people.

#38 doni

  • Community Member
  • 70 posts
  • Real Name:Don

Posted 15 August 2007, 12:11

As an aside - is there a way that I can hide this Warning while I figure out why this isn't working.

i.e. - if the Google button only show 40% of the time, when the "Failed to Open" error text occurs on the other 60% of the time, can I NOT show this text somehow? The problem is, when the button doesn't show, and the error appears, it looks like the whole website is faulty ...

Even better, if the error occurs, instead of displaying the "Failed to Open" error text, is there a way I can replace this with (e.g.) "Please refresh screen for Google Checkout options" instead - this would at least inform the buyer that they have a Google Checkout option, and they need to refresh the screen in order to use that method ...

#39 kryptoni

  • Community Member
  • 15 posts
  • Real Name:Bryan

Posted 15 August 2007, 13:08

PROBLEM: UPS XML Rates not being sent to Google Checkout!

The module works fine in OSC checkout. I get the rate quotes, etc. However, when I use Google Checkout it lists the UPS shipping options properly but list a $0 charge for all of them! I already searched the forums and can't find anything on this issue. I already ran the Google Shipping Generator and modified the code as needed in the Google Checkout contribution. Any ideas ???

Thanks!

To see issue - Visit My Website

#40 DriWashSolutions

  • Community Member
  • 204 posts
  • Real Name:John Skurka
  • Location:Ithaca, NY

Posted 15 August 2007, 17:26

I've just had my site moved to a new server, and GC is giving me issues. No visible errors to the user, but all shipping is $0.00. I am using FedEx shipping.

Looking at the GC Integration control panel, here is the error:

We timed out waiting for your server at https://www.mydomain.com/catalog/googlechec...onsehandler.php -- the error we got is: Read timed out Your server must respond faster to merchant calculation callback requests.

What's the fix? I'm running a rather old version of GC - is the fix an upgrade or does something on the server need to be started/installed?

Edited by DriWashSolutions, 15 August 2007, 17:27.

John Skurka