Zen Cart Logo
Forums / Addon Shipping Modules / USPS Web Tools Price Change Updates Jan 2012

USPS Web Tools Price Change Updates Jan 2012

Views: 16,451

Results 41 to 57 of 57
27 Jan 2012, 10:17 PM
#41
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

USPS Web Tools Price Change Updates Jan 2012

You have set the Shipping Zone to Washington ... so only those using the Zone Definition for Washington and the DETAILS for it will see the shipping module ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Jan 2012, 10:19 PM
#42
spifflifkin avatar

spifflifkin

New Zenner

Join Date:
Aug 2011
Location:
Pacific NW
Posts:
28
Plugin Contributions:
0

Re: USPS Web Tools Price Change Updates Jan 2012

I turned the zone off and now it works! My old setup did not have a zone either. I wasn't paying attention...

Thank you very much for your help!

Gary

27 Jan 2012, 10:33 PM
#43
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Web Tools Price Change Updates Jan 2012

You are most welcome ... thanks for the update as to the source of the problem ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Jan 2012, 2:32 PM
#44
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: USPS Web Tools Price Change Updates Jan 2012

I've installed this update on my v1.5.0 test installation. Is there a way to get more detail for the Priority Mail settings? The products I sell fit into a Priority Mail Flat Rate Envelope quite nicely, but the only Priority Mail quote that comes back from the USPS is a general one (using your own packaging).

30 Jan 2012, 3:49 PM
#45
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: USPS Web Tools Price Change Updates Jan 2012

You can change which quote you are getting by customizing the code at:

          //PRIORITY MAIL OPTIONS
          if ($key == 'PRIORITY'){
            $this->container = ''; // Blank, Flate Rate Envelope, or Flat Rate Box // Sm Flat Rate Box, Md Flat Rate Box and Lg Flat Rate Box

          }

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Apr 2012, 5:10 PM
#46
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

How would one go about changing this so that the flat rate can be selected based on the order weight. So basically

  • **if the order weight less than or equal to X choose Sm Flat Rate Box
    **
  • **if order weight is greater than X but less than Y choose Md Flat Rate Box
    **
  • if order weight is greater than Y choose Lg Flat Rate Box

My client wants to offer flat rate, but since order sizes vary, we want to choose the most apprpriate flat rate based on the order weight.

Ajeh:

You can change which quote you are getting by customizing the code at:

      //PRIORITY MAIL OPTIONS
      if ($key == 'PRIORITY'){
        $this->container = ''; // Blank, Flate Rate Envelope, or Flat Rate Box // Sm Flat Rate Box, Md Flat Rate Box and Lg Flat Rate Box

      }

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

30 Apr 2012, 5:30 PM
#47
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: USPS Web Tools Price Change Updates Jan 2012

          //PRIORITY MAIL OPTIONS
          if ($key == 'PRIORITY'){
            $weight = $this->pounds*16 + $this->ounces;
            if ($weight <= X) {
              $this->container = 'Sm Flat Rate Box';
            } elseif ($weight > Y) {
              $this->container = 'Lg Flat Rate Box';
            } else {
              $this->container = 'Md Flat Rate Box';
            }
          }

Haven't tested it, but it "should" work ...

30 Apr 2012, 6:01 PM
#48
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

I could KISS you!!!! this is the second bit of code of your I've used on this site that just ROCKED!!! Just to be clear, I replace "X" and "Y" with the weights I want correct??? (in ounces correct???)

lat9:

      //PRIORITY MAIL OPTIONS
      if ($key == 'PRIORITY'){
        $weight = $this->pounds*16 + $this->ounces;
        if ($weight <= X) {
          $this->container = 'Sm Flat Rate Box';
        } elseif ($weight > Y) {
          $this->container = 'Lg Flat Rate Box';
        } else {
          $this->container = 'Md Flat Rate Box';
        }
      }
> 
> Haven't tested it, but it "should" work ...

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

30 Apr 2012, 6:43 PM
#49
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

Just wanted you to know this works PERFECTLY!!! It's down and dirty, and I LIKE IT!! It will do the trick for my client..

lat9:

DivaVocals:

How would one go about changing this so that the flat rate can be selected based on the order weight. So basically

  • **if the order weight less than or equal to X choose Sm Flat Rate Box

**

  • **if order weight is greater than X but less than Y choose Md Flat Rate Box

**

  • if order weight is greater than Y choose Lg Flat Rate Box

My client wants to offer flat rate, but since order sizes vary, we want to choose the most appropriate flat rate based on the order weight.

      //PRIORITY MAIL OPTIONS
      if ($key == 'PRIORITY'){
        $weight = $this->pounds*16 + $this->ounces;
        if ($weight <= X) {
          $this->container = 'Sm Flat Rate Box';
        } elseif ($weight > Y) {
          $this->container = 'Lg Flat Rate Box';
        } else {
          $this->container = 'Md Flat Rate Box';
        }
      }
> 
> Haven't tested it, but it "should" work ...

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

1 May 2012, 1:26 PM
#50
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: USPS Web Tools Price Change Updates Jan 2012

Happy to help, DivaVocals. I'm assuming that you figured out that you set X to your lower value and Y to your higher value (in ounces).

1 May 2012, 3:28 PM
#51
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

lat9:

Happy to help, DivaVocals. I'm assuming that you figured out that you set X to your lower value and Y to your higher value (in ounces).
Yep.. Got it all worked out.. My client is pretty stoked!! Thank you again sooooo much!!! The only downside I can see in using this simple method to determine the box size is on the occasion that the product is light in weight but bulky in terms of size.. So the wrong box may occasionally be selected.. But my client seems to think that this is a rare event and so she is okay with the occasional wrong box being selected.. Too bad USPS shipping doesn't support dimensional shipping calcs..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 May 2012, 4:39 AM
#52
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

