Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

get the osc_shipping_generator_v0.1.zip working


Guest

Recommended Posts

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?

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...