OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Offical Google Checkout module for osCommerce Support Thread
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Payment Modules > Other
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
Silverado05
QUOTE (PaulSmithy @ Sep 2 2007, 08:42 AM) *
I have a store up and running but still quite new to this. I need to install Google Checkout as a payment method on my site. What is the best, updated contribution that I should use for this. Please help!



Well the most recent release is 1.4 but 1.4.1 comes out this week. So if you can wait a few days I would. Also GC is an alternative checkout method. NOT and alternative payment method. A lot of people get this confused. The GC can not be anywhere in your normal checkout process. It can only be listed on your shopping cart page and shopping cart infobox.
SVTour98
QUOTE (Silverado05 @ Sep 3 2007, 12:01 AM) *
Do you have a SSL that is dedicated and not shared. If you have a SSL make sure it is accepted by GC

http://checkout.google.com/support/sell/bi...py?answer=57856

Also what do you have set for .htaccess in your module on the OSC side?



Yes it is dedicated and the SSL is GeoTrust which is accepted by Google Checkout. For .htaccess on the OSC side it is set to "false" for ".htaccess Basic Authentication Mode with PHP over CGI?" The .htaccess file is updated with my Google Merchant ID and Key also.
Silverado05
QUOTE (SVTour98 @ Sep 2 2007, 07:34 PM) *
Yes it is dedicated and the SSL is GeoTrust which is accepted by Google Checkout. For .htaccess on the OSC side it is set to "false" for ".htaccess Basic Authentication Mode with PHP over CGI?" The .htaccess file is updated with my Google Merchant ID and Key also.


Is that is the case and you have set up the .htaccess for GC then you need to set that to true and not false.
SVTour98
QUOTE (Silverado05 @ Sep 3 2007, 01:27 AM) *
Is that is the case and you have set up the .htaccess for GC then you need to set that to true and not false.


I'll give that a shot but I don't believe my host supports PHP over CGI.
SVTour98
QUOTE (Silverado05 @ Sep 3 2007, 01:27 AM) *
Is that is the case and you have set up the .htaccess for GC then you need to set that to true and not false.


No luck with that either.
Silverado05
You need to double check all your settings.

.htaccess Basic Authentication Mode with PHP over CGI? True

Select Mode of Operation https://sandbox.google.com/checkout/

Select Merchant Calculation Mode of Operation True

Then on the Google Checkout settings side

API callback URL https://........./catalog/googlecheckout/responsehandler.php Notice it is https not http. Also if you site is in the root directory then you need to drop the catalog of the path.

Callback method: XML

Shopping cart post security should be checked.

Double and triple check all that and if it still doesn't work come back or read the first three pages here about setting check IP to false in OSC Admin.
jprov
There might be simple answer to this, or maybe its not possible without a major reworking of code, but I'd like to know if it is possible to use this Google Checkout Module as the sole checkout method. I currently have it installed correctly and it gives me the option to Checkout -OR- Google Checkout. Any way to make Google the only method?

The only way I can surmise to do this is to change the reference to the checkout graphic as well as the code associated with it, however, im not sure which pages I would have to change or how I would take out the original Google Checkout Image. Thought I'd ask the pros.

Thanks,
Jason
Silverado05
QUOTE (jprov @ Sep 4 2007, 12:05 PM) *
There might be simple answer to this, or maybe its not possible without a major reworking of code, but I'd like to know if it is possible to use this Google Checkout Module as the sole checkout method. I currently have it installed correctly and it gives me the option to Checkout -OR- Google Checkout. Any way to make Google the only method?

The only way I can surmise to do this is to change the reference to the checkout graphic as well as the code associated with it, however, im not sure which pages I would have to change or how I would take out the original Google Checkout Image. Thought I'd ask the pros.

Thanks,
Jason


This has been anwsered many times. The GC buttons are generated from Google so you cant alter them or the text above it. only thing you can change is the transparency behind it and the size.

read more

http://forums.oscommerce.com/index.php?sho...Google+Checkout
jprov
QUOTE (Silverado05 @ Sep 4 2007, 12:22 PM) *
This has been anwsered many times. The GC buttons are generated from Google so you cant alter them or the text above it. only thing you can change is the transparency behind it and the size.

read more

http://forums.oscommerce.com/index.php?sho...Google+Checkout


Ok, I read the above link, and think I understand where you are coming from about not being able to modify the buttons, and I'm ok with that. The only part I am a bit confused about still is why I can't use Google as my only form of checkout and processing. You mention that Google Checkout is not a payment method - understood - but the customers enter their payment method as part of the Google Checkout process right?
Maybe I'm just in over my head, and I hope I'm not upsetting anyone.

