Author Topic: USPS v5 - Bundled and Unbundled shipping  (Read 256112 times)

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #570 on: February 20, 2012, 13:53:45 pm »
Quote
Whats missing for USA addresses are these options (in config file):
First-Class MailĀ® Package: Y

That's incorrect.  It should read Parcel.  Update the name in uspsv5.php, save your config a few times, make it write out the new names.

Priority MailĀ® International Padded Flat Rate Envelope** was not returned in the API results.  You'll need to consult the USPS shipping guide to determine why your shipment does not qualify.  Or if it does qualify, you'll need to approach USPS to find why the API did not return it as a result.

Reggie
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

jagadish

  • Beginner
  • *
  • Posts: 7
usps5 not working with vm119
« Reply #571 on: March 17, 2012, 15:14:23 pm »
Hi,
 :'(
i am using VM 1.1.9 and USPS V5
I tried all ways with forum support. but no use. wight not working. we don't have dimensions for our products. we like calculate with weight only. please check the screen shot for setting in my site i added all properly. weight not calculating properly and getting ship rate errors. please help to fix this. and also please check debug list. only taking default weight value.

Code: [Select]

Please select a Shipping Method!
Debug: Starting Shipping module: uspsv5
Debug: uspsv5::__construct() - Starting module version 5.2011.02.10
Debug: uspsv5::list_rates() - Starting
Debug: Shipment::addPackage() Adding a new unbundled package
Debug: Shipment::addPackage() - Package Number: 1
Debug: Shipment::addPackage() - Package is Unbundled
Debug: Shipment::addPackage() - Maxweight: 70
Debug: Package::addItem() - ***** Adding item 44 (Dried Blue Lotus Flower 10 LB) to package #1 *****
Debug: Package::addItem() - Package weight is now: 10.2 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/12201 , Destination: US/93930, Weight: 10.2, Value: 700
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.

Debug: XML Post:

http://http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="xxxxxxxxxx" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>12201</ZipOrigination><ZipDestination>93930</ZipDestination><Pounds>10</Pounds><Ounces>4</Ounces><Container>RECTANGULAR</Container><Size>LARGE</Size><Width>0</Width><Length>0</Length><Height>0</Height><Machinable>FALSE</Machinable></Package></RateV4Request>

XML Result:

Shipper Shipping Rate Price
USPS USPS Weight Charges $2.50

Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.




[attachment cleanup by admin]

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #572 on: March 17, 2012, 15:26:18 pm »
I do not see an XML reply.   Do you not get one? Is there no error? That is very strange.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

jagadish

  • Beginner
  • *
  • Posts: 7
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #573 on: March 17, 2012, 15:28:46 pm »
wow thanks for the quick reply. yeah correct there is no xml results.

few days back tested with usps test mode i got the xml result with " authorization failed." but after getting the live account now there is no result in xml result.



Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.

thanks
jagadish.p

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #574 on: March 17, 2012, 15:30:32 pm »
I found the issue....you have "http://" in the URL for the USPS API Server setting:
http://production.shippingapis.com/ShippingAPI.dll

Change it to this:
production.shippingapis.com/ShippingAPI.dll
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

jagadish

  • Beginner
  • *
  • Posts: 7
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #575 on: March 17, 2012, 15:41:09 pm »
yes correct now i got xml report.

Code: [Select]

Debug: Starting Shipping module: uspsv5
Debug: uspsv5::__construct() - Starting module version 5.2011.02.10
Debug: uspsv5::list_rates() - Starting
Debug: Shipment::addPackage() Adding a new unbundled package
Debug: Shipment::addPackage() - Package Number: 1
Debug: Shipment::addPackage() - Package is Unbundled
Debug: Shipment::addPackage() - Maxweight: 70
Debug: Package::addItem() - ***** Adding item 44 (Dried Blue Lotus Flower 10 LB) to package #1 *****
Debug: Package::addItem() - Package weight is now: 10.2 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/12201 , Destination: US/93930, Weight: 10.2, Value: 700
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
Debug: XML Post:
http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="xxxxxxxx" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>12201</ZipOrigination><ZipDestination>93930</ZipDestination><Pounds>10</Pounds><Ounces>4</Ounces><Container>RECTANGULAR</Container><Size>LARGE</Size><Width>0</Width><Length>0</Length><Height>0</Height><Machinable>FALSE</Machinable></Package></RateV4Request>
XML Result:

<?xml version="1.0"?><br />
<RateV4Response><Package ID="0"><Error><Number>-2147219429</Number><Source>DomesticRatesV4;clsRateV4.ValidateDimension;RateEngineV4.ProcessRequest</Source><Description>Invalid Value for  Multiple Dimensions</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></RateV4Response><br />

Shipper Shipping Rate Price
USPS USPS Weight Charges $2.50
Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.





lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #576 on: March 17, 2012, 15:54:51 pm »
In the main VM config, under the "Shipping" tab, do you have the declare dimensions option checked?  That is probably what is forcing the dimension declaration.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

jagadish

  • Beginner
  • *
  • Posts: 7
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #577 on: March 17, 2012, 16:02:38 pm »
Hi,

i want no dimensions. because we use parcels. so please help what option i have to tick

good news is, if i give dimensions values in the product, usps working fine and showing the values. but if i set dimensions to 0 its not working same error coming(posted in my last post).

please help under vm config- shipping what options i have to tick. i tried with all options but no use.

Declare package dimensions (L/W/H):    Never   -  Unbundled only (recommended)  -   Always

regards,
jagadish.p

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #578 on: March 17, 2012, 16:10:28 pm »
You should use the "Never" option.  Set that.  Log out, log back in.  Try the checkout again.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

jagadish

  • Beginner
  • *
  • Posts: 7
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #579 on: March 17, 2012, 16:21:57 pm »
Hi,

thanks for the help. i selected "never" but no luck. please check the screenshot for setting. no luck. please check the dubug report.

Code: [Select]

Please select a Shipping Method!
Debug: Starting Shipping module: uspsv5
Debug: uspsv5::__construct() - Starting module version 5.2011.02.10
Debug: uspsv5::list_rates() - Starting
Debug: Shipment::addPackage() Adding a new bundled package
Debug: Shipment::addPackage() - Package Number: 1
Debug: Shipment::addPackage() - Package is Bundled
Debug: Shipment::addPackage() - Maxweight: 70
Debug: Package::addItem() - ***** Adding item 43 (Dried Blue Lotus Flower 5 LB) to package #1 *****
Debug: Package::addItem() - Package weight is now: 5.1 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/12201 , Destination: US/93930, Weight: 5.1, Value: 380
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
Debug: XML Post:
http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="xxxxxxxx" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>12201</ZipOrigination><ZipDestination>93930</ZipDestination><Pounds>5</Pounds><Ounces>2</Ounces><Container>RECTANGULAR</Container><Size>LARGE</Size><Width>0</Width><Length>0</Length><Height>0</Height><Machinable>FALSE</Machinable></Package></RateV4Request>
XML Result:
<?xml version="1.0"?><br /> <RateV4Response><Package ID="0"><Error><Number>-2147219429</Number><Source>DomesticRatesV4;clsRateV4.ValidateDimension;RateEngineV4.ProcessRequest</Source><Description>Invalid Value for Multiple Dimensions</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></RateV4Response><br />

Shipper Shipping Rate Price
USPS USPS Weight Charges $2.50
Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.


[attachment cleanup by admin]

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #580 on: March 17, 2012, 16:46:08 pm »
If you declare the package as "Large" size, you are required to declare dimensions.  Change your package size to Regular.
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

jagadish

  • Beginner
  • *
  • Posts: 7
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #581 on: March 17, 2012, 16:56:31 pm »
Hi,

yeah yes correct..  working great. small question.. plz

