Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Google Checkout Only


docwisdom

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.

Link to comment
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

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...