Jason
jprov
Anyways, I did finally get it to work I think. Made the default checkout button a 1x1 transparent gif, and removed a php variable for the "-OR USE-" text above the Google image, and left the actual image intact. For everyone saying it can't be done, does this not work? I don't see why it wouldn't.

Jason
theantiquestore
I am having another issue now, it seems that I am getting a "headers already sent" error after putting the shipping information into the admin and updating the product to shipped.

This is the error:

QUOTE
Warning: Cannot modify header information - headers already sent by (output started at /home/edited/public_html/googlecheckout/shipping_methods.php:49) in /home/edited/public_html/admin/includes/functions/general.php on line 18


Here is my shipping methods line 49:

CODE
?>


Well, as you see, its just the trailing php tag. Ask to see more if you need to, I didnt want to clutter.

Here is my general.php line 13-18:

CODE
////
// Stop from parsing any further PHP code
  function tep_exit() {
   tep_session_close();
   exit();
  }



Sooo, any ideas as to why this is throwing the error only when I update the item to shipped? If I hit my back button I do return to the correct screen, where it tells me the information was sent and google responds and updates it as shipped, I just have that annoyance every time.

I've also noticed that it is not carrying the tracking number and carrier over. Its just marking it shipped (delivered) and archiving it.

Thanks in advance!
Silverado05
QUOTE (theantiquestore @ Sep 4 2007, 07:04 PM) *
I am having another issue now, it seems that I am getting a "headers already sent" error after putting the shipping information into the admin and updating the product to shipped.

This is the error:
Here is my shipping methods line 49:

CODE
?>


Well, as you see, its just the trailing php tag. Ask to see more if you need to, I didnt want to clutter.

Here is my general.php line 13-18:

CODE
////
// Stop from parsing any further PHP code
  function tep_exit() {
   tep_session_close();
   exit();
  }

Sooo, any ideas as to why this is throwing the error only when I update the item to shipped? If I hit my back button I do return to the correct screen, where it tells me the information was sent and google responds and updates it as shipped, I just have that annoyance every time.

I've also noticed that it is not carrying the tracking number and carrier over. Its just marking it shipped (delivered) and archiving it.

Thanks in advance!



The headers already sent error is because you have whitespace after ?> you just need to delete any whitespace after that.

About the tracking number and carrier I am not sure I understand what you are saying. Is this on the Google Checkout side or the OSC Admin side?
Silverado05
QUOTE (jprov @ Sep 4 2007, 03:51 PM) *
Anyways, I did finally get it to work I think. Made the default checkout button a 1x1 transparent gif, and removed a php variable for the "-OR USE-" text above the Google image, and left the actual image intact. For everyone saying it can't be done, does this not work? I don't see why it wouldn't.

Jason


If you want to use Google checkout as your only method that is fine. But it is an alternative checkout method not a payment processor even though you pay through GC everything is done through GC. which means you will not have registered users and you can not email them about specials or anything else. People don't have to register to with your site to use Google Checkout which also means they don't have to follow your terms of agreement so basically you are a Google store. Also every time someone adds a item to the cart you will have to send them to the shopping cart page and that is annoying for those that want to keep shopping. It gives them the impression they have to checkout and that kills your conversion rates.
theantiquestore
QUOTE
The headers already sent error is because you have whitespace after ?> you just need to delete any whitespace after that.

About the tracking number and carrier I am not sure I understand what you are saying. Is this on the Google Checkout side or the OSC Admin side?


I dont have a line after line #49, perhaps its a whitespace issue somewhere else, I'll keep poking around.

The tracking number and carrier boxes in the admin panel in the customers order, I put a tracking number and select my carrier. I then select shipped and click update. This is the same as I would do directly in the order in google checkout. When I am putting this information in the osc admin panel and clicking update, it is sending the correct 'change to shipped and archive' information to google checkout, however, it is not registering or saving the tracking information I've put in.

In google checkout, if I look at the order, it will show as shipped (delivered) but there will be no tracking information. And the response from google just shows as this:

QUOTE
Time: 2007-08-27T19:30:57.000Z
New State: DELIVERED
Order was Shipped.


No tracking or carrier information is there, as if I had never put the information in at all.
theantiquestore
I actually gave you the wrong information about my general.php. I gave you the catalog/includes/functions/general.php rather than the catalog/admin/includes/functions/general.php!
This is line 13-28:
CODE
////
// Redirect to another page or site
  function tep_redirect($url) {
    global $logger;

    header('Location: ' . $url);

    if (STORE_PAGE_PARSE_TIME == 'true') {
      if (!is_object($logger)) $logger = new logger;
      $logger->timer_stop();
    }

    exit;
  }

