ukwazoo Posted April 4, 2007 Posted April 4, 2007 I just installed and configured Google checkout, and that works great. But, I'd really like to get rid of the other area of the checkout page on OSCommerce. In essence, I want the only option available to be Google Checkout. I want to force visitors to use Google checkout. Is there any way to do this? As of right now, a visitor can either use Google checkout, or go through the OSCommerce checkout, which doesn't work, because I don't have a merchant account set up anywhere, and I don't want to set up a merchant account anywhere. Any help would be greatly appreciated. Quote
Guest Posted April 4, 2007 Posted April 4, 2007 I just installed and configured Google checkout, and that works great. But, I'd really like to get rid of the other area of the checkout page on OSCommerce. In essence, I want the only option available to be Google Checkout. I want to force visitors to use Google checkout. Is there any way to do this? As of right now, a visitor can either use Google checkout, or go through the OSCommerce checkout, which doesn't work, because I don't have a merchant account set up anywhere, and I don't want to set up a merchant account anywhere. Any help would be greatly appreciated. You could set up PayPal, COD, Bank Transfer, all without a merchant account. Quote
Guest Posted April 16, 2007 Posted April 16, 2007 You could set up PayPal, COD, Bank Transfer, all without a merchant account. PayPal and others charges a fee at present for their services and when Google Checkout does, they are usually a 1/3rd lower than PayPal. Is it possible to completely remove the OSCommerce checkout and leave Google CheckOut only? Quote
Guest Posted April 17, 2007 Posted April 17, 2007 (edited) PayPal and others charges a fee at present for their services and when Google Checkout does, they are usually a 1/3rd lower than PayPal. Is it possible to completely remove the OSCommerce checkout and leave Google CheckOut only? Easily. It won't remove the checkout files or anything like that, but you can remove the link to it. Find this: <?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?> In shopping_cart.php in the base directory of your OSC install and remove it. I would back everything up as usual. This should remove the button to go through the normal route of checkout, and instead just present the customer with a Google Checkout button. You'll need to remove the checkout button as well from your normal theme too, otherwise your customers will be able to get onto the 'normal' checkout instead of Google. To do this: Find this: <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"> In includes/header.php and remove it. It might break your theme so be careful. Again back everything up. Your lucky that Google Checkout is working for you, I spent the whole of yesterday battling with the US version (I'm in the UK) and trying to get a weight table shipping fee thing worked out but to no avail. Good luck :D Edited April 17, 2007 by SteveXSRC Quote
Guest Posted April 17, 2007 Posted April 17, 2007 (edited) Easily. It won't remove the checkout files or anything like that, but you can remove the link to it. Find this: <?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?> In shopping_cart.php in the base directory of your OSC install and remove it. I would back everything up as usual. This should remove the button to go through the normal route of checkout, and instead just present the customer with a Google Checkout button. You'll need to remove the checkout button as well from your normal theme too, otherwise your customers will be able to get onto the 'normal' checkout instead of Google. To do this: Find this: <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"> In includes/header.php and remove it. It might break your theme so be careful. Again back everything up. Your lucky that Google Checkout is working for you, I spent the whole of yesterday battling with the US version (I'm in the UK) and trying to get a weight table shipping fee thing worked out but to no avail. Good luck :D You saved me a lot of time. Thanks immensely. There was one other area that required modification for other's future reference. Deleting the: <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"> line of code in the header.php file doesn't entirely prevent a user from accessing the shopping cart in OSCommerce. You also have to remove the code that presents the image of the shopping cart above it and its associated formatting and hyperlink. Once the header.php is modified as you instructed and with this additional bit of code, the checkout process built into OSCommerce becomes invisible and essentially useless. Once Google Checkout is your primary checkout button, you will probably want to do away with the - or - wording too. You can find that in the googlecheckout/gcheckout.php file. Again, thanks for your help! Edited April 17, 2007 by Spaatz Quote
Zero Hour Posted April 17, 2008 Posted April 17, 2008 Once Google Checkout is your primary checkout button, you will probably want to do away with the - or - wording too. You can find that in the googlecheckout/gcheckout.php file. You can actually find the - Or use - wording in the catalog/includes/languages/english/modules/payment/googlecheckout.php. You will also need to take it out of each language you have so you would replace "english" with "espanol, german, etc. Quote
EGOA Posted August 19, 2010 Posted August 19, 2010 Easily. It won't remove the checkout files or anything like that, but you can remove the link to it. Find this: <?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?> In shopping_cart.php in the base directory of your OSC install and remove it. I would back everything up as usual. This should remove the button to go through the normal route of checkout, and instead just present the customer with a Google Checkout button. You'll need to remove the checkout button as well from your normal theme too, otherwise your customers will be able to get onto the 'normal' checkout instead of Google. To do this: Find this: <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"> In includes/header.php and remove it. It might break your theme so be careful. Again back everything up. Your lucky that Google Checkout is working for you, I spent the whole of yesterday battling with the US version (I'm in the UK) and trying to get a weight table shipping fee thing worked out but to no avail. Good luck :D Hey, I removed the link in shopping_chart.php but did not back up the whole file first and now it is not working at all. Has anyone got a back up of shopping_cart.php????? I would be very greatful! Quote
Guest Posted August 19, 2010 Posted August 19, 2010 Just download the .zip again and replace the missing files. BTW, while reading this......you understand that OSC will not pass the totals to google checkout without accessing the checkout_process.php which requires the checkout_confirmation.php ??? Chris Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.