Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can Someone Please Verify/Confirm This?


Azure Moon

Recommended Posts

Posted

Hi Everyone,

 

I'm a total newbie, so please be kind> :blink:

 

I want to limit the options my customers have for USPS shipping to just First Class, Priority and Express Mail. Also, since I'm just starting out, I will only be shipping to the US.

 

I'm terrified of installing contributions...affraid that I'll mess something up and with being so new, not being able to fix it.

 

I found this answer in the forums and would like to know if making the following changes will indeed work. I've sent both a pm and an email to this member, with no response. I'm hoping someone else can verify this.

 

Here's zarintasu's solution:

 

 

I've been asked a few times how to do this, so I thought I would just post it here..

 

You need to edit this, which is found around line 46 within your /catalog/includes/modules/shipping/ usps.php :

 

$this->types = array('Express' => 'Express Mail',

'First Class' => 'First-Class Mail',

'Priority' => 'Priority Mail',

'Parcel' => 'Parcel Post');

 

$this->intl_types = array('GXG Document' => 'Global Express Guaranteed Document Service',

'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',

'Express' => 'Global Express Mail (EMS)',

'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',

'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',

'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',

'Airmail Letter' => 'Airmail Letter Post',

'Airmail Parcel' => 'Airmail Parcel Post',

'Surface Letter' => 'Economy (Surface) Letter Post',

'Surface Post' => 'Economy (Surface) Parcel Post');

 

$this->countries = $this->country_list();

}

 

 

 

Just edit out what you don't want.. for example, here is mine now..

 

$this->types = array('First Class' => 'First-Class Mail',

'Priority' => 'Priority Mail',

'Express' => 'Express Mail');

 

$this->intl_types = array('Express' => 'Global Express Mail (EMS)',

'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)');

 

$this->countries = $this->country_list();

}

 

 

Brightest Blessings,

 

Azure Moon

Posted
Hi Everyone,

 

I'm a total newbie, so please be kind> :blink:

 

I want to limit the options my customers have for USPS shipping to just First Class, Priority and Express Mail. Also, since I'm just starting out, I will only be shipping to the US.

 

I'm terrified of installing contributions...affraid that I'll mess something up and with being so new, not being able to fix it.

 

I found this answer in the forums and would like to know if making the following changes will indeed work. I've sent both a pm and an email to this member, with no response. I'm hoping someone else can verify this.

 

Here's zarintasu's solution:

I've been asked a few times how to do this, so I thought I would just post it here..

 

You need to edit this, which is found around line 46 within your /catalog/includes/modules/shipping/ usps.php :

 

$this->types = array('Express' => 'Express Mail',

'First Class' => 'First-Class Mail',

'Priority' => 'Priority Mail',

'Parcel' => 'Parcel Post');

 

$this->intl_types = array('GXG Document' => 'Global Express Guaranteed Document Service',

'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',

'Express' => 'Global Express Mail (EMS)',

'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',

'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',

'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',

'Airmail Letter' => 'Airmail Letter Post',

'Airmail Parcel' => 'Airmail Parcel Post',

'Surface Letter' => 'Economy (Surface) Letter Post',

'Surface Post' => 'Economy (Surface) Parcel Post');

 

$this->countries = $this->country_list();

}

Just edit out what you don't want.. for example, here is mine now..

 

$this->types = array('First Class' => 'First-Class Mail',

'Priority' => 'Priority Mail',

'Express' => 'Express Mail');

 

$this->intl_types = array('Express' => 'Global Express Mail (EMS)',

'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)');

 

$this->countries = $this->country_list();

}

Brightest Blessings,

 

Azure Moon

 

Anyone? Someone out there must know the answer to this...please.

 

Azure Moon

Posted
Anyone? Someone out there must know the answer to this...please.

 

Azure Moon

 

looks ok to me

 

BACKUP YOUR FILES - and then make the change. See if it works.

It'll be a pretty tedious process for you if you can't make this single change without worry.

 

If you backup your mod'ed files - there's nothing to worry about.

 

Go for it!

 

david

Posted
looks ok to me

 

BACKUP YOUR FILES - and then make the change. See if it works.

It'll be a pretty tedious process for you if you can't make this single change without worry.

 

If you backup your mod'ed files - there's nothing to worry about.

 

Go for it!

 

david

 

Hi David,

 

Thanks for getting back to me. I just want to be sure and check with the experts!

 

Azure

Posted

There would be no experts if we didn't back up and hack into code to get what we want to accomplish.

 

Learn how to hack some code so you can answer some of the questions. :D

Posted
There would be no experts if we didn't back up and hack into code to get what we want to accomplish.

 

Learn how to hack some code so you can answer some of the questions. :D

 

Hi Everyone,

 

Just wanted to let everyone know that I did exactly what Zarin had suggested and it works perfectly! Thank you to all who looked at the code and confirmed it...it's greatly appreciated.

 

And a reminder for some that replied to this query...everyone has to learn sometime and kindness goes much further than sarcasm. Try to remember what it was like when you were first starting out. :thumbsup:

 

Azure Moon

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...