Zen Cart Logo
Forums / Addon Payment Modules / Google Checkout module for ZC 1.3.x (beta)

Google Checkout module for ZC 1.3.x (beta)

Locked

Views: 1,099,791

Results 1,081 to 1,100 of 3,921
This thread is locked. New replies are disabled.
10 Apr 2007, 4:52 AM
#1081
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Google Checkout module for ZC 1.3.x (beta)

ropu:

Hi all. as u can see im back again! im glad to see that now we have 100+ post since i've been off.. i've read them all and i'll try to answer all of them, but its not possible in just one day. so please little patience! also thx a LOT to woddy, bless chain, tj, for helping with this contrib! well, stop chit chat, and start to work :D
ropu
Hi ropy. Hope you had a good holiday. A number of folks have posted shipping config issues which appear similar to those which I reported. But not sure if they are truly related. Please post as soon as you can when you know something new regards to shipping configuration issues/questions. Thanks for any new info.

Woody

10 Apr 2007, 6:27 PM
#1082
dragonlord avatar

dragonlord

New Zenner

Join Date:
Apr 2007
Posts:
5
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I posted earlier with a problem with google checkout

I upgraded my zen cart from 1.3.5 to 1.3.7 and I also upgraded to the latest version of google checkout module.

My host runs php as cgi and I set up the htaccess files using the generator code supplied.

The problem is that when I place an order as a customer through google checkout I get an error screen that says "oops zencart has sent google a bad shopping cart."

When I go to my google checkout merchant account it in my integration issues it says " Duplicate shipping name Table Rate found."

In the xml there are 2 different lines that read

<flat-rate-shipping name="Table Rate">

I have not been able to find out what is causing this error. I have been looking through this thread for the last 2 days trying different suggestions but nothing seems to work.

Please help me

10 Apr 2007, 7:12 PM
#1083
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

DragonLord:

The problem is that when I place an order as a customer through google checkout I get an error screen that says "oops zencart has sent google a bad shopping cart."

When I go to my google checkout merchant account it in my integration issues it says " Duplicate shipping name Table Rate found."

In the xml there are 2 different lines that read

<flat-rate-shipping name="Table Rate">

I have not been able to find out what is causing this error. I have been looking through this thread for the last 2 days trying different suggestions but nothing seems to work.

Please help me

Can you post the $this->mc_shipping_methods section of your includes/modules/payment/googlecheckout.php file? That is probably where the error comes from. Unless you actually have two shipping methods defined as Table Rate in your Admin->Modules->Shipping...

10 Apr 2007, 8:14 PM
#1084
dragonlord avatar

dragonlord

New Zenner

Join Date:
Apr 2007
Posts:
5
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Here is my code from googlecheckout.php

