chain_man:
BlessIsaacola -
I see you have multiple shipping methods working. I tried to install the latest last night but still have shipping issues. My question is this:
Did you comment all the shipping methods in the includes/modules/payment/googlecheckout.php file except the ones you use? For instance, I use only USPS and Table rate. Am I supposed to comment out all the other array definitions in that file?
Oddly enough, the tax part DID work, but the shipping options on the Google site were still showing $0 for all but the ones in USPS that had default values entered in the Admin. These showed the default values that I entered instead of the calculated postage. I will say that I got a LOT more options, though, including international options for my California address, even though they all showed $0.
For now, I'm back to the 1.0.4 versions of that googlecheckout.php and the gcheckout.php in the /googlecheckout folder. This lets me use calculated table rates at least.
Thanks for any hints you can provide.
The only shipping options available are the ones that we've actually configured on the admin side module-shipping.
ropu, helped me out with out to set this up to work correctly (I have a feeling ropu will release a tool in the future to help others).
There was actually a duplicate fedex1 in the originally file downloaded by ropu and that was completely deleted from my file after getting help from ropu.
considering that merchant shipping calculation is pretty touched it's important to have things set right.
Here is a sample of what a cleaned up code looks like from googlecheckout.php:
// 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
$this->mc_shipping_methods = array(
'usps' => array(
'domestic_types' =>
array(
'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail'
),
'international_types' =>
array(
'Express' => 'Global Express Mail (EMS)',
'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
'Airmail Letter' => 'Airmail Letter Post'
),
),
'fedex1' => array(
'domestic_types' =>
array(
),
'international_types' =>
array(
),
),
'ups' => array(
'domestic_types' =>
array(
'1DA' => 'Next Day Air',
'1DAPI' => 'Next Day Air Intra (Puerto Rico)',
'1DP' => 'Next Day Air Saver',
'2DA' => '2nd Day Air',
'3DS' => '3 Day Select',
'GND' => 'Ground'
),
'international_types' =>
array(
'STD' => 'Canada Standard',
'XPR' => 'Worldwide Express',
'XPD' => 'Worldwide Expedited'
),
),
'zones' => array(
'domestic_types' =>
array(
'zones' => 'Zones Rates'
),
'international_types' =>
array(
),
),
'fedexexpress' => array(
'domestic_types' =>
array(
'03' => 'FedEx 2Day',
'05' => 'FedEx Standard Overnight',
'06' => 'FedEx First Overnight',
'20' => 'FedEx Express Saver'
),
'international_types' =>
array(
'03' => 'FedEx International Economy',
'06' => 'FedEx International First'
),
),
'fedexground' => array(
'domestic_types' =>
array(
'90' => 'FedEx Home Delivery',
'92' => 'FedEx Ground Service'
),
'international_types' =>
array(
'90' => 'International Home Delivery',
'92' => 'International Ground Service'
),
),
'freeoptions' => array(
'domestic_types' =>
array(
'freeoptions' => 'Free Options'
),
'international_types' =>
array(
),
),
'freeshipper' => array(
'domestic_types' =>
array(
'freeshipper' => 'Free Shipper'
),
'international_types' =>
array(
),
),
'perweightunit' => array(
'domestic_types' =>
array(
'perweightunit' => 'Perweight Unit'
),
'international_types' =>
array(
),
),
'storepickup' => array(
'domestic_types' =>
array(
'storepickup' => 'Store Pickup'
),
'international_types' =>
array(
),
),
'flat' => array(
'domestic_types' =>
array(
'flat' => 'GOOGLECHECKOUT_FLAT_RATE_SHIPPING'
),
'international_types' =>
array(
),
),
'item' => array(
'domestic_types' =>
array(
'item' => 'GOOGLECHECKOUT_ITEM_RATE_SHIPPING'
),
'international_types' =>
array(
),
),
'table' => array(
'domestic_types' =>
array(
'table' => 'GOOGLECHECKOUT_TABLE_RATE_SHIPPING'
),
'international_types' =>
array(
),
),
);
$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',
);
Okay, I just realized the above code I posted is from my 1.2RC4REV1. I will post updated code based on 1.3