Jump to content
Sign in to follow this  
gandhi

I just want google checkout

Recommended Posts

I've installed google checkout. It works!!

 

can i just delete the normal checkout built into oscomm and use google checkout as my main payment? How do i intergrate it into the actual checkout screen?

 

http://brewrecords.net/shop/login.php

 

i dont want the above....

 

thanks.

 

Can anyone help me?

Share this post


Link to post
Share on other sites

Remove all the links to create account from Your code.

 

When some shops He will have no other option but to reach till checkout and pay thru google.

 

Satish


Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Share this post


Link to post
Share on other sites

After having 3 customers email me that the checkout buttons were confusing, I had 2 checkout buttons (regular checkout and googlecheckout), I decided to remove the regular checkout button on the shopping cart. Here is how I did it.

 

In shopping_cart.php, I removed this code:

 

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

 

Now the only option to pay is the google checkout button.

Edited by speed777

Share this post


Link to post
Share on other sites

The advantage to removing the checkout button is that a customer account is still created in OSC Admin and a password sent to the customer. This is done automatically without any effort on the part of the merchant when a customer buys a product. The disadvantage is that you restrict the number of payment options available to the customer such as pay by check, money order or purchase order.

Edited by speed777

Share this post


Link to post
Share on other sites

I will add a contribution with the checkout button removed. I'm having problems with the Continue Shopping button so I'm leaving that button out and when I resolve these problems, I'll upload an add-on with the button re-installed.

Share this post


Link to post
Share on other sites

That all sounds good man, any update on this? I just want a google checkout/paypal option for my customers to pay but without to nag of registering.

 

Thanks.

Share this post


Link to post
Share on other sites
I just want a google checkout/paypal option

can be done google checkout and paypal express only as payment.


Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Share this post


Link to post
Share on other sites
That all sounds good man, any update on this? I just want a google checkout/paypal option for my customers to pay but without to nag of registering.

 

Thanks.

I uploaded an updated add-on but its only for google checkout not paypal. I don't use paypal so I'm not familiar with it.

Share this post


Link to post
Share on other sites
I uploaded an updated add-on but its only for google checkout not paypal. I don't use paypal so I'm not familiar with it.

 

 

Cool! Where did you upload it to?

 

Cheers!

Share this post


Link to post
Share on other sites

hi there, i've installed google checkout.

 

however when you click the link "checkout" on the top right of the screen it just gives you the oscommerce registration screen. I don't weant this, i just want people to be directed straight to the google checkout page.

 

can anyone help me?

 

http://brewrecords.net/shop/shopping_cart.php

 

thanks.

Share this post


Link to post
Share on other sites
hi there, i've installed google checkout.

 

however when you click the link "checkout" on the top right of the screen it just gives you the oscommerce registration screen. I don't weant this, i just want people to be directed straight to the google checkout page.

 

can anyone help me?

 

http://brewrecords.net/shop/shopping_cart.php

 

thanks.

Use my add-on, its simple, you just change one file. Thanks for the idea.

Share this post


Link to post
Share on other sites

which one should i install though, theres a lot to choose from.

 

this one???

 

Delete OSC Checkout Button-Updated speed777 11 Jan 2009

 

This add-on replaces the previous add-on by re-installing the continue shopping button. I've re-aligned the continue shopping button by moving it to the right where the OSC checkout button was so that the design layout flows better. This add-on is only for those merchants who wish to use Google Checkout as their sole payment option. This is not a complete version of Google Checkout, only the shopping_cart.php file has been added

Share this post


Link to post
Share on other sites
which one should i install though, theres a lot to choose from.

 

this one???

 

Delete OSC Checkout Button-Updated speed777 11 Jan 2009

 

This add-on replaces the previous add-on by re-installing the continue shopping button. I've re-aligned the continue shopping button by moving it to the right where the OSC checkout button was so that the design layout flows better. This add-on is only for those merchants who wish to use Google Checkout as their sole payment option. This is not a complete version of Google Checkout, only the shopping_cart.php file has been added

Yes, that's the one.

Share this post


Link to post
Share on other sites

hi there,

 

i just installed the contribution and i still seem to be at square one.

 

when you have something in the cart on my shop and click checkout, alas the oscommerce registration appears :(

 

www.brewrecords.net/shop

Share this post


Link to post
Share on other sites
hi there,

i just installed the contribution and i still seem to be at square one.

 

when you have something in the cart on my shop and click checkout, alas the oscommerce registration appears :(

 

www.brewrecords.net/shop

Ok, I understand. There are 2 ways to checkout: the Google checkout button and the OSC checkout text, which is in the breadcrumb. When you click the OSC text, you are taken to login.php. This is a separate issue and needs a fix too. I'll work on it.

Edited by speed777

Share this post


Link to post
Share on other sites

My solution was to remove the cartoon checkout button and the checkout text in the breadcrumb. I'll upload an add-on with the fixes later. Now, there's only one way to checkout by using the google checkout button.

Share this post


Link to post
Share on other sites

Hey man i did that but now i get this error when i click on my shop www.brewrecords.net/shop

 

Parse error: syntax error, unexpected $end in /home/brewreco/public_html/shop/includes/header.php on line 108

 

here's my header.php file:

 

<?php
/*
 $Id: header.php 1739 2007-12-20 00:52:16Z hpdl $

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

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
  $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
  $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
  if (!is_dir(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
  } elseif (!is_writeable(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
  }
}
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
  $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
  $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
 }

 if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="main">
<td align="left"><img src="images/brewrecordslogosmall.gif" ALT="logo"></td>
<td valign="middle" align="center"><p align="center" class="main"><img src="images/banners/chickenhawk_banner1.gif" ALT="chickenhawk" ALIGN=center><br />
<b>Bands, labels - I want your stock! shop@brewrecords.net</b><br />
</font></p></td>
<td align="right" style="padding-right: 20px;">
<form method=post action=http://www.ymlp.com/subscribe.php?BREWRECORDS>
<table border=0>
<tr>
<td colspan=2 class="main"><b>Fill out your e-mail address <br>
 to receive our newsletter</b></td>
</tr>
<tr>
<td><input type="text" name="YMLP0" size="20"></td>
<td><input type="submit" value="Submit"></td>
</tr>
<tr>
<td colspan=2><a href="http://www.yourmailinglistprovider.com" target="_new"></a></td>
</tr>
</table>
</form>
</td>
</tr>
</table>


<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" </td>  </tr>
</table>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
 </tr>
</table>
<?php
 }
?>

Share this post


Link to post
Share on other sites

You have cut out alot more than I have, as an example:

<tr class="headerNavigation">

<td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" </td> </tr>

</table>

 

On my site, I have this:

<!-- PWA BOF -->

<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><?php if (tep_session_is_registered('customer_id') && (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) && !$order->customer['is_dummy_account']) { ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>    <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" </td>

<!-- PWA EOF -->

 

I think your problem is coming from this line:

tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS;

 

Try to paste the code into an unmodified version of header.php, then make the modifications you wish once you have it working properly. <a href="http://www.eofficesupply.biz/index.php">This</a> is how it should look.

Edited by speed777

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×