Guest Posted May 7, 2007 Share Posted May 7, 2007 How exactly do i get this to work? I am not sure where you copy the code after it is generated. Quote Link to comment Share on other sites More sharing options...
gabriel06 Posted May 7, 2007 Share Posted May 7, 2007 How exactly do i get this to work? I am not sure where you copy the code after it is generated. Read README file that came with the Shipping Generator ! It explains everything! Regards, Gabriel Quote Link to comment Share on other sites More sharing options...
Guest Posted May 8, 2007 Share Posted May 8, 2007 Automatic shipping generator v0.1 Paste the files in googlecheckout/shipping_generator Point your browser to http://your-site/googlecheckout/shipping_generator/ Set a Domestic Address and an Int'l Address (you can use default ones) Click Get Shipping Methods wait for the script to use OSC's Shipping class to get all valid shipping methods for those adresses. (Note: Only active shipping providers and valid shipping methods for the address setted will be shown. May happen that one shipping method available is not present. Is recommended to check all the shipping methods) Add or remove any shipping method. When done, click Generate You must see the $this->mc_shipping_methods and $this->mc_shipping_methods_names add them to includes/modules/payment/googlecheckout.php ropu ----------------------------------------------------------------------------------------------------------------------------- I am just really lost. You can't copy the complete code because of the <?php I get some kind of werid error.. Am I suppose to replace the whole page with the code once its generated? for example. this is the code i get.. I found the $this->mcshipping_methods so I remove the other stuff and paste this exactly. <?php /** * File: includes/modules/payment/googlecheckout.php class * Add this code to the correct properties */ $this->mc_shipping_methods = array( 'flat' => array( 'domestic_types' => array( 'flat' => 'Best Way', ), 'international_types' => array( 'flat' => 'Best Way_1', ), ), 'usps' => array( 'domestic_types' => array( 'Express' => 'Express Mail', 'Priority' => 'Priority Mail', 'Parcel' => 'Parcel Post', ), 'international_types' => array( 'Global Express Guaranteed Document Service' => 'Global Express Guaranteed Document Service', 'Global Express Guaranteed Non-Document Service' => 'Global Express Guaranteed Non-Document Service', 'Global Express Mail (EMS)' => 'Global Express Mail (EMS)', 'Airmail Letter Post' => 'Airmail Letter Post', 'Airmail Parcel Post' => 'Airmail Parcel Post', 'Economy (Surface) Letter Post' => 'Economy (Surface) Letter Post', 'Economy (Surface) Parcel Post' => 'Economy (Surface) Parcel Post', ), ), ); $this->mc_shipping_methods_names = array( 'flat' => 'Flat Rate', 'usps' => 'United States Postal Service (1 x 3lbs)', ); ?> I still get some odd error.. Wouldn't I want to remove the the <?php and ?> before I copy? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.