Jump to content
Sign in to follow this  
docwisdom

Google Checkout Only

Recommended Posts

I am looking for an edit that will make google checkout the only checkout option in oscommerce. I want it to replace the default checkout. I have gone into admin and removed all other payment options, but the original checkout still remains.

Share this post


Link to post
Share on other sites

The problem is you actually need to edit the file shopping_cart.php to remove the checkout button. I'll be back at work tomorrow and can post some information for you... you'll need to remove some other PHP files, too, just to make sure malicious users don't try browsing to them.

 

I'll post some code in the morning. Sit tight. :D

Share this post


Link to post
Share on other sites

Hey "rszrama"

 

just wanting to check in to see if you could help out on removing the optional payment buttons. I am wanting to use Google only.

 

Thanks,

Robert

Share this post


Link to post
Share on other sites
I too am looking for a solution to only use google checkout.

 

I was able to do it by removing the checkout from the php files, like header.php. I cant remember the other one but it was easer than header.php

 

Chris

Share this post


Link to post
Share on other sites

All you need to do is remove the stock osc checkout button on the shoping cart page and point all your checkout links to the shopping cart.

 

This is the line of code with the checkout button in shopping_cart.php for the checkout button:

 

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

 

You'll need to remove that line to remove the button. Then work your google button code in its place and all you'll have is google checkout.

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  

×