Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Where do I edit the Google Checkout buttons in Magento…
 
costaa
Jr. Member
 
Total Posts:  8
Joined:  2009-03-12
 

Hello everyone.

I’ve been looking through all the files that came with Magento and I’ve been desperately looking for the file that contains the following code that displays the Google Checkout button in the Checkout process. Here is an example of what the code looks like:

<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/111111111111111" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
    <
input name="item_name_1" type="hidden" value="Best Item in the world"/>
    <
input name="item_description_1" type="hidden" value="This is the description..."/>
    <
input name="item_quantity_1" type="hidden" value="1"/>
    <
input name="item_price_1" type="hidden" value="3333.0"/>
    <
input name="item_currency_1" type="hidden" value="USD"/>
    <
input name="_charset_" type="hidden" value="utf-8"/>
    <
input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=111111111111111&amp;w=117&amp;h=48&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
</
form>

I’m trying to insert this affiliate tracking code into this HTML Google Checkout code in between:

<input name="_charset_" type="hidden" value="utf-8"/>
and
<input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=111111111111111&amp;w=117&amp;h=48&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>

But so far, I’ve had no luck finding this.

Help GREATLY appreciated. <3

Thank you,

Alex

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

Do you need the actual code? You can customize it through the Google API area in your admin configuration.

 
Magento Community Magento Community
Magento Community
Magento Community
 
costaa
Jr. Member
 
Total Posts:  8
Joined:  2009-03-12
 
sherrie - 06 May 2009 08:40 AM

Do you need the actual code? You can customize it through the Google API area in your admin configuration.

Hi sherrie,

Yes I need to see the actual code so I can insert the tracking code into the Google Checkout button code.

Do you know where I can find this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
sherrie
Moderator
 
Avatar
Total Posts:  1655
Joined:  2007-12-14
Waterloo, ON
 

It looks like its in lib/googlecheckout/googlecart.php

 
Magento Community Magento Community
Magento Community
Magento Community
 
costaa
Jr. Member
 
Total Posts:  8
Joined:  2009-03-12
 

Hi Sherrie,

Thank you for taking the time to help me out. smile

I just checked the googlecart.php file and I don’t exactly know what to edit… I’m trying to insert the following tracking code:

<!-- integration code -->
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.url" value="http://www.buymicrosoftpoints.com/rewardcenter/scripts/sale.php"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.name" value="OrderID"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.type" value="order-id"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.name" value="TotalCost"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.type" value="order-total"/>
<!-- 
end of integration code -->

The tracking code above has to be placed in the HTML code of the Google Checkout button:

<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/111111111111111" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
    <
input name="item_name_1" type="hidden" value="Best Item in the world"/>
    <
input name="item_description_1" type="hidden" value="This is the description..."/>
    <
input name="item_quantity_1" type="hidden" value="1"/>
    <
input name="item_price_1" type="hidden" value="3333.0"/>
    <
input name="item_currency_1" type="hidden" value="USD"/>
    <
input name="_charset_" type="hidden" value="utf-8"/>
    <
input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=111111111111111&amp;w=117&amp;h=48&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
</
form>

Everything needs to look like this:

<form action="https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/111111111111111" id="BB_BuyButtonForm" method="post" name="BB_BuyButtonForm">
    <
input name="item_name_1" type="hidden" value="Best Item in the world"/>
    <
input name="item_description_1" type="hidden" value="This is the description..."/>
    <
input name="item_quantity_1" type="hidden" value="1"/>
    <
input name="item_price_1" type="hidden" value="3333.0"/>
    <
input name="item_currency_1" type="hidden" value="USD"/>
    <
input name="_charset_" type="hidden" value="utf-8"/>
<!-- 
integration code -->
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.url" value="http://www.buymicrosoftpoints.com/rewardcenter/scripts/sale.php"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.name" value="OrderID"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.type" value="order-id"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.name" value="TotalCost"/>
<
input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.type" value="order-total"/>
<!-- 
end of integration code -->
    <
input alt="" src="https://checkout.google.com/buttons/buy.gif?merchant_id=111111111111111&amp;w=117&amp;h=48&amp;style=white&amp;variant=text&amp;loc=en_US" type="image"/>
</
form>
 
Magento Community Magento Community
Magento Community
Magento Community
 
costaa
Jr. Member
 
Total Posts:  8
Joined:  2009-03-12
 

I still need help here guys. :(

Bump.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bcdennis
Jr. Member
 
Total Posts:  8
Joined:  2009-04-21
 

I think you’ll need to places:

app/design/frontend/default/default/googlecheckout/link.phtml

and/or

app/code/core/Mage/GoogleCheckout/Block/Link.php

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top