actually we have parcel products. i mean we have products weight like 8ouns, 5lb 10lb and 25 lb. please suggest what option we have to select. with dimensions is it required for usps or only weight we can follow. 

regards,
jagadish.p

lowmips

  • Global Moderator
  • Full Member
  • *
  • Posts: 1464
    • lowmips.com
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #582 on: March 17, 2012, 16:59:24 pm »
I do not know all of the specific rules for using USPS.  You'll want to review their 2012 shipping guide.

Reggie
Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)

SPyKER

  • Beginner
  • *
  • Posts: 9
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #583 on: March 19, 2012, 04:13:55 am »
First off, thank you for a great bit of code and for continuing to support it!

I have *almost* gotten the shipping working using Joomla Version 1.5.24 and VirtueMart 1.1.9 stable, and your vm1.1.x-uspsv5.2011-02-09-basic, downloaded today. I learned the hard way not to use Zip+4 for shipping address, and now get back the following when posting a request:
XML POST:
Code: [Select]
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="###REMOVED###" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>43119</ZipOrigination><ZipDestination>43119</ZipDestination><Pounds>0</Pounds><Ounces>2</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable> </Package></RateV4Request>
XML RESULT:
Code: [Select]
<?xml version="1.0"?>
<RateV4Response><Package ID="0"><ZipOrigination>43119</ZipOrigination><ZipDestination>43119</ZipDestination><Pounds>0</Pounds><Ounces>2</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>1</Zone><Postage CLASSID="3"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>12.95</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>12.95</Rate></Postage><Postage CLASSID="55"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Boxes</MailService><Rate>39.95</Rate></Postage><Postage CLASSID="56"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Boxes Hold For Pickup</MailService><Rate>39.95</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>18.95</Rate></Postage><Postage CLASSID="27"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup</MailService><Rate>18.95</Rate></Postage><Postage CLASSID="30"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>18.95</Rate></Postage><Postage CLASSID="31"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup</MailService><Rate>18.95</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box</MailService><Rate>15.45</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box</MailService><Rate>11.35</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box</MailService><Rate>5.35</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>5.15</Rate></Postage><Postage CLASSID="44"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>5.30</Rate></Postage><Postage CLASSID="29"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope</MailService><Rate>5.30</Rate></Postage><Postage CLASSID="38"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelope</MailService><Rate>5.15</Rate></Postage><Postage CLASSID="42"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Envelope</MailService><Rate>5.15</Rate></Postage><Postage CLASSID="40"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope</MailService><Rate>5.15</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Parcel</MailService><Rate>1.95</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Letter</MailService><Rate>0.85</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Postcards</MailService><Rate>0.32</Rate></Postage><Postage CLASSID="15"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Postcards</MailService><Rate>0.45</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>2.47</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.35</Rate></Postage></Package></RateV4Response>

The problem is a also get the following:

Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.

Now, I noticed that under the VM Config Shipping tab, I don't seem to have the options to Declare package dimensions or Unbundled only.

If it helps to know, I only have Express Mail, Priority Mail, International Express Mail, and International Priority Mail selected.

What else can I provide to help figure this out?

jagadish

  • Beginner
  • *
  • Posts: 7
Re: USPS v5 - Bundled and Unbundled shipping
« Reply #584 on: March 19, 2012, 06:02:07 am »
Hi, spyker

i learned bit from lowmips. you try this steps:

if you plan for without dimensions.  please use this steps

1) under general VM configuration -> shipping tab -> select "Global Shipping Options" ticket to "Never"
2) under VM -> Store -> Shipping module list -> USPS Configure Ship Method (5.2011.03.25) -> tick "Regular"

3) under shipping -> create shipper, i created "usps" then create the Shipping Rates-> under this shipping zip code range i added 0 to 9999999999 and lowest weight 0.000 to 0.100 (depends on your weight variation). (remember i am not sure this settings correct or not - but its working fine for me)

4) under products add weight for each product.  dimensions u can set to 0

try now...

regards,
jagadish.p