A A A
Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
How to setup Google Checkout
September 8, 2009
6:18 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

With the release of Market Theme version 3.52, it has become much easier to switch to using Google Checkout rather than the Paypal system.

All you have to do is edit two lines in one theme file.

Ok, so here's how... 

1.  Open up the "cart.php" file for editing. 

(It's located in the "ajCart" folder of the theme files.  (/wp-content/themes/mk3/ajCart/")

2.  On or around line # 15, you'll find the following line:

$ACTION_URL = "https://www.paypal.com/cgi-bin/webscr";  //Paypal

3.  Disable the line by placing two slashes in front of the line before the dollar sign.  It should look like this:

//$ACTION_URL = "https://www.paypal.com/cgi-bin/webscr";  //Paypal

4.  Now, look at the next line:

//$ACTION_URL = "https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/YOURMERCHANTIDHERE";  //Google Checkout (change merch ID)

5.  Enable this line by removing the first two slashes on the line.

6.  Next, replace the text "YOURMERCHANTIDHERE" with the your Google checkout merchant ID.

7.  Save and upload the modified file to your website hosting account.  These changes should do it.

On the shopping cart page, there is an image that has "Paypal" in it.  Since you're going with Google checkout, you may want to replace that image with one that features Google checkout.

The name of this image file is "cards_accepted.gif", and is also located in the "ajCart/" folder of the theme.

September 14, 2009
10:57 am
Avatar
Member
Members
Forum Posts: 16
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Not working for me.

I just upgraded to the newest version of MK3 to try to get Google Checkout working. However, after following directions to a tee, it still doesnt work.

When you hit the checkout button, indeed you do go to a google checkout page, but it simply says - -

"OOPS!  ------------------------- has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try checking out again."

Any idea why it does this?

Thanks!

October 2, 2009
8:31 pm
Avatar
RoseannB
Member
Members
Forum Posts: 7
Member Since:
October 3, 2009
sp_UserOfflineSmall Offline

Is there anyway to allow for both so the buyer has a choice to pick?

October 5, 2009
3:00 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

Try reading this thread around post #4

http://www.markettheme.com/for.....ckout-help

November 27, 2009
4:30 pm
Avatar
BlissSt
Member
Members
Forum Posts: 17
Member Since:
August 3, 2009
sp_UserOfflineSmall Offline

 I am getting the same error.

I have disabled the paypal code by adding  // and enabled the my google code by removing//  looks like.

$ACTION_URL = "https://checkout.google.com/api/checkout/v2/checkoutForm/Merchant/YOURMERCHANTIDHERE";  //Google Checkout (change merch ID)

YOURMERCHANTIDHERE has been replaced by my merchant ID number.

yet when I try to buy somthing I get

{Bliss St Jewelry has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try checking out again.}

I believe it is related to -

The plugin installs properly but will not activate stating -

The plugin does not have a valid header.

So 1-plug in will not activate

2-changes to the cart.php brings the error.

Bliss St Jewelry has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try checking out again.

So what is next?

November 30, 2009
7:05 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

Getting your Product Manager plugin to activate is critical.

Can you provide any info on why it's not activating?

(Please start a new thread for the plugin header topic so that it makes sense when people are searching.)

December 2, 2009
12:11 pm
Avatar
BlissSt
Member
Members
Forum Posts: 17
Member Since:
August 3, 2009
sp_UserOfflineSmall Offline

Ok maybe we need to start over. The market product manager version 2.29 downloads fine.

I made the changes to 

 the "cart.php" file for as stated above. all looks good but when I go to by something the google page gives me an error of.

Oops!

Bliss St Jewelry has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try checking out again.

I Have Market theme version 3.62

I am having issues with acmg.zip (Google checkout module)  it will upload but not activate

December 2, 2009
3:45 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

Ok, if you are using the latest version of Market -- then the only thing you really need to do is change line # 15 and #16 in the "ajCart/cart.php" file.

The acmg.zip Google checkout is only for Market versions prior to 3.5.

I seem to remember something about an error with Google checkout before, but I can't seem to find the answer.

From my recollection, it was actually an issue with the member's Google account.

Have you validated your Google Checkout account? (You need to validate it after you sign up for it.)

I know that's necessary to get things to work.  Double check that.

January 22, 2010
8:27 pm
Avatar
Member
Members
Forum Posts: 16
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

I'm having problems as well. I just upgraded to the latest MK3 version, 3.62. The Product Manager is 2.29, all works fine.

I changed the code as instructed by the Market Admin to disable the Paypal and enable the Google Checkout with our merchant ID in place.

Our Google Checkout account is verified and enabled. We get the same error:

XXXXXXXXXXXXXXXXXXX has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try checking out again.Oops!

Interestingly enough, if I replace the ajCart with the Google Checkout Module ajCart - it seems to work (except the shipping costs don't come over)

Please help!

January 22, 2010
9:53 pm
Avatar
Member
Members
Forum Posts: 16
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

I checked out the Google Integration Console and it's saying this:

Error parsing XML; message from parser is: Invalid value for attribute continue-shopping-url in continue_url: URL contains illegal characters

 

The XML they see is this:

item1713850874=1&update=1&cmd=_cart&upload=1&currency_code=USD&business=estore%40shortsbrewing.com
&shipping_1=3&item_name_1=Grey+Logo+T-Shirt+%E2%80%93+Long+Sleeve&amount_1=20&quantity_1=1
&item_description_1=Size%3A+XX-Large+%28%2B%242.00%29%3Cbr+%2F%3E&item_quantity_1=1
&item_price_1=20&item_currency_1=USD&on0_1=Size&os0_1=+XX-Large+%28%2B%242.00%29
&ship_method_name_1=Ship+Method&ship_method_price_1=3&ship_method_currency_1=USD
&checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url=%2Fstore%2Fwp-content%2F
themes%2Fmk3%2FajCart%2Fcart.phpcart_postsale.php&tax_rate=0&tax_us_state=MT&_charset_=
January 23, 2010
6:56 am
Avatar
Member
Members
Forum Posts: 16
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

I figured it out - you have to set the "path" setting in the Market Theme settings to "absolute" URL path.

March 4, 2010
3:30 pm
Avatar
Member
Members
Forum Posts: 20
Member Since:
December 8, 2009
sp_UserOfflineSmall Offline

I'd like to do this as well. Do I need to create a Google checkout page first, before following the steps above?

Thanks!

March 5, 2010
12:58 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

You need to have a validated Google checkout account, before you do this. 

But there is no extra page you need to create.

March 8, 2010
9:06 am
Avatar
Member
Members
Forum Posts: 20
Member Since:
December 8, 2009
sp_UserOfflineSmall Offline

Hi,

I just tried it and I also get the same error massage. Product manager is working fine. I checked the Market Theme settings as Nipez suggests above and the "path" setting is set to "absolute" (although it says it is for images)

My Google account is validated.

Thanks!

March 8, 2010
12:52 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

Strange... 

I'll setup a test install and see if I can recreate the problem.

March 8, 2010
1:04 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

Well, I just re-tested it and things seem to work just fine on this end.  All I needed to do was disable the Paypal link and enable the "Google checkout" link and enter my acct #.

I'm using "Justhost.com" for the test setup.

It does create an error, if I have the URL image paths settting set to "relative" and not "absolute" -- but other than that, things seem to work ok.

We will look into why it doesn't work for relative image paths.

March 8, 2010
1:37 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

Ok, created an update so that the "relative URL path" setting works with Google Checkout as well.  It'll be in the next release (within the month).

If you need the changes before then, then do this:

1. Open "functions.php" for editing

2. On or around line # 78, add the following two lines:

   session_register("POSTSALE_URL");
      $_SESSION["POSTSALE_URL"] = get_template_directory_uri() . "/ajCart/cart_postsale.php";

3. Save the file.

Now make these changes.

1. Open the "ajCart/cart.php" file for editing.

2. On or around line # 13, add the following line:

$CHECKOUT_RETURNURL = $_SESSION["POSTSALE_URL"];

3. Now scroll down to around line #81 and find the line:

    global $CARTURL,$CURRENCY_SYMBOL,$ACTION_URL; 

Change this line to this:

    global $CARTURL,$CURRENCY_SYMBOL,$ACTION_URL,$CHECKOUT_RETURNURL;

4.  Now scroll down to around line #163 and find the line:

        $checkout .='<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="' . $GLOBALS["CARTURL"] . 'cart_postsale.php">';

Change this line to this:

        $checkout .='<input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.continue-shopping-url" value="' . $CHECKOUT_RETURNURL . '">';

5. Save the file and FTP upload it. 

That should do it.

March 11, 2010
7:31 pm
Avatar
Member
Members
Forum Posts: 20
Member Since:
December 8, 2009
sp_UserOfflineSmall Offline

I followed all the steps and it STILL doesn't work!!Cry

March 12, 2010
12:43 pm
Avatar
Admin
Forum Posts: 5856
Member Since:
March 16, 2008
sp_UserOfflineSmall Offline

I'm all out of ideas.

I see that you're using the "absolute" URL setting anyway, so the code in my last post is not relevant anyway.

I don't know what to tell you.  You did say that you did do the final verification process for your Google checkout account right?

I'm stumped.  Anyone else want to take a stab?

March 19, 2010
10:05 am
Avatar
SP Inc.
New Member
Members
Forum Posts: 1
Member Since:
March 18, 2010
sp_UserOfflineSmall Offline

I was having the same problems. I was set to "absolute" changed the cart.php code, got final verification from Google

and it was still not working. But I just figured it out. Here's how:

In Google Checkout "Settings" click on "Integration" Scroll down until you see

the web link for your "General store information". Make sure that this link is the exact link

from your store homepage.

I changed my store link after I set up Google Checkout so the previous link was

missing my sub link "www.-----/store." Anyhow this fixed it for me.

No permission to create posts
Forum Timezone: UTC 0

Most Users Ever Online: 213

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

icy1: 2636

wreed06: 175

laurie390: 169

boutiqueelliette: 156

StitchTek Services, LLC: 144

yiorgos: 127

Member Stats:

Guest Posters: 457

Members: 2468

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 4076

Posts: 18961

Newest Members: aceman, peteryoung320@gmail.com, JdsCentral, anthony775, Chaz07, ebarj

Moderators: Market Admin: 5856

Administrators: Market Admin: 5856

Market takes ecommerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.