$this->mc_shipping_methods = array(
                        'usps' => array(
                                    'domestic_types' =>
                                      array(
                                          'Express' => 'Express Mail',
                                          'First Class' => 'First-Class Mail',
                                          'Priority' => 'Priority Mail',
                                          'Parcel' => 'Parcel Post',
                                          'BPM' => 'Bound Printed Material',
                                          'Library' => 'Library'
                                           ),

                                    'international_types' =>
                                      array(
                                          'GXG Document' => 'Global Express Guaranteed Document Service',
                                          'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
                                          'Express' => 'Global Express Mail (EMS)',
                                          'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
                                          'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
                                          'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
                                          'Airmail Letter' => 'Airmail Letter Post',
                                          'Airmail Parcel' => 'Airmail Parcel Post',
                                          'Surface Letter' => 'Economy (Surface) Letter Post',
                                          'Surface Post' => 'Economy (Surface) Parcel Post'
                                           ),
                                        ),
                        'fedex1' => array(
                                    'domestic_types' =>
                                      array(
                                          '01' => 'Priority (by 10:30AM, later for rural)',
                                          '03' => '2 Day Air',
                                          '05' => 'Standard Overnight (by 3PM, later for rural)',
                                          '06' => 'First Overnight',
                                          '20' => 'Express Saver (3 Day)',
                                          '90' => 'Home Delivery',
                                          '92' => 'Ground Service'
                                           ),

                                    'international_types' =>
                                      array(
                                          '01' => 'International Priority (1-3 Days)',
                                          '03' => 'International Economy (4-5 Days)',
                                          '06' => 'International First',
                                          '90' => 'International Home Delivery',
                                          '92' => 'International Ground Service'
                                           ),
                                        ),
                        'ups' => array(
                                    'domestic_types' =>
                                      array(
                                          '1DM' => 'Next Day Air Early AM',
                                          '1DML' => 'Next Day Air Early AM Letter',
                                          '1DA' => 'Next Day Air',
                                          '1DAL' => 'Next Day Air Letter',
                                          '1DAPI' => 'Next Day Air Intra (Puerto Rico)',
                                          '1DP' => 'Next Day Air Saver',
                                          '1DPL' => 'Next Day Air Saver Letter',
                                          '2DM' => '2nd Day Air AM',
                                          '2DML' => '2nd Day Air AM Letter',
                                          '2DA' => '2nd Day Air',
                                          '2DAL' => '2nd Day Air Letter',
                                          '3DS' => '3 Day Select',
                                          'GND' => 'Ground',
                                          'GNDCOM' => 'Ground Commercial',
                                          'GNDRES' => 'Ground Residential',
                                          'STD' => 'Canada Standard',
                                          'XPR' => 'Worldwide Express',
                                          'XPRL' => 'worldwide Express Letter',
                                          'XDM' => 'Worldwide Express Plus',
                                          'XDML' => 'Worldwide Express Plus Letter',
                                          'XPD' => 'Worldwide Expedited'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'zones' => array(
                                    'domestic_types' =>
                                      array(
                                          'zones' => 'Zones Rates'
                                           ),

                                    'international_types' =>
                                      array(
                                          'zones' => 'Zones Rates intl'
                                           ),
                                        ),
                        'fedexexpress' => array(
                                    'domestic_types' =>
                                      array(
                                          '01' => 'FedEx Priority Overnight',
                                          '03' => 'FedEx 2Day',
                                          '05' => 'FedEx Standard Overnight',
                                          '06' => 'FedEx First Overnight',
                                          '20' => 'FedEx Express Saver'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'fedexground' => array(
                                    'domestic_types' =>
                                      array(
                                          '92' => 'FedEx Ground Service'
                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'freeoptions' => array(
                                    'domestic_types' =>
                                      array(
                                          'freeoptions' => 'Free Options'
                                           ),

                                    'international_types' =>
                                      array(
                                          'freeoptions' => 'Free Options intl'
                                           ),
                                        ),
                        'freeshipper' => array(
                                    'domestic_types' =>
                                      array(
                                          'freeshipper' => 'Free Shipper'
                                           ),

                                    'international_types' =>
                                      array(
                                          'freeshipper' => 'Free Shipper intl'
                                           ),
                                        ),
                        'perweightunit' => array(
                                    'domestic_types' =>
                                      array(
                                          'perweightunit' => 'Perweight Unit'
                                           ),

                                    'international_types' =>
                                      array(
                                          'perweightunit' => 'Perweight Unit intl'
                                           ),
                                        ),
                        'storepickup' => array(
                                    'domestic_types' =>
                                      array(
                                          'storepickup' => 'Store Pickup'
                                           ),

                                    'international_types' =>
                                      array(
                                          'storepickup' => 'Store Pickup intl'
                                           ),
                                        ),
                        'flat' => array(
                                    'domestic_types' =>
                                      array(
                                          'flat' => 'Flat Rate Per Order'
                                           ),

                                    'international_types' =>
                                      array(
                                          'flat' => 'Flat Rate Per Order intl'
                                           ),
                                        ),
                        'item' => array(
                                    'domestic_types' =>
                                      array(
                                          'item' => 'Flat Rate Per Item'
                                           ),

                                    'international_types' =>
                                      array(
                                          'item' => 'Flat Rate Per Item intl'
                                           ),
                                        ),
                        'table' => array(
                                    'domestic_types' =>
                                      array(
                                          'table' => 'Vary by Weight/Price'
                                           ),

                                    'international_types' =>
                                      array(
                                          'table' => 'Vary by Weight/Price intl'
                                           ),
                                        ),
                                  );

    $this->mc_shipping_methods_names = array(    
                                         'usps' => 'USPS',
                                         'fedex1' => 'FedEx',
                                         'ups' => 'UPS',
                                         'zones' => 'Zones',
                                         'fedexexpress' => 'Fedex Express',
                                         'fedexground' => 'Fedex Ground',
                                         'freeoptions' => 'Free Options',
                                         'freeshipper' => 'Free Shipper',
                                         'perweightunit' => 'Perweight Unit',
                                         'storepickup' => 'Store Pickup',
                                         'flat' => 'Flat Rate',
                                         'item' => 'Item',
                                         'table' => 'Table',
                                        );
10 Apr 2007, 9:15 PM
#1085
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Hi, im working to answer all this issues.

one of the biggest later was the shipping methods one

for that i coded something that will try to generate $this->mc_shipping_methods and $this->mc_shipping_methods_names using Zencart's Shipping class

here is the link

http://demo.globant.com/~brovagnati/tools/ -> Zencart Automatic Shipping Method Generator

Have a look to the README. But should be a unzip and work...

any doubts please feel free to ask.

ropu

11 Apr 2007, 12:47 AM
#1086
globalvillage avatar

globalvillage

New Zenner

Join Date:
Aug 2006
Posts:
20
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I've searched the forum and I can't find this error:

Error parsing XML; message from parser is: Invalid value for body of allowed-areas in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/merchant-calculated-shipping/address-filters: Must be a U.S. 2-letter postal code or state name

What am I missing?

11 Apr 2007, 3:10 AM
#1087
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

DragonLord:

Here is my code from googlecheckout.php

$this->mc_shipping_methods = array(
'usps' => array(
'domestic_types' =>
array(
'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail',
'Parcel' => 'Parcel Post',
'BPM' => 'Bound Printed Material',
'Library' => 'Library'
),

                                'international_types' =>
                                  array(
                                      'GXG Document' => 'Global Express Guaranteed Document Service',
                                      'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
                                      'Express' => 'Global Express Mail (EMS)',
                                      'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
                                      'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
                                      'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
                                      'Airmail Letter' => 'Airmail Letter Post',
                                      'Airmail Parcel' => 'Airmail Parcel Post',
                                      'Surface Letter' => 'Economy (Surface) Letter Post',
                                      'Surface Post' => 'Economy (Surface) Parcel Post'
                                       ),
                                    ),
                    'fedex1' => array(
                                'domestic_types' =>
                                  array(
                                      '01' => 'Priority (by 10:30AM, later for rural)',
                                      '03' => '2 Day Air',
                                      '05' => 'Standard Overnight (by 3PM, later for rural)',
                                      '06' => 'First Overnight',
                                      '20' => 'Express Saver (3 Day)',
                                      '90' => 'Home Delivery',
                                      '92' => 'Ground Service'
                                       ),

                                'international_types' =>
                                  array(
                                      '01' => 'International Priority (1-3 Days)',
                                      '03' => 'International Economy (4-5 Days)',
                                      '06' => 'International First',
                                      '90' => 'International Home Delivery',
                                      '92' => 'International Ground Service'
                                       ),
                                    ),
                    'ups' => array(
                                'domestic_types' =>
                                  array(
                                      '1DM' => 'Next Day Air Early AM',
                                      '1DML' => 'Next Day Air Early AM Letter',
                                      '1DA' => 'Next Day Air',
                                      '1DAL' => 'Next Day Air Letter',
                                      '1DAPI' => 'Next Day Air Intra (Puerto Rico)',
                                      '1DP' => 'Next Day Air Saver',
                                      '1DPL' => 'Next Day Air Saver Letter',
                                      '2DM' => '2nd Day Air AM',
                                      '2DML' => '2nd Day Air AM Letter',
                                      '2DA' => '2nd Day Air',
                                      '2DAL' => '2nd Day Air Letter',
                                      '3DS' => '3 Day Select',
                                      'GND' => 'Ground',
                                      'GNDCOM' => 'Ground Commercial',
                                      'GNDRES' => 'Ground Residential',
                                      'STD' => 'Canada Standard',
                                      'XPR' => 'Worldwide Express',
                                      'XPRL' => 'worldwide Express Letter',
                                      'XDM' => 'Worldwide Express Plus',
                                      'XDML' => 'Worldwide Express Plus Letter',
                                      'XPD' => 'Worldwide Expedited'
                                       ),

                                'international_types' =>
                                  array(

                                       ),
                                    ),
                    'zones' => array(
                                'domestic_types' =>
                                  array(
                                      'zones' => 'Zones Rates'
                                       ),

                                'international_types' =>
                                  array(
                                      'zones' => 'Zones Rates intl'
                                       ),
                                    ),
                    'fedexexpress' => array(
                                'domestic_types' =>
                                  array(
                                      '01' => 'FedEx Priority Overnight',
                                      '03' => 'FedEx 2Day',
                                      '05' => 'FedEx Standard Overnight',
                                      '06' => 'FedEx First Overnight',
                                      '20' => 'FedEx Express Saver'
                                       ),

                                'international_types' =>
                                  array(

                                       ),
                                    ),
                    'fedexground' => array(
                                'domestic_types' =>
                                  array(
                                      '92' => 'FedEx Ground Service'
                                       ),

                                'international_types' =>
                                  array(

                                       ),
                                    ),
                    'freeoptions' => array(
                                'domestic_types' =>
                                  array(
                                      'freeoptions' => 'Free Options'
                                       ),

                                'international_types' =>
                                  array(
                                      'freeoptions' => 'Free Options intl'
                                       ),
                                    ),
                    'freeshipper' => array(
                                'domestic_types' =>
                                  array(
                                      'freeshipper' => 'Free Shipper'
                                       ),

                                'international_types' =>
                                  array(
                                      'freeshipper' => 'Free Shipper intl'
                                       ),
                                    ),
                    'perweightunit' => array(
                                'domestic_types' =>
                                  array(
                                      'perweightunit' => 'Perweight Unit'
                                       ),

                                'international_types' =>
                                  array(
                                      'perweightunit' => 'Perweight Unit intl'
                                       ),
                                    ),
                    'storepickup' => array(
                                'domestic_types' =>
                                  array(
                                      'storepickup' => 'Store Pickup'
                                       ),

                                'international_types' =>
                                  array(
                                      'storepickup' => 'Store Pickup intl'
                                       ),
                                    ),
                    'flat' => array(
                                'domestic_types' =>
                                  array(
                                      'flat' => 'Flat Rate Per Order'
                                       ),

                                'international_types' =>
                                  array(
                                      'flat' => 'Flat Rate Per Order intl'
                                       ),
                                    ),
                    'item' => array(
                                'domestic_types' =>
                                  array(
                                      'item' => 'Flat Rate Per Item'
                                       ),

                                'international_types' =>
                                  array(
                                      'item' => 'Flat Rate Per Item intl'
                                       ),
                                    ),
                    'table' => array(
                                'domestic_types' =>
                                  array(
                                      'table' => 'Vary by Weight/Price'
                                       ),

                                'international_types' =>
                                  array(
                                      'table' => 'Vary by Weight/Price intl'
                                       ),
                                    ),
                              );

$this->mc_shipping_methods_names = array(    
                                     'usps' => 'USPS',
                                     'fedex1' => 'FedEx',
                                     'ups' => 'UPS',
                                     'zones' => 'Zones',
                                     'fedexexpress' => 'Fedex Express',
                                     'fedexground' => 'Fedex Ground',
                                     'freeoptions' => 'Free Options',
                                     'freeshipper' => 'Free Shipper',
                                     'perweightunit' => 'Perweight Unit',
                                     'storepickup' => 'Store Pickup',
                                     'flat' => 'Flat Rate',
                                     'item' => 'Item',
                                     'table' => 'Table',
                                    );

Nothing jumps out at me on this one. Maybe ropu can solve it when he catches up. I found that cleaning out the shipping methods I don't use helps considerably. I have a sample posted a few pages back. Mine started like yours...

What shipping methods have you activated in Admin?
11 Apr 2007, 1:24 PM
#1088
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

Regards to the rendering and display of text and objects on the Google Checkout "Review and place order" page...

The main order details promptly appears along with a "Total" and a "Place your order now" button.

However after that, it often takes a long while (30-60secs) for the following to appear:

  • S&H
  • Pay with:
  • Ship to address

Because of this delay is it is HIGHLY likely that the customer would not wait for the above text to appear (including updated total with S&H included), and instead would click the "Place Your Order now" button as soon as it appears.

This would not be good.

Is there any method to create a "Please wait..." message at the top of the page and NOT render the "Place your order now" button UNTIL AFTER all other objects have been rendered and AFTER the true shipping and handling has been calculated and added to the final total.

I will mention issues we continue to observe specific to our shops shipping configuration in another post.

Thanks,
Woody

11 Apr 2007, 2:11 PM
#1089
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

Hi ropu and all,

I've downloaded your shipping configurator v0.1. Very cool indeed!

However the shipping array output for our shop by the generator is the same or similar to the array I hand/custom coded while you away (thanks to some help from both Doug and Isaac). Employing either the generated code or the hand coded solution the two generated arrays has yet to display (for us) the correct shipping info on the Google Checkout page.

For instance, for a book item with price $12, it should cost $5 for shipping and handling in the USA and display "USPS Media Mail" as the ship method (as processed by the "itemnational" payment module in Zen Cart). But Google Checkout instead displays the following in the "Shipping & Handling" dropdown:

Per Item National ($0.00)

Note that no shipping and handling is added to the product price. (Total displayed is $12.00)

I'm unclear as to why Google Checkout is listing "Per Item National" in the S&H dropdown. Instead should be listing "USPS Media Mail" in the dropdown as is noted in the two arrays that follow. (two array's output by the the shipping generator v.0.1, code which produced the above result):

$this->mc_shipping_methods = array(
                        'itemnational' => array(
                                    'domestic_types' =>
                                      array(
                                          'itemnational' => 'USPS Media Mail',

                                           ),

                                    'international_types' =>
                                      array(

                                           ),
                                        ),
                        'iteminternational' => array(
                                    'domestic_types' =>
                                      array(

                                           ),

                                    'international_types' =>
                                      array(
                                          'iteminternational' => 'USPS Air Mail',

                                           ),
                                        ),
                                  );

$this->mc_shipping_methods_names = array(
                                         'itemnational' => 'Total Shipping & Handling (USA)',
                                         'iteminternational' => 'Total Shipping & Handling (Intl)',
                                        );

Also below are two additional arrays and related code further up in in googlecheckout.php that have significance:

    $this->shipping_support = array("flat", "item", "table",  'freeoptions', 'perweightunit', 'storepickup');
     
    $this->shipping_display = array(GOOGLECHECKOUT_FLAT_RATE_SHIPPING, GOOGLECHECKOUT_ITEM_RATE_SHIPPING, GOOGLECHECKOUT_TABLE_RATE_SHIPPING, 'freeoptions', 'perweightunit', 'storepickup');
    $this->ship_flat_ui = "Standard flat-rate shipping";

The code above is default code. Is this correct?

It appears that Google Checkout is not properly referencing the info from the above array, but is acquiring info elsewhere. For example the "Per Item National" payment module name reference. Google Checkout is listing in it's S&H dropdown the name of the Zen Cart payment module, not the label in the array.

The following is the exact listing on our Zen Cart 1.37 Payment modules page:

FREE SHIPPING! freeshipper 2
Per Item International iteminternational 1
Per Item National itemnational 0

Hope this is enough info to help us pinpoint our ship config issue in the Google Checkout mod.

Thanks for your assistance,
Woody

11 Apr 2007, 4:24 PM
#1090
globalvillage avatar

globalvillage

New Zenner

Join Date:
Aug 2006
Posts:
20
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

I have ZenCart 1.3.7 and Google Checkout 1.0.4r installed

The transaction works fine and I have tables set for shipping.

GC creates a Customer and an order with totals and even tax but I still do not have any product added to the database.

As it stands now I have to manually add the items purchased from my GC Inbox.

Does anyone one have a fix/forum post for this? I've searched the 1000+ posts here and have yet to find a detailed explanation.

Thanks all...

11 Apr 2007, 8:05 PM
#1091
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

GlobalVillage:

I have ZenCart 1.3.7 and Google Checkout 1.0.4r installed

The transaction works fine and I have tables set for shipping.

GC creates a Customer and an order with totals and even tax but I still do not have any product added to the database.

As it stands now I have to manually add the items purchased from my GC Inbox.

Does anyone one have a fix/forum post for this? I've searched the 1000+ posts here and have yet to find a detailed explanation.

Thanks all...

Hi global

have u tried with newer releases?

ropu

11 Apr 2007, 8:11 PM
#1092
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Woodymon:

Thanks Chainman. I missed seeing that in ropu's 1.3RC1 announce last Friday.
http://www.zen-cart.com/forum/showpost.php?p=351083&postcount=941
Now I see the last item listed:

Thanks Ropu!

However when I scanned thru the "Progam Policies and Guidles" at http://checkout.google.com/seller/policies.html#4

I'm uncertain how to interpret "Google Checkout must be available as a checkout option at least 95% of the time". This is vague and ambiguous. In this regard how is "time" defined.

I can say about 75% of out items are physical goods and the other 25% are downloads. So would this disqualify us?

However, I can say in regards to total historical shop "sales" the downloads amount to less than 5% in both dollar purchases and unit volume. So would this qualify?

If not I guess this rules us out! Argh.

An unrelated question. If the GC for ZC mod is installed, where does the "checkout" link in Zen Cart main menu (in the header) point to?

Woody

woddy, im not sure about how to interpret those terms, if u want i can double check with jacob, or u can port in http://groups.google.com/group/google-checkout-developers-forum

regarding the link in the header, it points to regular checkout if logged, or login page if not

ropu

11 Apr 2007, 8:18 PM
#1093
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Woodymon:

Thank you Ropu for updated 1.30RC1rev1 mod and the included helpful readme and install documentation.

Good to see the payment module install only requires the merging (replacing) of five clearly defined code snippets into four Zen Cart files (/admin/orders.php and three template files). Makes for a straight forward installation.

Some questions/comments regards to a few entries in each doc.

I. README:

A. I'm a little confused by the organization of the section below. Does this info apply ONLY to those whom are running PHP as CGI? Or does the "spoofed messages" issue apply to everyone?

B. The following item is listed in the "Common Mistakes" section but I don't see this step listed previously in the readme step-by-step process. Is this set in Google Checkout account on the Google server or in the Zen Cart payment module admin?

C. The following entry in the readme toubleshooting section references "see above fix" Not sure what that "above fix" is?

II. INSTALLATION

A. Regards to "Option B" for merging code.

I suspect the path below:

should be:

Thanks!
Woody

woddy

A. spoofed messages apply to anyone that enables this feature. because this basically disables PHP check for Basic Authentication, this is why .htaccess must be added so apache validates it.

B. That must be setted in the Settings->Integrarion section of you Google Checkout Merchant page.

C. changed to "fixed in v1.0.5"

II. Docs fixed

Thx again Woody

ropu

11 Apr 2007, 8:38 PM
#1094
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

chain_man:

I would like to see a self-calculating substitute for this file that just reads the Shipping module entries and automatically uses them for GCO setup. This file is the most vulnerable part of this add-in, in my opinion.

I hope this helps.

chain, that was the main idea when starting codign the module.

but Zencart spec are not so strict when defining shipping quotes. The only way is calling the method quotes(), setting the order, the address, etc etc. and u are not certain to get all the methods. Also spending the time it take to calculate them

so i decided to "hardcoded" in the googlecheckout class. i try to create a standard structure and easy(?) to scale...

to make this easier i coded the http://demo.globant.com/~brovagnati/tools/ -> Zencart Automatic Shipping Method Generator

hope this helps

ropu

11 Apr 2007, 8:47 PM
#1095
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Google Checkout module for ZC 1.3.x (beta)

Hi ropu,

Many of my posts while you were away on holiday, regarding documentation and such, were suggestions intended for your review and hopefully incorporate relevant edits into documentation. Myself I am past those questions. I was just presenting those points as they were/are confusing to me so I assumed would be confusing to others/noobs.

My main issue is getting past the shipping configuration problem I have posted on. If you have any recommendations or solutions regards to the issue presented in my last post 1090, that is my most pressing need.

Were you able to install the simple shipping mod (itemnational/iteminternational) which I previously (several times) posted the download link to in this support thread? I'm hoping to know soon if Google Checkout for Zen Cart will be compatible with that very basic shipping configuration.

Thanks,
Woody

11 Apr 2007, 8:53 PM
#1096
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

chain_man:

Here's my tpl_checkout_payment_default.php

chain_man:

And my tpl_shopping_cart_default.php:

chain_man:

And my tpl_login_default.php:

chain. really thx for thees code, indeed...

i'll double check them, and added in next revision

ropu

11 Apr 2007, 8:55 PM
#1097
ropu avatar

ropu

Zen Follower

Join Date:
Oct 2006
Location:
argentina
Posts:
243
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Woodymon:

OK I used Ropu's Shipping Generator to generate the following:

$this->mc_shipping_methods = array(
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipper'
),

                                'international_types' =>
                                  array(
                                      'freeshipper' => 'Free Shipper intl'
                                       ),
                                    ),
                    'itemnational' => array(
                                'domestic_types' =>
                                  array(
                                      'itemnational' => 'Per Item National'
                                       ),

                                'international_types' =>
                                  array(

                                       ),
                                    ),
                    'iteminternational' => array(
                                'domestic_types' =>
                                  array(

                                       ),

                                'international_types' =>
                                  array(
                                      'iteminternational' => 'Per Item International'
                                       ),
                                    ),
                              );

$this->mc_shipping_methods_names = array(
'freeshipper' => 'Free Shipper',
'itemnational' => 'USPS Media Mail',
'iteminternational' => 'USPS Air Mail',
);

> (I think this is the same code as Doug previously offered up).
> 
> But still same error when submitting order:
> ```
<error-message>Duplicate shipping name FREE SHIPPING! found.</error-message>
```I'm stumped. 
> 
> I should add that no errors are showing up in response_error.log
> 
> But I figured out the answer to one of my previous trivia questions: 
>   mc = merchant calculated
> 
> Doh! Now only if I could answer some of the more important questions. Such as where do I go from here? And why doe this mod not want to work for me? 
> 
> Woody

woddy, there is an issue im trying to figure out when ONLY flat rates are used.

i'll update tomorrow, and continue trying to cathc up with all the post, im missing JUST 80 :D

ropu
11 Apr 2007, 11:00 PM
#1098
chain_man avatar

chain_man

Zen Follower

Join Date:
Dec 2005
Location:
Box Elder, SD
Posts:
375
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

ropu:

chain. really thx for thees code, indeed...

i'll double check them, and added in next revision

ropu

Glad to help, Ropu!

12 Apr 2007, 4:06 AM
#1099
vrwired avatar

vrwired

New Zenner

Join Date:
Apr 2007
Posts:
1
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Jefflam:

Hi Ropu,
Thank you for your help.
Here is my test result:
XML We Sent:Authorization: Basic XXXXXX:XXXXXX
Content-Type: application/xml;charset=UTF-8
Accept: application/xml;charset=UTF-8
X-Origin-IP: xx.xxx.xxx.xxx
XML We Received:SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:func(144):reason(134)
Time to response: 0.77490711212158 segs
Ropu, Can you clarify my problem? Do I need to find a good SSL?

Jefflam

I'm having the same problem, but I did successfully install the SSL certificate and have dedicated IP on shared host. When I run the Responsehandler Test for URL https://www.diamondsonthesolesofhershoes.com/googlecheckout/responsehandler.php,
I get:
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:func(144):reason(134)

I'm not sure why this is because I have verified the integrity of the certificate in more than one browser.
The most peculiar thing though, is that if i test an order and enter a coupon code, it is now working almost, the coupon can now be applied (it couldn't verify before I had installed SSL) HOWEVER, there is no discount --> the discount remains at $0.00 even though I have it set up to take 20% off. :frusty:

I tried creating more coupons to test with but get the same result everytime if i make the coupon based on % discount. If i make it based on $ off, I get this:
Invalid coupon code Retry
The minimum order total for this coupon is $40.00 (tester)

Incidentally, i'm using google-checkout-osc-v1.2RC3rev1 contribution for the coupon support - and got this from http://code.google.com/p/google-checkout-oscommerce/

I also looked at error logs in the google merchant checkout account (at integration settings) but I am no longer getting errors there (I was when I didn't have the certificate)... and this point bring me back to my first note that responsehandler says there's a certificate problem... ??? something seems wrong with the script, Ropu.

Any ideas what I can do? ~thanks for your consideration

12 Apr 2007, 7:19 AM
#1100
jay42 avatar

jay42

New Zenner

Join Date:
Mar 2007
Posts:
14
Plugin Contributions:
0

Re: Google Checkout module for ZC 1.3.x (beta)

Hi Ropu,

Welcome back...hope you had a nice vacation!

I wrote a couple of posts a few days ago, and Woody helped me out a bit, but I am still having the same problem - GCO does not give the UPS shipping rates and uses the default rates instead. My host is running PHP as CGI so I have created the ht files as indicated. I have set my API callback according to the instructions. Here is the error message I get:

We encountered an error trying to access your server at http://www.jay42.com/googlecheckout/responsehandler.php -- the error we got is: Sending failed with HTTP response code: 403. Response body was: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /googlecheckout/responsehandler.php on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html>

Any suggestions to correct this would be appreciated. Thanks.