I have a question regarding google checkout manual setup
in the instructions it says to change the following code, but mine is different, I have posted what mine looks like below it, just the relevant parts, can someone please tell me which one to change, as there are two different references in my code to selection:
2. YOUR_ZENCART_FOLDER/includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.php LINE 127
================================================================================ ===============================================
REPLACE:
<?php
if (sizeof($selection) > 1) {
?>
WITH:
<?php
if (sizeof($selection) > 1) {
// ** GOOGLE CHECKOUT **
if($selection[$i]['id'] == "googlecheckout")
continue;
// ** END GOOGLE CHECKOUT **
?>
My file looks like this (lines 117 - 152):
<?php
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
?><p class="important"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></p>
<?php
} elseif (sizeof($selection) == 0) {
?>
<p class="important"><?php echo TEXT_NO_PAYMENT_OPTIONS_AVAILABLE; ?></p>
<?php
}
?>
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
if (empty($selection[$i]['noradio'])) {
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php } ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
<label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>
<?php
As you can see there are 2 instances of
<?php
if (sizeof($selection) > 1) {
?>
and neither are exactly like the example he listed, what do i do?
Last edited by humbll; 3 Feb 2007 at 07:49 PM. Reason: revised
hi ropu, i have a question, ive done the mods for GCO and the usps has now appear in the dropdown of GCO. My question is that what is it calculating? Becasue it doesnt callback to the site of usps to calculate the shipping, instead it only calculates the value i entered in the payment admin in google checkout.
dont bother i got it working now!![]()
humbll, hi!
yes, is true, there are 2
<?php
if (sizeof($selection) > 1) {
?>
But there is just ONE at line 127, the second one. Im adding some bigger part of the code so you can see how the final code must be.
ropuPHP Code:
<?php
$radio_buttons = 0;
for ($i=0, $n=sizeof($selection); $i<$n; $i++) {
?>
<?php
if (sizeof($selection) > 1) {
if($selection[$i]['id'] == "googlecheckout")
continue;
?>
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
<?php
} else {
?>
<?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?>
<?php
}
?>
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
Cool!
but have in mind the timeout problem
Google Checkout has a 3 sec timeout, sometimes USPS, UPS, fedex or any provider takes more than that time to response :S, so that could be the reason for Default Values appearing in the GC page.
Im working on an other approach, trying to parallelize calls and add timeout.
ropu
Latest Version (1.3RC2): http://google-checkout-zencart.googl...rt-v1.3RC2.zip
Demo Server: http://demo.globant.com/~brovagnati/zen_demo2/
ropu,
thanks for replying. it turns out that the certificate wasn't installed correctly. I have that corrected now. But a new problem arises and that is GCO communicated with my zencart to send the old order information I only got the first letter/number of all the information. Thanks for helping out.
-Pete
Hello,
I have had trouble with the install of google checkout for 1.3.7 . Every time I install the google checkout mod, it seems to overwrite my paypal EC buttons and displaying the GC button where the paypal EC button goes. Has this been happening to anyone else? I have read the install directions and done everything to the letter. Please let me know if there is a fix to this or if I may have done something wrong.
Thanks in advance.
Problem: Orders with Zencart using googlecheckout do not show up in zencart/admin orders list.
PLEASE HELP!
jeff
I'm using:
zen-cart-v1.3.7-full-fileset-12302006
(w/theme "silverfish")
google checkout 1.04r
I have doublechecked GoogleCheckout installation
In "response_error.log" I get:
Tue Feb 6 4:54:35 PST 2007:- Line 119: headers['Authorization'] is NULL.
At GC, Am using callback:
https://www.newenglandparkingcouncil...nsehandler.php
have tried both XML and HTML settings.
I have a zen cart that only sells virtual products (downloadable software). The google checkout payment module still does not appear to support this. The orders go through, but the products_attributes and products_downloads records do not get inserted. I had been inserting these records manually after an order goes through so I could still use Google Checkout on my site, but this has become far too cumbersome to deal with.
Is anyone working on this issue?
Bookmarks