VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Shipping VM 1.1 => USPS (U.S. Postal Service) VM 1 => Topic started by: ncaipen on June 01, 2009, 18:49:01 PM

Title: USPS Product height
Post by: ncaipen on June 01, 2009, 18:49:01 PM
I am a relatively new Virtuemart user and have installed uspsv5.1 for the first time for a client's site.  Everything was set up and installed and I am not receiving any errors, but I have noticed during testing that inappropriate shipping options are displayed for the products selected.  For example, if I try to purchase a product that is 14" x 12" x 12", as long as I have Priority Mail Flat Rate envelope selected as an available shipping method in the Shipping Module Configuration it will show up as a shipping choice for the customer.  Obviously a product with those dimensions can't be shipped in envelope form.  I turned on Debug mode and it appears as though everything is being passed correctly to USPS, although product dimensions are not included (only weight).  Does anyone know of a solution to this problem? 

Here is the site:
www.windwardcoffee.com/index.php

Thanks.
Title: Re: USPS Product height
Post by: lowmips on June 03, 2009, 05:41:35 AM
Hi,
You are correct. The USPSv5.1 module does not pass L/W/H variables to USPS web services.  It only passed weight/zipcodes, and processes all services sent back.  I think if the L/W/H were sent then USPS would not return envelopes and the like.  If I get a chance tomorrow I'll test that theory.  If you'd like for me to add this functionality to my USPS module, please contact me about my rate.  I have implemented this in my UPSv2 module already.

-Reggie
Title: Re: USPS Product height
Post by: juanschwartz on August 31, 2009, 22:16:50 PM
Reggie,

I am currently in dire need of this as well. When we ship stickers, it's charging priority flat rate of $4.95 USD when it should be in an envelope. What's the policy on adding stuff to your existing code? Is that okay?
Title: Re: USPS Product height
Post by: lowmips on September 01, 2009, 00:58:41 AM
It's GPL code, do what you like with it as long as it adheres to that license. =)

Happy Coding!
-Reggie