lat9:

      //PRIORITY MAIL OPTIONS
      if ($key == 'PRIORITY'){
        $weight = $this->pounds*16 + $this->ounces;
        if ($weight <= X) {
          $this->container = 'Sm Flat Rate Box';
        } elseif ($weight > Y) {
          $this->container = 'Lg Flat Rate Box';
        } else {
          $this->container = 'Md Flat Rate Box';
        }
      }
> 
> Haven't tested it, but it "should" work ...
Sorry to be a PITA.. Can you guide me as to how I would incorporate the flat rate envelopes into this. This will allow my client to offer all flat rate options, and the lightest packages will get the flat rate envelope rates.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 May 2012, 12:35 PM
#53
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: USPS Web Tools Price Change Updates Jan 2012

No pain ... assuming that your client wants to use the following "rules":

  1. Z < X < Y and are all specified in ounces
  2. If weight <= Z, use flat rate envelope
  3. If weight > Z and <= X use sm flat rate box
  4. If weight > X and <= Y use md flat rate box
  5. Otherwise (weight > Y) use lg flat rate box
//PRIORITY MAIL OPTIONS
          if ($key == 'PRIORITY'){
            $weight = $this->pounds*16 + $this->ounces;
            if ($weight <= Z) {
              $this->container = "Flat Rate Envelope";
            } elseif ($weight <= X) {
              $this->container = 'Sm Flat Rate Box';
            } elseif ($weight > Y) {
              $this->container = 'Lg Flat Rate Box';
            } else {
              $this->container = 'Md Flat Rate Box';
            }
          }
7 May 2012, 12:51 PM
#54
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

You are awesome!! I tired to figure this out on my own before posting my inquiry.. Now I see I needed another elseif statement.. Ahhhhhhhhhhh GOT IT!!! This should do the trick.. Thanks again!!!

lat9:

No pain ... assuming that your client wants to use the following "rules":

  1. Z < X < Y and are all specified in ounces
  2. If weight <= Z, use flat rate envelope
  3. If weight > Z and <= X use sm flat rate box
  4. If weight > X and <= Y use md flat rate box
  5. Otherwise (weight > Y) use lg flat rate box

//PRIORITY MAIL OPTIONS
if ($key == 'PRIORITY'){
$weight = $this->pounds*16 + $this->ounces;
if ($weight <= Z) {
$this->container = "Flat Rate Envelope";
} else
if ($weight <= X) {
$this->container = 'Sm Flat Rate Box';
} elseif ($weight > Y) {
$this->container = 'Lg Flat Rate Box';
} else {
$this->container = 'Md Flat Rate Box';
}
}

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 May 2012, 7:39 PM
#55
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

Just when I thought I got away clean.. I noticed that amongst the domestic Priority flat rate options for USPS that the Padded Envelopes and Legal Envelopes do not appear to be available.

Padded Envelopes 12 1/2" x 9 1/2" Clothing Books Boxed Jewelry $5.30 paid online or at the Post Office
Legal Envelopes 9 1/2" x 15" Legal Documents $5.30 paid online or at the Post Office

If I can indeed offer these options (Padded Envelopes or Legal Envelopes) what is the correct service name that I should use where the code says:

$this->container = "Flat Rate Envelope"; 

and YES I know we could use Flat Rate Small Box, but my client is ubber concerned about the $0.05 "overcharge" to her customers. (Some customers do in fact "double check" the shipping costs again the USPS website.. They have/will make a HUGE stink if they think things don't "add up")

Finally one more thing.. Would anyone be willing the share the code I would need so that I need to support this:

My client has activated BOTH Priority Mail International, Priority Mail Int Padded Flat Rate Env for international. (I know... don't ask.. I already HAD this discussion about activating BOTH of these).

Here's the question: is there a way to limit the weight for the Priority Mail Int Padded Flat Rate Env option so that if the order exceeds a particular weight, then this option is not offered?

Example: A customer selects Priority Mail Int Padded Flat Rate Env but purchased an item (or number of items) that can't fit into the package. How can the weight for JUST Priority Mail Int Padded Flat Rate Env be limited??

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 May 2012, 9:48 PM
#56
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: USPS Web Tools Price Change Updates Jan 2012

This one will do what you are asking if you can sort by product volume instead of weight. That's how we determine which USPS flatrate boxes an order will fit within. Once a box volume is exceeded, it is removed automatically from the choices shown to the customer.

**USPS Shipping Module Update - RateV4 - IntlRateV2**

There is one issue related to international firstclass that is easily fixed by changing the word package to parcel or viceversa (I don't remember which way I did it back in January)

We use 13 cubic inches as the max we will allow in a FR envelope

It also includes the Regional A & B flat rate boxes for options.

If this won't work, I'd bet that the code fragments that you need can be found in it.

Rick
RixStix (dot) com
aka: ChainWeavers (dot) com

8 May 2012, 2:27 PM
#57
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: USPS Web Tools Price Change Updates Jan 2012

RixStix:

This one will do what you are asking if you can sort by product volume instead of weight. That's how we determine which USPS flatrate boxes an order will fit within. Once a box volume is exceeded, it is removed automatically from the choices shown to the customer.

**USPS Shipping Module Update - RateV4 - IntlRateV2**

There is one issue related to international firstclass that is easily fixed by changing the word package to parcel or viceversa (I don't remember which way I did it back in January)

We use 13 cubic inches as the max we will allow in a FR envelope

It also includes the Regional A & B flat rate boxes for options.

If this won't work, I'd bet that the code fragments that you need can be found in it.Thanks for this.. I'll take a look!!:smile:

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.