Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default Google Checkout: Using a smaller button

    Heres the button my site currently uses:



    Heres the one I want it to use:



    I would have thought this would be ridiculously simple, find the code, change it. I can't for the life of me find where this code is that governs the checkout.gif image. I also can't find this question asked anywhere on the forum either despite me thinking this is a fairly common thing to do... So, I must be missing something!

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Google Checkout: Using a smaller button

    You could use the Admin - Tools - Developers Tool Kit to search for the actual name of the existing button.

  3. #3
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Google Checkout: Using a smaller button

    Quote Originally Posted by stevesh View Post
    You could use the Admin - Tools - Developers Tool Kit to search for the actual name of the existing button.
    Doesn't work, I can search checkout.gif and all it gives me is this:


    That is the ONLY google gif that is coded into any of my files. Searching other things doesn't work either, no mention of this specific image. All I can think is it must be hidden along another google request. Its not hosted on my server, its on googles, and I assume that the code (wherever it is) is being called on but I just can't find it. It would almost be easier to just force my own smaller googlecheckout image but thats against their TOS.

    Of all the things to stump me, this ones a little silly to be honest. I'm running through the google checkout code to try and find where it requests the image but so far am having no luck.

  4. #4
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Google Checkout: Using a smaller button

    Anyone? Still confuzzled.

  5. #5
    Join Date
    Oct 2009
    Location
    New York, USA
    Posts
    70
    Plugin Contributions
    0

    Default Re: Google Checkout: Using a smaller button

    Yeah, I would like to use the smaller button as well.

    I've looked at all of the Goog Checkout files, and can't find where to change the button size.

    Anyone have an idea?

  6. #6
    Join Date
    Feb 2009
    Posts
    166
    Plugin Contributions
    0

    Default Re: Google Checkout: Using a smaller button

    The file that controls the button sizes is googlecart.php, located in the /googlecheckout/library/ folder. You can choose from small, medium, large, and whether it's transparent or white, etc.

  7. #7
    Join Date
    Feb 2009
    Posts
    166
    Plugin Contributions
    0

    Default Re: Google Checkout: Using a smaller button

    I double-checked it to be sure. This is the code that controls GC button that appears in the shopping cart; it begins around line 1087 of googlecart.php:

    function CheckoutButtonCode($size="large", $variant=true, $loc="en_US",
    $showtext=true, $style="white")

    You change "large" to either "medium" or "small" to adjust the button size. A couple more useful changes you can make:

    $showtext=true can be changed to $showtext=false to turn off the "What is Google Checkout?" text link.

    $style="white" can be changed to $style="trans" for a button with a clear background instead of white.

  8. #8
    Join Date
    Oct 2009
    Location
    New York, USA
    Posts
    70
    Plugin Contributions
    0

    Default Re: Google Checkout: Using a smaller button

    Thank you very much for responding and posting, this is great news!

    I appreciate it!


  9. #9
    Join Date
    Nov 2008
    Posts
    18
    Plugin Contributions
    0

    Default Re: Google Checkout: Using a smaller button

    Sorry, forgot to respond to this to thank you...


    So.... thanks! Worked perfectly!!

 

 

Similar Threads

  1. Help! Moving Google CHeckout button to Checkout page
    By taraeng in forum Addon Payment Modules
    Replies: 1
    Last Post: 4 Oct 2011, 12:43 AM
  2. Checkout Button Hide with Google Checkout
    By DaveCB in forum Addon Payment Modules
    Replies: 2
    Last Post: 14 Jun 2009, 05:57 PM
  3. Checkout Button MISSING after removing Google Checkout!
    By ricky_101 in forum Addon Payment Modules
    Replies: 0
    Last Post: 25 May 2008, 11:37 AM
  4. Checkout Button problem with Google Checkout
    By handkem in forum Addon Payment Modules
    Replies: 0
    Last Post: 12 May 2008, 10:41 PM
  5. Paypal Express checkout don't show button after installing Google Checkout
    By jgarabot in forum PayPal Express Checkout support
    Replies: 9
    Last Post: 2 Apr 2007, 07:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg