New Zenner
- Join Date:
- Aug 2010
- Posts:
- 7
- Plugin Contributions:
- 0
Google Checkout module for ZC 1.3.x (beta)
BlessIsaacola:
Do you have a site to take a look at?
yea;
https://www.perfectcirclelens.com
Views: 1,100,066
New Zenner
BlessIsaacola:
Do you have a site to take a look at?
yea;
https://www.perfectcirclelens.com
Totally Zenned
waboose_ath:
when I finished the setup process I saw the google checkout button there once.. and then never. I did not change anything in coding and I don't know what exactly I should do to check my cache directory. should I start over? there is no easy uninstall option either...
FTP to your cache directory in your zencart installation. You will see a lot of log files. You're looking for the one that is closest to the time you accessed your site. If anything, I can help you with the install if you have time via PM.
Totally Zenned
waboose_ath:
Your code is not even firing on the shopping cart page. Are you sure that you have correctly installed the mod? I'd suggest just checking again. Which version of Zen Cart are you using? What error are you seeing in the debug file (if any)?
New Zenner
In sandbox, clicking on the google checkout button on my site would bring up a page on google checkout with shipping options (so to speak). Now that the code from the shipping generator has been added, I only get an error page. Below is the code... Is something amiss?
<?php /* **GOOGLE CHECKOUT ** v1.4.7 * @version $Id: shipping_methods.php 5852 2007-12-14 14:58:57Z ropu $ * */ // this are all the available methods for each shipping provider, // see that you must set flat methods too! // CONSTRAINT: Method's names MUST be UNIQUE // Script to create new shipping methods // <http://demo.globant.com/~brovagnati/tools> -> Shipping Method Generator /** * File: googlecheckout/shipping_methods.php file */ $mc_shipping_methods = array( 'usps' => array( 'domestic_types' => array( 'FIRST CLASS' => 'First-Class Mail (2 - 5 days)', 'PRIORITY' => 'Priority Mail (2 - 3 days)', 'PARCEL' => 'Parcel Post (4 - 7 days)', ), 'international_types' => array( 'Priority Mail International' => 'Priority Mail International (6 - 10 business days)', ), ), ); $mc_shipping_methods_names = array( 'usps' => 'United States Postal Service (1 x 0.10lbs)', ); ?>Totally Zenned
conspicuouschick:
In sandbox, clicking on the google checkout button on my site would bring up a page on google checkout with shipping options (so to speak). Now that the code from the shipping generator has been added, I only get an error page. Below is the code... Is something amiss?
<?php /* **GOOGLE CHECKOUT ** v1.4.7 * @version $Id: shipping_methods.php 5852 2007-12-14 14:58:57Z ropu $ * */ // this are all the available methods for each shipping provider, // see that you must set flat methods too! // CONSTRAINT: Method's names MUST be UNIQUE // Script to create new shipping methods // [http://demo.globant.com/~brovagnati/tools](http://demo.globant.com/%7Ebrovagnati/tools) -> Shipping Method Generator /** * File: googlecheckout/shipping_methods.php file */ $mc_shipping_methods = array( 'usps' => array( 'domestic_types' => array( 'FIRST CLASS' => 'First-Class Mail (2 - 5 days)', 'PRIORITY' => 'Priority Mail (2 - 3 days)', 'PARCEL' => 'Parcel Post (4 - 7 days)', ), 'international_types' => array( 'Priority Mail International' => 'Priority Mail International (6 - 10 business days)', ), ), ); $mc_shipping_methods_names = array( 'usps' => 'United States Postal Service (1 x 0.10lbs)', ); ?>
Log into your Google Checkout Sandbox account and then visit Tools > Integration Console and look at the most recent error message provided.
If the error message is not from Google Checkout (meaning you don't see the google checkout page), go to your zencart cache directory and bring up the most recent .log file and provide it here. Also there is a google checkout generator PROVIDED with Google Checkout in the admin panel. Not sure you should be using one provided by someone else.
New Zenner
got a question for you guys. i have google checkout on my site and people can checkout with it by using the google checkout button.
my question is though are orders that are paid for with google supposed to show up in the admin area. it shows 0 items being processed with google. also is there some way of using gift certificates or anything with it as you have to go through the normal checkout method for it to apply it which the bypasses google and makes it useless
Totally Zenned
jeremy0203:
got a question for you guys. i have google checkout on my site and people can checkout with it by using the google checkout button.
my question is though are orders that are paid for with google supposed to show up in the admin area. it shows 0 items being processed with google. also is there some way of using gift certificates or anything with it as you have to go through the normal checkout method for it to apply it which the bypasses google and makes it useless
If the orders aren't showing up in ZC after a customer completes a GoogleCheckout order, their order isn't being processed by ZC properly.
There is supposed to be a way that gift certificates are checked against the local server but I think I'm missing an option somewhere as I didn't get this to work for mine.
New Zenner
retched:
Log into your Google Checkout Sandbox account and then visit Tools > Integration Console and look at the most recent error message provided.
XML received:
<?xml version="1.0" encoding="UTF-8"?> <checkout-shopping-cart xmlns="http://checkout.google.com/schema/2"> <shopping-cart> <items> <item> <item-name>Wet N Wild MegaLast Long Lasting Color n Gloss - Lasting Bronze</item-name> <item-description></item-description> <unit-price currency="USD">1.75</unit-price> <quantity>1</quantity> <merchant-private-item-data> <item>YToxNTp7czozOiJxdHkiO2k6MTtzOjQ6Im5hbWUiO3M6NjM6IldldCBOIFdpbGQgTWVnYUxhc3QgTG9uZyBMYXN0aW5nIENvbG9yIG4gR2xvc3MgLSBMYXN0aW5nIEJyb256ZSI7czo1OiJtb2RlbCI7czozMjoiV05XIE1lZ2FMYXN0IC0gTGFzdGluZyBCcm56ZSAzNjciO3M6MzoidGF4IjtpOjA7czoxNToidGF4X2Rlc2NyaXB0aW9uIjtzOjk6IlNhbGVzIFRheCI7czo1OiJwcmljZSI7czo2OiIxLjc1MDAiO3M6MTE6ImZpbmFsX3ByaWNlIjtkOjEuNzU7czoxNToib25ldGltZV9jaGFyZ2VzIjtpOjA7czo2OiJ3ZWlnaHQiO2Q6MC4wNDI5OTk5OTk5OTk5OTk5OTY1NTgzMDg2MjM2NjIwMTQ3MjQ2ODY3NDE4Mjg5MTg0NTcwMzEyNTtzOjI4OiJwcm9kdWN0c19wcmljZWRfYnlfYXR0cmlidXRlIjtzOjE6IjAiO3M6MTU6InByb2R1Y3RfaXNfZnJlZSI7czoxOiIwIjtzOjIyOiJwcm9kdWN0c19kaXNjb3VudF90eXBlIjtzOjE6IjAiO3M6Mjc6InByb2R1Y3RzX2Rpc2NvdW50X3R5cGVfZnJvbSI7czoxOiIwIjtzOjI6ImlkIjtpOjM4ODtzOjg6InJvd0NsYXNzIjtzOjc6InJvd0V2ZW4iO30=</item> </merchant-private-item-data> <merchant-item-id>388</merchant-item-id> <tax-table-selector>Taxable Goods</tax-table-selector> <item-weight unit="LB" value="0.043" /> </item> </items> <merchant-private-data> <session-data>e086549e78b47401bb32f4d57d65b54f;zenid</session-data> <ip-address>69.137.242.19</ip-address> </merchant-private-data> </shopping-cart> <checkout-flow-support> <merchant-checkout-flow-support> <edit-cart-url>http://www.conspicuouschick.com/zencart/index.php?main_page=shopping_cart</edit-cart-url> <continue-shopping-url>http://www.conspicuouschick.com/zencart/index.php?main_page=http://www.conspicuouschick.com/zencart/index.php</continue-shopping-url> <shipping-methods> <carrier-calculated-shipping> <carrier-calculated-shipping-options> </carrier-calculated-shipping-options> <shipping-packages> <shipping-package> <ship-from id="Store_origin"> <city></city> <region>OH</region> <postal-code>44321</postal-code> <country-code>US</country-code> </ship-from> <width unit="IN" value="1" /> <length unit="IN" value="1" /> <height unit="IN" value="1" /> <delivery-address-category>RESIDENTIAL</delivery-address-category> </shipping-package> </shipping-packages> </carrier-calculated-shipping> </shipping-methods> <request-buyer-phone-number>true</request-buyer-phone-number> <merchant-calculations> <merchant-calculations-url>https://www.conspicuouschick.com/zencart/googlecheckout/responsehandler.php</merchant-calculations-url> <accept-merchant-coupons>true</accept-merchant-coupons> <accept-gift-certificates>false</accept-gift-certificates> </merchant-calculations> <tax-tables merchant-calculated="false"> <default-tax-table> <tax-rules> <default-tax-rule> <shipping-taxed>true</shipping-taxed> <rate>0.0625</rate> <tax-area> <us-state-area> <state>OH</state> </us-state-area> </tax-area> </default-tax-rule> </tax-rules> </default-tax-table> <alternate-tax-tables> <alternate-tax-table standalone="false" name="Taxable Goods"> <alternate-tax-rules> <alternate-tax-rule> <rate>0.0625</rate> <tax-area> <us-state-area> <state>OH</state> </us-state-area> </tax-area> </alternate-tax-rule> </alternate-tax-rules> </alternate-tax-table> </alternate-tax-tables> </tax-tables> <rounding-policy> <mode>HALF_EVEN</mode> <rule>PER_LINE</rule> </rounding-policy> </merchant-checkout-flow-support> </checkout-flow-support> </checkout-shopping-cart>XML sent:
<?xml version="1.0" encoding="UTF-8"?> <error xmlns="http://checkout.google.com/schema/2" serial-number="70314ae6-941f-45e2-853f-3e1e96c1e2c4"> <error-message>Carrier calculated shipping options have not been provided. Must specify the carrier and delivery type.</error-message> </error>If the error message is not from Google Checkout (meaning you don't see the google checkout page), go to your zencart cache directory and bring up the most recent .log file and provide it here. Also there is a google checkout generator PROVIDED with Google Checkout in the admin panel. Not sure you should be using one provided by someone else.
I used the shipping generator PROVIDED with google checkout. Where would there be another one??
Zen Follower
I have google checkout installed and working, I only use UPS for shipping, but want to add USPS for military apo only. I have created a zone but it doesn't work with google and show a message USPS shipping is not configured. I tried to add USPS to shipping method php, that didn't help do you need special code for zone shipping?
Thank you
Totally Zenned
sham:
I have google checkout installed and working, I only use UPS for shipping, but want to add USPS for military apo only. I have created a zone but it doesn't work with google and show a message USPS shipping is not configured. I tried to add USPS to shipping method php, that didn't help do you need special code for zone shipping?
Thank you
Post your shipping_methods.php code here so we can see how you've configured it. Did yo try the shipping method generator once you setup your zones in Zen Cart admin? Did the generator pick it up or did it fail there too?
Zen Follower
Thank you for helping used shipping method generator would only pick up if I did not select zone in USPS module. I added the USPS part of shipping method from the generator with no zone selected in shipping mod.
shipping methods php:
application/x-httpd-php shipping_methods.php
PHP script text
Totally Zenned
If you're truly using zone as a shipping option you're going to need these two sections:
'zones' => array(
'domestic_types' =>
array(
'zones' => 'Zones Rates'
),
'international_types' =>
array(
'zones' => 'Zones Rates intl'
),
),
and this as part of your shipping method names otherwise it won't show up on GCO side.
'zones' => 'Zones',
Totally Zenned
sham:
I have google checkout installed and working, I only use UPS for shipping, but want to add USPS for military apo only. I have created a zone but it doesn't work with google and show a message USPS shipping is not configured. I tried to add USPS to shipping method php, that didn't help do you need special code for zone shipping?
Thank you
I think I am reading what you're trying to do wrong. By zone you mean a shipping zone as in location NOT shipping method? If that's what you're trying to do, then my last post is not necessary.
Is the zone you defined (if it's APO) working on your site for regular Zen Cart?
Zen Follower
UPS does not ship to an APO, so I want to add usps with a zone only for apo address. So I went to location/taxes and created a zone with the military APO's. I can get a quote when I turn google off, but with google turned on and clicking checkout you get an error that the cart has sent information containing and error.
I tried this shipping method php but had the same problem.
application/x-httpd-php shipping_methods.php
PHP script text
Zen Follower
Update...
USPS has updated their APO codes, once I edited them in "zones" everything seems to work using your update for the shipping methods. Thank you so much for your help. You can view them at the link below.
http://www.usps.com/ncsc/lookups/usps_abbreviations.html
Totally Zenned
conspicuouschick:
XML received:
XML sent:
<?xml version="1.0" encoding="UTF-8"?> <error xmlns="http://checkout.google.com/schema/2" serial-number="70314ae6-941f-45e2-853f-3e1e96c1e2c4"> <error-message>Carrier calculated shipping options have not been provided. Must specify the carrier and delivery type.</error-message> </error>
Sorry for not answering this sooner. Can you check your ZenCart Admin panel and tell me what the calculations are?
Totally Zenned
sham:
Update...
USPS has updated their APO codes, once I edited them in "zones" everything seems to work using your update for the shipping methods. Thank you so much for your help. You can view them at the link below.
http://www.usps.com/ncsc/lookups/usps_abbreviations.html
Thanks for the feedback. When your time permits you might want to check the USPS thread and see if this information about update is there because if it's not, it should probably be just so people are aware of these code changes. Not really sure if this affects Zen Cart shipping module or not (I haven't tested APO orders lately) but it's something worth checking into.
Totally Zenned
Hey All,
Just installed GCO on 1.3.9g and it sort of works. Does send the cart to google and they do take your money, gives an option to return to merchant and on return I'm at the checkout_success page with no order details and there's no order logged in the admin.
Have applied this fix:http://www.zen-cart.com/forum/showpost.php?p=876137&postcount=106
tried again with the same result.
Thanks in advance,
John
Totally Zenned
Can you check your ZenCart Admin Panel > Modules > Payment > Google Checkout for the following option: **.htaccess Basic Authentication Mode **and please tell me if that is set to true or false. In addition, did you create the .htaccess and .htpasswd files for your /googlecheckout/ directory.
Totally Zenned
In the admin > modules > payment GCO htaccess is set to False. I have not used htpassword on the GCO dir, should I?
Thanks,
John
Tell staff why this post should be reviewed.