////


Could the problem lie here?
Silverado05
You have white space in shipping_methods.php that is what the error means.

QUOTE
Warning: Cannot modify header information - headers already sent by (output started at /home/edited/public_html/googlecheckout/shipping_methods.php:49)


Is line 49 is ?> the place your mouse at the very bottom of that file and delete any space to ?>

Trust me you won't be able to see it just by looking at it you need to place your mouse down there.

I.E.

your line might end here

?>BUT ALL THIS COULD BE WHITESPACE

So what I am saying is their should be no space after the closing ?>
theantiquestore
I did have one space there, I took it out but I've already shipped today. I'll check it out tomorrow when I ship this evenings purchases. Thanks!
eknyc
Hi, Back in January we added Google checkout to our osC store and it's been working in a sense (it does not store orders, customers, etc.) in our osC admin and we do not see an item number in GC.
We're ready to update the payment module with a more recent contribution so I'm hoping to find out the following:

1) Will the new module (last release) store orders in the osC admin?
2) Will we see an item number (not just an item title) in the order details?
3) Is the last version a pretty stable release?

Is anybody who has Google Checkout working smoothly on their site willing to share the URL of your site so I can see how it looks/works?

Thanks!
Silverado05
QUOTE (eknyc @ Sep 12 2007, 04:08 PM) *
Hi, Back in January we added Google checkout to our osC store and it's been working in a sense (it does not store orders, customers, etc.) in our osC admin and we do not see an item number in GC.
We're ready to update the payment module with a more recent contribution so I'm hoping to find out the following:

1) Will the new module (last release) store orders in the osC admin?
2) Will we see an item number (not just an item title) in the order details?
3) Is the last version a pretty stable release?

Is anybody who has Google Checkout working smoothly on their site willing to share the URL of your site so I can see how it looks/works?

Thanks!


The latest release fixes a lot and is pretty stable.

I have it working smoothly but my site is live and I don't really like post my URL. So just install the latest release and you should be good to go. If you have in problems reference this thread to seek answers to your problems.
bob61
QUOTE (Silverado05 @ Sep 2 2007, 07:04 PM) *
Well the most recent release is 1.4 but 1.4.1 comes out this week. So if you can wait a few days I would.
Any update on when 1.4.1 is going to be released?
bob61
QUOTE (eknyc @ Sep 12 2007, 04:08 PM) *
Hi, Back in January we added Google checkout to our osC store and it's been working in a sense (it does not store orders, customers, etc.) in our osC admin and we do not see an item number in GC.
We're ready to update the payment module with a more recent contribution so I'm hoping to find out the following:

1) Will the new module (last release) store orders in the osC admin?
2) Will we see an item number (not just an item title) in the order details?
3) Is the last version a pretty stable release?

Is anybody who has Google Checkout working smoothly on their site willing to share the URL of your site so I can see how it looks/works?

Thanks!
I had same module as you did previously - I have to say after putting 1.4 GC in that's a SIGNIFICANT improvement over the old L1 GC method. All orders are stored, customer information actually saved as a new account. You can then print invoices from OSC. I've had it installed for several weeks, looks like everything is working smoothly. Just be sure to prepare first and read this board for little support items. The original install did not go 100%, but I found several helps in this thread and it's all working 100%. Nice to also be able to add tracking information and have the GC order automatically updated and archived. It's worth the time to install.
time_bomb
Ive just had my 1st order through google checkout, however shipping costs didnt show up on the order, how can i get shipping costs to be added on future orders?
Nihil
Hey,
I tried to sign up google checkout, But when I tried to insert the country I discovered that its available only for U.S. and U.K.
There's no chance to use it if you are a merchant from another country?
Silverado05
QUOTE (time_bomb @ Sep 18 2007, 09:45 AM) *
Ive just had my 1st order through google checkout, however shipping costs didnt show up on the order, how can i get shipping costs to be added on future orders?



What shipping methods are you using and did you run the shipping generator? Read through this thread for solutions to this problem it has been listed before. You would probably find an answer faster going through the 9 pages then waiting for me to reply. If you still can't find an answer provide me with the information you I asked for.
Silverado05
QUOTE (Nihil @ Sep 18 2007, 12:10 PM) *
Hey,
I tried to sign up google checkout, But when I tried to insert the country I discovered that its available only for U.S. and U.K.
There's no chance to use it if you are a merchant from another country?



Unfortunately Google only offers this checkout method to merchants in U.S. and U.K. at that moment. So until they make this widely available to other countries you won't be able to use this module.

