Cant Remove USPS First Class Mail

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Lyle
Status:patch (needs review)
Description
Project: 
Ubercart

First I wanted to thank you guys for being on top of it and helping me out with my previous bugs..

And now on to the new bug..

My customer wants to ship ONLY via priority mail and as such wants to remove first class from the list of options.. When i uncheck the first class box and hit save, when the page reloads, the box is checked again.

Im not sure if this is deliberate or not.

Thanks

d

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Cant Remove USPS First Class Mail

No, not deliberate. The problem comes from a conflict between the USPS id for the First Class service and the way Drupal handles checkbox values.

It looks like I'm not receiving any first-class service quotes on my test site, but that might be because my products don't qualify. Test out this patch to make sure you can turn the service on and off.

AttachmentSize
first-class.patch_.txt 846 bytes
healersource's picture
Offline
Bug Finder
Joined: 08/30/2007
Juice: 38
Haha
Assigned to:Lyle» healersource

Well The patch works great... Im able to uncheck the 'First Class' option in the admin interface now.

Unf the rate quote is still coming back with First Class rates.

So close and yet so far..

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Haha
Assigned to:healersource» Lyle

Look in your variable table and tell me what the value of 'uc_usps_services' is.

VitaLife's picture
Offline
Bug Finder
Joined: 10/29/2007
Juice: 249
Was this ever fixed?
Assigned to:Lyle» VitaLife

I'm getting USPS First Class on my quotes but I have teh box unchecked, we use priority mail, but don't ship first clas..
Jim

VitaLife's picture
Offline
Bug Finder
Joined: 10/29/2007
Juice: 249
My Variable String

Here is my usps service string.
a:12:{i:1;i:1;i:17;i:17;s:4:"zero";i:0;i:2;i:0;i:3;i:0;i:4;i:0;i:5;i:0;i:6;i:0;i:7;i:0;i:12;i:0;i:13;i:0;i:16;i:0;}