Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS question


Guest

Recommended Posts

I am new to all of this, but I have pretty much figured out how to get my shopping cart working properly but I was wondering if there is any way to disable the first class and parcel post options so when customers go through check out priority mail is the only option they have. Any help would be greatly appreciated.

Link to comment
Share on other sites

I'm not sure that this is what you are looking for but

admin -> modules -> shipping

 

In there you can install one or more shipping types you want. They have a good selection. if they have a 0 that means they are active. If you do not want to use one just turn it off.

 

Hope that's what you are looking for

 

D.

Link to comment
Share on other sites

What you want to do eventually is upgrade USPS.php with USPS Methods 2.7 from the contribution section. It is relatively easy to do and what you want to do you can do in admin.... If you decide to install the methods mod, be sure you check your files for previous mods or just cut and paste the files other than USPS.php. then if you need to step up to insurance, registered mail, delivery receipts, signature verification, etc. let me know I have a hack that does all that too. But for a simple change that will only offer your customers priority mail, go to catalog/includes/modules/shipping/usps.php find the code below near the top and eliminate the servies you don't want...

 

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

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

'Priority' => 'Priority',

'Parcel' => 'Parcel');

 

such as,

 

$this->types = array('Priority' => 'Priority');

 

That effectively eliminates everything but Priority Mail. :)

Link to comment
Share on other sites

Thank you Bloodshoteyes for the info, it's exactly what I need to do,but I think it kicked my backside. I can't find anywhere to do what you suggested but I sent a copy of this forum to my webhost so hopefully he can fix this for me. I really do wish I knew how to use HTML. LOL. I might need to contact you again if I can't get this fixed, if that's okay with you bloodshoteyes. Thanks again for the info, sorry I can't understand what I am supposed to do.

Link to comment
Share on other sites

Bloodshoteyes,

 

I just wanted to let you know that I took a break from trying to figure this out and then this morning I went in and I found the file and I actually did it just the way you said and it is now done. Thank you very much for the info. My site is now 100% ready for customers. Lisa

Link to comment
Share on other sites

  • 11 months later...

Hi blodshoteyes,

 

I tried this for intl_types and deleted couple of options - Surface Post and Global Priority Mail (Small envelope) but it still shows those options while checkingout the cart.

 

I think usps.php is the only place where it can be deleted and I don't think that the shipping page would be coming from a cache. I disabled the cache, changed browsers but it is still showing up.

 

Do I need to change something at USPS.com?

 

Any kind of help will be appreciated

Link to comment
Share on other sites

I did some debugging and found that if I check one of the options that I have deleted ["Surface Post" and "Global Priority Mail (Small envelope)"] then it shows the price for "Global Express Guaranteed Document Service"

 

Which means its just showing those two options on that page from a file other than /includes/modules/shipping/usps.php

 

Does anybody know where I can edit it? Is it some XML provided by USPS?

 

Thanks in advance

Link to comment
Share on other sites

  • 1 month later...
I did some debugging and found that if I check one of the options that I have deleted ["Surface Post" and "Global Priority Mail (Small envelope)"] then it shows the price for "Global Express Guaranteed Document Service"

 

Which means its just showing those two options on that page from a file other than /includes/modules/shipping/usps.php

 

Does anybody know where I can edit it? Is it some XML provided by USPS?

 

Thanks in advance

 

 

I'm having the same problem but with UPS. I only want UPS ground but other options are showing up on the checkout page even after I deleted them. Did you ever find the answer to your problem?

Link to comment
Share on other sites

Hello all.

 

Does anyone know how to limit international shipping options for USPS?

 

I know others who use USPS Methods, but is there another way?

 

 

Don did u try this:

You need to go to catalog\includes\modules\shipping\usps.php. This should solve the problem. Make sure that you have deleted all the other shipping options or at least put a // in front of them, so they look like this:

 

$this->types = array(//'1DM' => 'Next Day Air Early AM',
                         //'1DML' => 'Next Day Air Early AM Letter',
                        //'1DA' => 'Next Day Air',
                        //'1DAL' => 'Next Day Air Letter',
                        //'1DAPI' => 'Next Day Air Intra (Puerto Rico)'

 

This is a UPS example, but it should still work the same way for USPS.

Link to comment
Share on other sites

Thanks for your reply rfgifts.

 

I tried to comment out and then delete the lines in usps.php, but all of the international options still appear. It only works for my domestic options, which is fine with me.

Link to comment
Share on other sites

  • 2 years later...
What you want to do eventually is upgrade USPS.php with USPS Methods 2.7 from the contribution section. It is relatively easy to do and what you want to do you can do in admin.... If you decide to install the methods mod, be sure you check your files for previous mods or just cut and paste the files other than USPS.php. then if you need to step up to insurance, registered mail, delivery receipts, signature verification, etc. let me know I have a hack that does all that too. But for a simple change that will only offer your customers priority mail, go to catalog/includes/modules/shipping/usps.php find the code below near the top and eliminate the servies you don't want...

 

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

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

'Priority' => 'Priority',

'Parcel' => 'Parcel');

 

such as,

 

$this->types = array('Priority' => 'Priority');

 

That effectively eliminates everything but Priority Mail. :)

 

 

Thank you for this easy fix- worked great!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...