Sorry but that is a Google thing.
bob61
The "default" status for order placed through Google Checkout is to set first to "Pending" and then to "Processing". For me, I'd like to keep the order set to "Pending" as I manually change to "Processing" once I actually start processing the order (not simply received payment). Can this be done?
time_bomb
new problem, upgraded from 1.3 to v1.4beta, now i get the following along the top of the admin area:

CODE
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/northaf1/public_html/shop/admin/includes/functions/general.php:1466) in /home/northaf1/public_html/shop/admin/includes/functions/sessions.php on line 67



whats the solution?
jprov
On approximately line 197 of the shopping cart.php page, there is a piece of code like this:

CODE
<?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?>


I removed that code, which broke my Google Checkout image and caused it not to display at all. I then replaced the code, but the Google image is not back. The module is still installed and the checkout button does show up on the login page as well. Any ideas?

I did a search on the forums but could not find this situation replicated, even with people who had removed the code posted above.

Thanks,
Jason
ecanas
Hi I just installed the CG everything works great the only error I have is when running http://www.monicasestore.com/catalog/googl...onsehandler.php

It keeps promting for authentication information. I've tried setting the setting .htaccess Basic Authentication Mode with PHP over CGI?
fo True, and run the utility to create the .htaccess file. But when I do that I get page not found error.

Server is running Windows w/ IIS5, with PHP 4.4.7
And I've also checked the file permissions on the log files.

Any ideas?
Thanks
CivicRacingGirl7
Problem with v1.4beta1:

I've installed as per the instructions, and have no problems UNTIL:

1. Since I have "RFQ" (Request for Quote) installed as a shipping module, I see the following error below the GC button:
What is Google Checkout?
Error: Shipping Methods not configured
rfq (ignored)

This obviously is an eyesore for customers. If the shipping option is ignored, that is fine as the customer will need to receive the shipping quote prior to shipping regardless.

2. When clicking on the GC button, I go to a page that simply displays the following information and nothing more:

