Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

GoogleCheckOut Shipping Problem


mat01

Recommended Posts

Hi - I have what seems to be the age old problem of undefined shipping methods. Below my Google Checkout Button in my store is the following text :

 

Error: Shipping Methods not configured

airmail (ignored)

internationalsignedfor (ignored)

rmfirst (ignored)

rmspecial (ignored)

 

However - I HAVE defined these in my googlecheckout.php file as :

 

// These are the flat shipping methods, add any other that is not merchant calculated 
   $this->shipping_support = array("flat", "item", "itemint", "table");

 // These are all the available methods for each shipping provider, 
   // see that you must set flat methods too!}
   // CONSTRAINT: Method's names MUST be UNIQUE

 //$this->mc_shipping_methods = $mc_shipping_methods;
 //$this->mc_shipping_methods_names = $mc_shipping_methods_names;

 $this->mc_shipping_methods = array(
                                  'domestic_types' =>
                                     array(
                                         'rmfirst' => 'Royal Mail First Class',
                                         'rmspecial' => 'Royal Mail Special Delivery'
                                          ),

                                   'international_types' =>
                                     array(
                                         'airmail' => 'Airmail',
                                         'internationalsignedfor' => 'International Signed For'
                                          )

                                 );



 $this->mc_shipping_methods_names = array(                                                                  
                                        'airmail' => 'Royal Mail Airmail',                                         
                                        'internationalsignedfor' => 'Royal Mail International Signed For',
                                        'rmfirst' => 'Royal Mail First Class',
                                        'rmspecial' => 'Royal Mail Special Delivery',                                 
                                       );

 

When I look on the config section of the GoogleCheckout module in OSC, I cannot see rmfirst, rmspecial etc... mentioned at all.... All I see is :

 

Carrier Calculater Shipping Configuration
gedexGrounddomestic_types_CCS:1.00|0|0, fedexHome Deliverydomestic_types_CCS:0|0|0, fedexExpress Saverdomestic_types_CCS:0|0|0, fedex2Daydomestic_types_CCS:0|0|0, fedexStandard Overnightdomestic_types_CCS:0|0|0, fedexPriority Overnightdomestic_types_CCS:0|0|0, fedexFirst Overnightdomestic_types_CCS:0|0|0, upsGrounddomestic_types_CCS:0|0|0, ups3 Day Selectdomestic_types_CCS:0|0|0, ups2nd Day Airdomestic_types_CCS:0|0|0, upsNext Day Air Saverdomestic_types_CCS:0|0|0, upsNext Day Airdomestic_types_CCS:0|0|0, upsNext Day Air Early AMdomestic_types_CCS:0|0|0, uspsMedia Maildomestic_types_CCS:0|0|0, uspsParcel Postdomestic_types_CCS:0|0|0, uspsExpress Maildomestic_types_CCS:0|0|0,

 

These are not shipping methods that I use or have installed previously - so I don't have a clue where they're coming from.

 

This problem seems to be a fairly common one, but nothing I have read explains any of the above.

 

Can someone help please.

 

Kind Regards

Link to comment
Share on other sites

here is my shipping method which works fine for me. modify it to work with yours, mainly renaming. This will also help any one else from UK who have problems.

 

<?php
/**
 * File: googlecheckout/shipping_methods.php file
 */ 
$mc_shipping_methods = array(
					'rmfirst' => array(
								'domestic_types' =>
								  array(
									  'rmfirst' => '(No Tracking, Use at own risk. 1 to 3 days)',
									   ),
								'international_types' =>
								  array(
									   ),
									),
					'rmfirstrec' => array(
								'domestic_types' =>
								  array(
									  'rmfirstrec' => '(Insured upto 32 pound, ships within 1 to 3 days)',
									   ),
								'international_types' =>
								  array(
									   ),
									),
					'rmspecial' => array(
								'domestic_types' =>
								  array(
									  'rmspecial' => '(Insured upto 500 pound, ships Nextday)',
									   ),
								'international_types' =>
								  array(
									   ),
									),
				  'citylink' => array(
								'domestic_types' =>
								  array(
									  'citylink' => '(Insured upto 50 pound, ships within 2-4 days)',
									   ),
								'international_types' =>
								  array(
									   ),
									),
					 'airmail' => array(
								'domestic_types' =>
								  array(
									   ),
								'international_types' =>
								  array(
									  'airmail' => 'Airmail Internation'
									   ),
									),
							  );
$mc_shipping_methods_names = array(
									 'rmfirst' => 'Royal Mail 1st Class Standard',
									 'rmfirstrec' => 'Royal Mail 1st Class Recorded',
									 'rmspecial' => 'Royal Mail Special Delivery',
									 'citylink' => 'CityLink/Courrier',
									'airmail' => 'Airmail Internation',
									);
?>

 

regards

Link to comment
Share on other sites

  • 1 month later...

So a month later, and I'm still trying to get Google Checkout to work - I now seem to have the shipping methods going okay (or so I thought) but now I get the following message

 

<?xml version="1.0" encoding="UTF-8" ?>

- <error xmlns="http://checkout.google.com/schema/2" serial-number="4c06127d-f3eb-4c61-afe0-0189xxxxxxaf">

<error-message>Error parsing XML; message from parser is: Invalid value for body of shipping-company in checkout-shopping-cart/checkout-flow-support/merchant-checkout-flow-support/shipping-methods/carrier-calculated-shipping/carrier-calculated-shipping-options/carrier-calculated-shipping-option: That is not one of the acceptable values</error-message>

</error>

 

My shipping_methods_ccs.php is :

 

$cc_shipping_methods = array(
					'royalmail' => array(
										'domestic_types' =>
															  array(
																  'rmfirst' => 'First Class',
																  'rmspecial' => 'Special Delivery'
																   ),

										'international_types' =>
															  array(
																	'airmail' => 'Airmail',
																	'internationalsignedfor' => 'International Signed For'
																   )
									)
								);	 

$cc_shipping_methods_names = array('royalmail' => 'RoyalMail');

 

Does anyone know what's going on here?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...