zarintasu Posted October 19, 2006 Posted October 19, 2006 OK.. haha. I've been all over this forum today. I hope I'm not bugging everyone! :( I have one last question for now.. I have a USPS account to automatically calculate shipping with them. It has been successfully moved to the production server and it works fine. I'm just wondering if there's a way to not offer certain shipping services provided by USPS? I want to eliminate Parcel Post. But I want to keep Priority, First Class, and Express.
zarintasu Posted October 19, 2006 Author Posted October 19, 2006 And also.. is there a way I can let my customers choose whether they get insurance or not? If not, I can always insure EVERY package and include that in the shipping costs. But I would rather leave it as something option.
zarintasu Posted November 1, 2006 Author Posted November 1, 2006 This can be done with ZenCart. Help T^T
zarintasu Posted November 1, 2006 Author Posted November 1, 2006 from 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(); } If I edit out the ones I don't want to have available here, will my shipping module still function?
zarintasu Posted November 6, 2006 Author Posted November 6, 2006 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(); }
tferrer Posted December 6, 2006 Posted December 6, 2006 How you got the USPS calculation working ? I'm trying the test server but it keep saying that an error occurred when trying to do the calculation. thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.