This XML file does not appear to have any style information associated with it. The document tree is shown below. My seller ID is copy and pasted from my GC account, so there is no problems with it. I have verified my GC account as well (thought that was the problem at first, but it's still there after verification.)


<error serial-number="REMOVED">
<error-message>No seller found with id REMOVED</error-message>
</error>


This is my current configuration settings:

GoogleCheckout

Google Checkout Module Version
v1.4beta1

Enable GoogleCheckout Module
True

.htaccess Basic Authentication Mode with PHP over CGI?
False

Merchant ID
REMOVED

Merchant Key
_REMOVED-REMOVED

Select Mode of Operation
https://sandbox.google.com/checkout/

Select Merchant Calculation Mode of Operation
https

Disable Google Checkout for Virtual Goods?
False

Allow US PO BOX shipping?
False

Default Values for Real Time Shipping Rates


Rounding Policy Mode
UP

Rounding Policy Rule
PER_LINE

Also send notifications with OSC
True

Google Analytics Id
NONE

3rd Party Tracking
NONE

Continue shopping URL.
checkout_success.php
time_bomb
QUOTE (Silverado05 @ Sep 19 2007, 02:28 AM) *
What shipping methods are you using and did you run the shipping generator? Read through this thread for solutions to this problem it has been listed before. You would probably find an answer faster going through the 9 pages then waiting for me to reply. If you still can't find an answer provide me with the information you I asked for.



ok ive read through all the posts but its made me a bit confused.

1st off ill say im using version v1.4beta1, and im using zone based shipping rates.

I did the thing from post #44 and got this:
CODE
Array ( [0] => flat.php [1] => item.php [2] => table.php [3] => usps.php [4] => zones.php [5] => zones2.php ) Array ( [zones] => Array ( [code] => zones [title] => Zone Based Shipping Rates [description] => Zone Based Rates [status] => 1 ) )



what do i do after this? Is there any step by step guide somehwere?
shahasma
Issue with Notification,


Status: Newbie to OSC

Module: Google CheckOut v 1.4


Issue:

Added Google CheckOut plugin to my OSC. Works great placing order with Google Checkout button. I can see the order being placed in the Merchant Center for Google Checkout as well.

However; there are no orders within OSC for the same.

Is there anything additional required besides just installing and configuring the Google Checkout module to get notifications about the new orders within OSC ??


This might end up being real simple. Please pardon my ignorance/dumbness


Thank You for your Help !!

Asma
jprov
QUOTE (shahasma @ Sep 24 2007, 12:06 PM) *
Issue with Notification,
Status: Newbie to OSC

Module: Google CheckOut v 1.4
Issue:

Added Google CheckOut plugin to my OSC. Works great placing order with Google Checkout button. I can see the order being placed in the Merchant Center for Google Checkout as well.

However; there are no orders within OSC for the same.

Is there anything additional required besides just installing and configuring the Google Checkout module to get notifications about the new orders within OSC ??
This might end up being real simple. Please pardon my ignorance/dumbness
Thank You for your Help !!

Asma


Shahasma, I am having the same issue, evrything works great and I have the integration settings in there, but I keep getting the error:

We encountered an error trying to access your server at https://xxxxxxxx.com/cart/googlecheckout/responsehandler.php -- the error we got is: java.net.SocketTimeoutException: Read timed out


Anyone have an idea?
Justec
I setup this up for a client and I tested it on the live store with a real credit card 3 different times and it works fine. They have had 2 orders using gcheckout and both orders show up with 0.00 shipping.

In OScom it shows up a bit different:

My Good Order with shipping rate:
Google Checkout Order No: xxxxxxxxx5265
Merchant Calculations used: True

Order with no shipping rate:
Google Checkout Order No: xxxxxxxxx7105
Merchant Calculations used: False
NEW Buyer's User: email@email.com
Buyer's Password: xxxxxxxxxxxxxxxxxxxx

I read through this forum and I know other people have had issues with shipping, but didn't see anyone that has it work sometimes and not others.

Any ideas?
GoTTi
why is the google checkout button only showing on the viewcart page and not the payment page? if it is suppse to do that, is there a way that during checkout the customer gets dorwarded to google checkout to process out their payment?

also, when i process a payment through google checkout as a live test, and it sends me back to the store, the orders arent getting recorded in the admin-orders pages, and the order isnt in the history of my account as a user. i just get returned to the checkout_success.php page, but the item stays in my shopping cart, and nothing gets recorded. the sale does get recorded though on my google checkout side. why is this problem happening also?
Justec
QUOTE (GoTTi @ Sep 26 2007, 01:03 PM) *
also, when i process a payment through google checkout as a live test, and it sends me back to the store, the orders arent getting recorded in the admin-orders pages, and the order isnt in the history of my account as a user. i just get returned to the checkout_success.php page, but the item stays in my shopping cart, and nothing gets recorded. the sale does get recorded though on my google checkout side. why is this problem happening also?

You probably forgot to set in the google checkout admin page the URL to your responsehandler.php file.
GoTTi
is a SSL Cert required to make this work? when i set the call back page, google checkout is saying it needs to be https. my store isnt.
eknyc
just added Google Checkout v1.4 ropu 17 Jul 2007 to our store and i'm wondering if you add a tracking number and change the status from processing to shipped in the osC admin, will this automatically update in the Google Checkout admin?
eknyc
one more question.. i see the order and all of the details in the osC admin but I do not see the order in the My History. Is that correct or a bug?
puggybelle
CODE
why is the google checkout button only showing on the viewcart page and not the payment page?


It's not supposed to show up ANYWHERE other than the shopping cart and the login page.

Google Checkout does not want to be perceived as a payment 'method'....therefore, it is designed to show up ONLY in the shopping cart and login pages.

Look at it this way...it's a checkout method. Rather than click thru screen after screen to go thru normal checkout...one places items in their carts and clicks on Google Checkout...enters their info...and they're done. It's a beautiful thing, really.

CODE
just added Google Checkout v1.4 ropu 17 Jul 2007 to our store and i'm wondering if you add a tracking number and change the status from processing to shipped in the osC admin, will this automatically update in the Google Checkout admin?


Yes. That's exactly what should happen. Login to your actual Google Checkout merchant account and view Orders to verify that is what's happening. The status of their order should change in both your website AND in your Merchant account.
Natalka27
Hi
After running shipping generator test I get this error

Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory


I installed usps shipping method and I can see real time calculation if I proceed to os checkout but if I use google checkout it will not pass to it I will get all 0 or just empty drop down box instead of real time calculation from usps.

Can you help me please smile.gif
Justec
About the intermittent shipping fees showing up and not showing I don't understand why the default backup prices don't show up instead of $0.00.
The prices were set to all 1 and I just updated them to more realistic numbers, but even at 1 I would think it would show up at $1.00.
puggybelle
I installed Google Checkout in my website in mid-June. I also have a default shipping rate set up in the event that merchant calculations fail.

A couple of weeks ago....I received a purchase confirmation email from Google with zero shipping. It did not pick up my default shipping, either.

I just keep in mind that this feature is still a work in progress. Fortunately, the buyer was a long-time repeat customer and I logged into my Google Merchant account and cancelled his payment. When I did that, I was prompted with a pop-up box to say whatever I needed to, to the customer, about why his payment was cancelled, and he was sent an email.

The error showed as a server time-out in my error log in Google. But, like I said, it still didn't pick up the default rate.

Customer came back that evening and tried again and everything went fine.

My only point is, everyone needs to be mindful that Google Checkout is still in testing mode, to some extent...these things may happen.
Sam666
I'm using a TM template, edited all the files like it says in the readme, but when I upload googlecheckout.php to my payment modules folder I only have 3 modules there and they are:

Authorize.net
Credit Card
Cash on Delivery

Instead of 10, and Google doesn't show either. I also got a funny screen at first page in admin once saying install modules and it didn't do anything. What's the issue here?

As well because I’m using a template my login.php is different and when I edit it the bottom of the page and some tables go belly up, could someone edit it for me? I'm not a coder.

Required Edit:

CODE
5. /catalog/login.php                                               LINE 203
  ===========================================================================
=
  REPLACE:

                        <td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>
                        <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></form></td>

  WITH:

                        <td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>
                        <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td></form>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
    <?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>
    </table></td>


Login.php

CODE
<?php
/*
  $Id: login.php,v 1.80 2003/06/05 23:28:24 hpdl Exp $

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

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');
// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)
  if ($session_started == false) {
    tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
  }

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

  $error = false;
  if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
    $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
    $password = tep_db_prepare_input($HTTP_POST_VARS['password']);

// Check if email exists
    $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
    if (!tep_db_num_rows($check_customer_query)) {
      $error = true;
    } else {
      $check_customer = tep_db_fetch_array($check_customer_query);
// Check that password is good
      if (!tep_validate_password($password, $check_customer['customers_password'])) {
        $error = true;
      } else {
        if (SESSION_RECREATE == 'True') {
          tep_session_recreate();
        }

        $check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'");
        $check_country = tep_db_fetch_array($check_country_query);

        $customer_id = $check_customer['customers_id'];
        $customer_default_address_id = $check_customer['customers_default_address_id'];
        $customer_first_name = $check_customer['customers_firstname'];
        $customer_country_id = $check_country['entry_country_id'];
        $customer_zone_id = $check_country['entry_zone_id'];
        tep_session_register('customer_id');
        tep_session_register('customer_default_address_id');
        tep_session_register('customer_first_name');
        tep_session_register('customer_country_id');
        tep_session_register('customer_zone_id');

        tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'");

// restore cart contents
        $cart->restore_contents();

        if (sizeof($navigation->snapshot) > 0) {
          $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
          $navigation->clear_snapshot();
          tep_redirect($origin_href);
        } else {
          tep_redirect(tep_href_link(FILENAME_DEFAULT));
        }
      }
    }
  }

  if ($error == true) {
    $messageStack->add('login', TEXT_LOGIN_ERROR);
  }

  $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL'));
?>
<!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">
&lt;script language="javascript"><!--
function session_win() {
  window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=510,width=450,toolbar=no,statusbar=no,scrollbars=yes").focus();
}
//--></script>
</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 //-->

<!--  Start code -->
     <tr><td valign="top">
       <table border="0" cellspacing="0" cellpadding="0">
        <tr><td width="265" valign="top">            
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
            </td>         
            <td width="1"></td>        
            <td width="500" valign="top">
<!-- product -->            
             <table border="0" cellspacing="1" cellpadding="0" width="496" style="border:solid 1px #BFBFBF;">              
              <tr><td width="496">
                   <table border="0" cellspacing="0" cellpadding="0" width="496" align="center">
                    <tr><td class="bg4" width="536" height="43">     <span class="tx2"><?=HEADING_TITLE?></span></td></tr>
                    <tr><td height="10"></td></tr>
                   </table>
                    
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
<?php
  if ($messageStack->size('login') > 0) {
?>
      <tr>
        <td><?php echo $messageStack->output('login'); ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
  }
  if ($cart->count_contents() > 0) {
?>
      <tr>
        <td class="smallText_1" style="padding:0px 0px 0px 3px;"><?php echo TEXT_VISITORS_CART; ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
  }
?>        
    </table>

<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
    <td class="main" width="50%" valign="top"><b><?php echo HEADING_NEW_CUSTOMER; ?></b></td>
    <td class="main" width="50%" valign="top"><b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td>
</tr>
<tr>
    <td width="50%" height="100%" valign="top">
        <table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" style="border:1px solid #B6B7CB;">
        <tr>
            <td>
                <table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
            <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
            </tr>
            <tr>
                <td class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER . '<br><br>' . TEXT_NEW_CUSTOMER_INTRODUCTION; ?></td>
                  </tr>
                  <tr>
                    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                  </tr>
                  <tr>
                    <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"><?php echo '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_continue1.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>
            </table></td>
            <td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" style="border:1px solid #B6B7CB;">
              <tr>
                <td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
                  <tr>
                    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                  </tr>
                  <tr>
                    <td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>
                  </tr>
                  <tr>
                    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                  </tr>
                  <tr>
                    <td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>
                    <td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>
                  </tr>
                  <tr>
                    <td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>
                    <td class="main"><?php echo tep_draw_password_field('password'); ?></td>
                  </tr>
                  <tr>
                    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                  </tr>
                  <tr>
                    <td class="smallText_1" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>
                  </tr>
                  <tr>
                    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                  </tr>
                  <tr>
                    <td colspan="2"><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"><?php echo tep_image_submit('button_sign_in.gif', IMAGE_BUTTON_LOGIN); ?></td>
                        <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
              </tr>
            </table>
</form>

<!-- body_eof //-->

<!-- End code -->
        </td></tr>
            </table>    
            <table border="0" cellspacing="0" cellpadding="0">
              <tr><td height="1"></td></tr>
              <tr><td align="right"><a <tr><td align="right"><a href="<?=tep_href_link('drug_advisor.php')?>"><?=tep_image(DIR_WS_IMAGES.'m21.gif')?><?php include('banners.php'); ?></td></tr>
             </table>    
        </td></tr>  
       </table>
  </td></tr>  

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->

</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
StarLion
I have OGCmfosC (This mod) installed, along with the Table Rate Quantity mod (actually, 3 copies of it, for zone-use). The module screen for this mod reports:

quantitytable not configured!

Any idea how i can 'configure' this? My shipping has now become 0 when I use Google Checkout (and thus, i have disabled GC).
ropu
Hi all

im glad to announce the release of v1.4.5

09/27/2007 v1.4.5_CCS (ropu)
- Added Carrier Calculated Shipping Support (CCS)!!
(http://code.google.com/apis/checkout/developer/Google_Checkout_XML_API_Carrier_Calculated_Shipping.html)

- Added Sandbox and Production id/key config in Admin UI
- Added SANDBOX string to the payment method in order page for orders processed
with GC using sandbox.
- Added a warning under the GC Button when in Sandbox mode.
- Added a warning in the Payment Modules page in the Admin UI when in Sandbox mode.
- Disalbe merchant Calculation Shipping methods from the Admin UI by setting
Default value to 0.
- Added Google Checkout Custom Order States that match Google Checkout ones.
(Check INSTALLATION, an SQL must be run to update old GC order status)
- Check for non-valid state changes
- Allow product categories to use GC as checkout system
- Added Cart Expiration
- Check for correct configure.php defines to avoid shipping module inclusion errors
- Added a configuration to disable GC button for specific product categories
(double check http://checkout.google.com/seller/policies.html#4)
- Send Zencart's Credentials to new customers created with GC
- If AutoCharge is enabled in GC, a whole Digital purchase is processed without
merchant intervention.
- Use updated PHP Sample code
- Changed PHP Sample code parser classes names to avoid complicts
(XMLParser -> CG_XMLParser, XMLBuilder -> CG_XMLBuilder)
- Added Cancel Order feature.
- Added shipping_methods_uk.php with UK pre-configured shipping methods.
- Admin UI configuration regroupment
- Added Recommended Default Values to Shipping_generator

You can get it from here:
http://code.google.com/p/google-checkout-o.../downloads/list
or
http://www.oscommerce.com/community/contributions,4556

Check this post for more info
http://groups.google.com/group/google-chec...5b144e287db49f#

Note:
For official forum support check

http://groups.google.com/group/google-chec...sc-mod-support/

thx

ropu
Robert972
When i have this in my googlecheckout/gcheckout.php i get
"Oops!
We were unable to process your request."

when i click google checkout. What could be the problem?
CODE
}
if(MODULE_PAYMENT_GOOGLECHECKOUT_CARRIER_CALCULATED_ENABLED == 'True' && !$free_shipping){
$Gshipping = new GoogleCarrierCalculatedShipping('Carrier_shipping');
$country_code = defined('SHIPPING_ORIGIN_COUNTRY')?SHIPPING_ORIGIN_COUNTRY:STORE_COUNTRY;
$zone_name = tep_get_zone_code($country_code, STORE_ZONE, '');
$countries_array = tep_get_countries(SHIPPING_ORIGIN_COUNTRY, true);
$ship_from = new GoogleShipFrom('Store_origin',
'',
$countries_array['countries_iso_code_2'],
SHIPPING_ORIGIN_ZIP,
$zone_name);
$GSPackage = new GoogleShippingPackage($ship_from,1,1,1,'IN');
$Gshipping->addShippingPackage($GSPackage);
$carriers_config = explode(', ', MODULE_PAYMENT_GOOGLECHECKOUT_CARRIER_CALCULATED);
// print_r($googlepayment->cc_shipping_methods);die;
foreach($googlepayment->cc_shipping_methods_names as $CCSCode => $CCSName){
foreach($googlepayment->cc_shipping_methods[$CCSCode] as $type => $methods) {
foreach($methods as $method => $method_name) {
$values = explode('|', gc_compare($CCSCode . $method. $type , $carriers_config, "_CCS:", '0|0|0'));
if($values[0] != '0') {
$CCSoption = new GoogleCarrierCalculatedShippingOption($values[0], $CCSName, $method,$values[1], $values[2], 'REGULAR_PICKUP');
$Gshipping->addCarrierCalculatedShippingOptions($CCSoption);
}
}
}
}
$Gcart->AddShipping($Gshipping);


If i uncomment that print_r and pre format it, I get this on shopping_cart.php
CODE
Array
(
[fedex] => Array
(
[domestic_types] => Array
(
[Ground] => Ground
[Home Delivery] => Home Delivery
[Express Saver] => Express Saver
[2Day] => 2Day
[Standard Overnight] => Standard Overnight
[Priority Overnight] => Priority Overnight
[First Overnight] => First Overnight
)

[international_types] => Array
(
)

)

[ups] => Array
(
[domestic_types] => Array
(
[Ground] => Ground
[3 Day Select] => 3 Day Select
[2nd Day Air] => 2nd Day Air
[Next Day Air Saver] => Next Day Air Saver
[Next Day Air] => Next Day Air
[Next Day Air Early AM] => Next Day Air Early AM
)

[international_types] => Array
(
)

)

[usps] => Array
(
[domestic_types] => Array
(
[Media Mail] => Media Mail
[Parcel Post] => Parcel Post
[Express Mail] => Express Mail
)

[international_types] => Array
(
)

)

)


The main reason i upgraded to this was for the shipping calculations, but its not workin... please help
pure11
hi this is a stupid question but what is the difference between

http://www.oscommerce.com/community/contributions,4556/

and
http://www.oscommerce.com/community/contri...1/search,google

in other words google checkout and google checkout IPN?

i installed the google checkout IPN and it does not record the sales in the osc admin nor does it record the sales in the users account info

for the regular google checkout does it record everyting in the admin and user accounts or does it process the orders the same as googe checkout IPN?


p.s. if i installed the google checkout IPN and want to use googe checkout do i have to completly uninstall the google checkout IPN first or is there a quicker way to do this?


thanks
apollowear
Hi,

I have had googlecheckout installed for some time and get a few orders processed through it. One issue I have is that the order number is not updated and is set to 0 - so when a new order is created, it shows up as the same order over and over again.

I have been manually creating the order when I get a notification, but there must be something I can do to fix this.

I do have the order number increasing randomly - perhaps thats the issue.

Any ideas would be appreciated.

Regards
Lee
Apollowear
Roaddoctor
I just updated to 1.4.5 - Thanks Ropu! All seems well

I have two "cosmetic" questions, hopefully with simple answers

1. How/Where do I attach the stores CSS to the " - Or Use " text that appears above the checkout button?

2. I want to move that same text ( - Or Use ) to the LEFT of the GC button, not above as it is currently placed. I think this is the related code. Can someone please post the edit? (use of Div tags confuse me still, sorry)

*************************

CODE
<div align="right">
<?php
    echo '<div style="width: 180px; text-align: center;"><b>' . MODULE_PAYMENT_GOOGLECHECKOUT_TEXT_OPTION . '</b></div>'; ?> </div> <div align="right">
    <?php
    echo $Gcart->CheckoutButtonCode();
    ?>
    <?php
      foreach($Gwarnings as $Gwarning) {
        echo '<div style="font-size:11px; color: red; width: 180px;
text-align: center;"> * ' . $Gwarning . '</div>';
      }
      if($shipping_config_errors != ''){
        echo '<div style="font-size:11px; color: red; width: 180px;
text-align: center;"><b>' . GOOGLECHECKOUT_STRING_ERR_SHIPPING_CONFIG . '</b><br />';
        echo $shipping_config_errors;
        echo '</div>';
    }
    ?>
</div>


***********************

Thanks for the help
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.