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: lowmips on October 11, 2008, 20:08:08 pm

Title: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on October 11, 2008, 20:08:08 pm
Hi all,
My online shop needed to calculate the shipping cost for certain items seperately, as those items ship in their own box.  The current implementations of the USPS module were returning incorrect quotes as they were assuming all items were shipped together.  So, I rewrote the USPSv4.0 (http://forum.virtuemart.net/index.php?topic=40284.0) module to include this functionality.  My new module adds a new attribute to your product, which designates whether or not the product ships alone, or can be bundled with other products in your cart.  At checkout, all "bundled" items weight are combined, and that rate is queried from USPS.  Then, each "unbundled" item is queried.  All queries are then added together for a final shipping price.

I have attached the installation archives to this post.   Please view the README.txt for installation instructions.

If you come across any bugs, please post them here. I have subscribed to this topic. I have added this functionality to the UPS shipping module as well.  Please see this post (http://forum.virtuemart.net/index.php?topic=47142.0) for details.

Thank you,
Reggie


Show shipping estimates before the user checks out! Download plgSystemCartRates-USPSv5.zip (http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&id=6:uspsv5&Itemid=18)


Versions


vm11x-USPSv5.2011.02.09-BASIC
- Adheres to 'drop in' concept of VirtueMart shipping modules, should work with any recent version of VirtueMart
- Supports latest v4 domestic and v2 international USPS API (IMPORTANT! The old v3 is being phased out.)
- Domestic/International handling fees
- allows for upcharging each service type
- mod_virtuemart_currencies support
- works with the "Cart Rates" plugin
- should work with any version of VM from 1.1.x+

vm118-USPSv5.2011.03.25
- v4 Domestic and v2 Inernational API support (IMPORTANT! The old v3 is being phased out.)
- Bundled/Unbundled products support
- Domestic/International handling fees
- allows for upcharging each service type
- mod_virtuemart_currencies support
- works with the "Cart Rates" plugin
- Package Dimension declaration
- GXG support
- ported to VirtueMart 1.1.8

vm119-lowmips.2011.08.22
- includes vm118-uspsv5.2011.03.25
- ported to VirtueMart 1.1.9
- download from my website

[attachment cleanup by admin]
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: koaweb on October 14, 2008, 10:10:51 am
Hi Reggie,
Thanks for making this mod available. It seems like the product.product_form file breaks the page from the VM template and won't open correctly. Only the first few fields of the Product Information tab shows up.

Im using VM 1.1.1 and J! 1.0.15

Looking forward to using this, I hope you are able to replicate and fix it.

Thanks again.

Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on October 14, 2008, 14:13:53 pm
Koaweb,
I wrote and tested this on Joomla 1.5.x and VM 1.1.x.  All I did in that specific file was add a new column with a checkbox.  Are there any error messages displayed in your browser? What browser are you using?  Could you do a "print source" on the webpage and copy the results to a file and upload them to this thread?

Thanks,
Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: koaweb on October 17, 2008, 11:03:05 am
The page did not show any on screen error messages and my browser is FF 2.0.0.17

Theres quite a bit missing from the source code when using the Simple Layout. When viewing it in Extended Layout the CSS does not break but it still does not load beyond "Manufacturer" field on the Product Information page.

I am not able to post the source code because it goes over the char. limit for the forum. I will PM it to you if I can.

Thanks again for looking into it.

Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on October 21, 2008, 22:37:03 pm
Hi all,
Koaweb and I have done some preliminary debugging of his issue and we have decided it is most likely a Joomla version issue, but have no hard evidence.  I currently do not have a Joomla 1.0.x installation to debug the issue on.  I have successfully tested this module on Joomla version 1.5.x, so please keep this in mind if you decide to use it.  If anyone else uses Joomla 1.0.x and does or does not see this same issue please let me know so I can confirm that it is/is not a versioning issue.

Thanks,
Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on October 21, 2008, 23:28:13 pm
Hi all,
I added this functionality to the UPS shipping module. See this post (http://forum.virtuemart.net/index.php?topic=47142.0) for details.

Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: kumar16 on November 03, 2008, 19:16:47 pm
I installed this module and got my USPS account activated. I dont see anything when it comes to select a shipping method. I am unable to go to the payment without selecting the shipping method, which just appears blank. Any ideas? Thanks.
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on November 03, 2008, 20:57:20 pm
Have you enabled the USPSv5 module under VirtueMart?
Administration->Admin->Configuration->Shipping->The USPS Shipping v5.0. Supports bundled and unbundled shipments.

Have you enabled the appropriate shipping types under the USPSv5.0 configuration?
Administration->Store->Shipping Module List->(USPSv5.0) Configure Ship Method->Domestic/International shipping options


Hope this helps,
Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: kumar16 on November 03, 2008, 21:51:31 pm
Hey lowmips,

I did. I think i figured out what the problem was, the product attribute weight was not set. Once i did that, its working now. I ran into another serious problem where i am unable to change the attribute of existing products, but that is not related to this and i hope someone helps me out with that soon. Thanks for this wonderful module!
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on November 03, 2008, 23:06:32 pm
here's why (this was in the original code as well, just in a different way):

// don't process shipments with no weight. we either have digital downloads, or an empty cart
$order_weight = $d['weight'];
if($order_weight <= 0) {
   return true;   
}


I think I'll add in some debug code that shows the order weight is zero.
=)
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on November 06, 2008, 21:09:53 pm
Updated to remove typo introduced in last update...
Updated ps_product to do validation check on ship_alone variable.
Updated uspsv5.php to check each shipment individually against the 70lb max weight limit, instead of the combined weight of all shipments (the original way)
Title: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on November 14, 2008, 17:29:21 pm
Updates 2008/11/14:
BUG NOTICE
I've found a bug where shipments with large numbers of unbundled items will cause the rate request to fail.  This is due to the XML query surpassing the maximum string length allowed in PHP.  I noticed this bug when testing my other module, UPSv2.0 with large shipments that contained around 40 individual packages.  I do not know the exact number of individual packages that will cause this failure.

Over the next week or so I will be modifying the USPSv5.0 module to include much of the new functionality I've put into the UPSv2.0 module, which will include a bugfix for this.

-Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: Gaelen Hudson on December 01, 2008, 21:45:16 pm
I'v got the module installed, enabled, and configured.  However it still does not show up during checkout as an option. Just downloaded and installed today.

Using Joomla! 1.5.8 and VM 1.1.2
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on December 01, 2008, 22:10:13 pm
Put your website in debug mode, make note of the XML post and replies.

-Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: Gaelen Hudson on December 02, 2008, 00:54:34 am
Good call.  When it gets to the shipping selection phase of checkout it loads the standard module then says:

Debug: Starting Shipping module: uspsv5

Debug: The order total weight is zero. Exiting USPSv5.0.

This store does not do weight based shipping. Does this mean we will not be able to use the module unles we specify a weight for each item?  We have clos to 300 products and use flat rate boxes and would rather not have to go back to put in a weight for each item.
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: nefar on December 04, 2008, 04:35:43 am
Installed this earlier and began to notice some odd weights in my products.  I went to edit the products to change the weight and noticed nothing would change so I threw debug on and when attempting to change any product data I now get a

500 error:
JDatabaseMySQL::query: 1054 - Unknown column 'ship_alone' in 'field list' SQL=UPDATE `jos_vm_product` SET `vendor_id` = '1', `product_sku` = 'stopper01', `product_name` = 'Bocote Wine Bottle Stopper', `product_desc` = '
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on December 04, 2008, 06:19:06 am
Nefar:
check your jos_vm_product table for a ship_alone field
if it is ship_alone2, rename it to ship_alone
if it does not even exist, just create the ship_alone field

I'm assuming you used the uspsv5.sql file to create the field. This will be about the 3rd time I've re-uploaded the zip file due to that sql call not being correct. I'm not sure if I'm going crazy or if it is being cached somehow or what.  But that is most likely your problem.
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: nefar on December 04, 2008, 06:45:19 am
Yeah that was it, I was looking through the DB and saw the 2 a few minutes ago. I did copy the sql query out of the usps5.sql file and it does have the 2 in there ;)
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: Gaelen Hudson on December 06, 2008, 00:19:13 am
Um, any answer to if weight has to be specified in order to use this module?
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on December 06, 2008, 00:44:29 am
Weight of 1lb or greater has to be specified, yes.  USPS will not take a zero weight query.
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: tmedina on January 24, 2009, 01:37:45 am
I've followed the directions but still have an issue.  Do I still need to create a "Shipper" and "Shipping Rates" when using this mod?

I receive this message: Notice: We are unable to obtain any USPS shipping methods at this time, please choose from one of the following shipping methods.

Could this be due to issues with USPS production server?

I am using Joomla 1.5.9 and VM 1.1.3
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on January 24, 2009, 06:14:28 am
No shipper/shipper rates are used in the mod.

Have you put VM into debug mode to see what the error is?
-Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: tmedina on January 24, 2009, 18:17:39 pm
Just as I thought, an issue with USPS:

<Error>
   <Number>80040b1a</Number>
   <Description>Authorization failure.  You are not authorized to connect to this server.</Description>
   <Source>UspsCom::DoAuth</Source>
</Error>

I'll have to get in touch with them to correct this.

Thanks for pointing me in the right direction.  I'll update once resolved.
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: tmedina on January 27, 2009, 15:10:38 pm
I believe I have everything working now but receive the following errors:

<Error>
   <Number>80040b1a</Number>
   <Description>API Authorization failure. RateV3 is not a valid API name for this protocol.</Description>
   <Source>UspsCom::DoAuth</Source>
</Error>

Is this version compatible with the API changes made by USPS on 1/18/2009 ?
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on January 27, 2009, 17:41:19 pm
I don't think so. 
I just tested the module on my test website, and everything went through just fine.  I've attached a very simplified USPS rate requester for you to try.  Input your username/zip code and see if it works.

-Reggie

[attachment cleanup by admin]
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: tmedina on January 27, 2009, 21:26:14 pm
Thanks for that test code -- finally got USPS to help, they did not have me fully transitioned to the production servers -- that was why I had the errors.  Seems all good now.

Thanks again.  My own testing continues now iwth all these different modules, components, etc.
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: kevinmcli on February 13, 2009, 18:10:57 pm
Hi
    Thanks for the USPS v5 version first. I have downloaded/installed/configured it correctly and it works great!! Only one thing that I need your help:

In the configuration/international shipping options I basically checked everything in it. But in my checkout processes: step 2 of 4, I found that there are missing options. My case is that I have only one thing in my cart, it's weight is 1 lb (for testing use), the missing option is in the step is:
 
Priority Mail International Flat-Rate Box

Can anyone helps me with this?
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2009, 19:07:57 pm
Hi kevinmcli,
have you put your shop into debug mode to see what the XML result is? Basically, if that option was not returned by the USPS server, it will not be shown as a choice, and I have a suspicion that this may be the case.

Check the XML result and post your findings here please!
-Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: kevinmcli on February 14, 2009, 14:07:39 pm
Reggie

         Thanks for your prompt response!! I do open the "report error on frontend" and there is not any errors/XML listed on the checkout frontend.
         The only missing option on the frontend is "Priority Mail International Flat-Rate Box" and the other options seem working fine.
         I went into the uspsv5.php and tried to change the option to the exact naming words with the one on USPS' website. It's working fine now.

:)
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on February 14, 2009, 15:49:11 pm
Ah, right. I know there was a recent naming change on some of the services, I've not had time to look into it yet.  I think they added another service also? Not sure.
-Reggie
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on February 23, 2009, 18:53:29 pm
Updates 2009/02/23:
- download version vm_usps_v5.1.zip
- renamed "Flat Rate Box" to "Regular Flat Rate Box"
- added "Small Flat Rate Box"
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: PieceTimeLady on February 27, 2009, 01:58:42 am
Thank you so much for this upgrade - we do all of our shipping through the post office so you can understand our frustration when version 3 kept acting up.  Thank you.

Something interesting has started happening that I can't quite figure out.  The only services we want available are express, priority, and parcel post.  However, it does not seem that the quote for parcel post is accurate.  It seems to be quite a bit more expensive than it should be.  Any ideas?
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on February 27, 2009, 03:18:51 am
How bad off is it?
Can you give an example of weight, source/dest zip, pickup type, quoted price and actual price when shipped?
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: PieceTimeLady on February 28, 2009, 06:28:37 am
A common order for us is one package weighing 1.75 pounds shipped within our state.  When I ran a test order like this one the module returned Express Mail at 13.70, Priority Mail at 5.45, and Parcel Post at 7.73.  Priority Mail and Parcel Post generally do not differ by more than 50 cents which is why it caught my attention.  I checked the same package weight and zip codes on the post office website - Parcel Post should be 5.45.  For the short term, I've just unchecked parcel post as an option but it would be nice to offer it.   Thanks for your help.
Title: Re: USPSv5.0 - Bundled and Unbundled shipping
Post by: lowmips on February 28, 2009, 15:00:09 pm
That doesn't sound like a bug in the module itself.  You may want to contact USPS support with the information you have given here and ask why the web API is returning such different results.

-Reggie
Title: Re: USPSv5.1 - Bundled and Unbundled shipping
Post by: ariban99 on April 07, 2009, 03:43:47 am
Hi, I am new to virtuemart.  I selected 3 shipping options, express mail, priority mail and first class mail.  however now its only showing priority and express mail and it doesnt show first class mail.  this only happenes with local US shipments.
This problem first started when i added fedex shipping as well, after that i have this problem.  there is some conflict with USPS and fedex.
would module v5 fix this?  if not can you help me with this?
i am using usps module 4
i am running joomla 1.5 and virtuemart 1.1.2
my website is nonichaihealth.com
thank you
Title: Re: USPSv5.1 - Bundled and Unbundled shipping
Post by: lowmips on April 07, 2009, 14:05:14 pm
ariban99:
Try putting your shop in debug mode, and see what the XML request and reply return.  It may be that first class mail simply is not being returned as an option from the USPS server.

-Reggie
Title: Re: USPSv5.1 - Bundled and Unbundled shipping
Post by: kitesurfa on May 23, 2009, 09:08:59 am
Hey Folks

I wanted to tell you all how impressed I am with the help I received from Reggie. I needed something like this for the store I am building and would of liked to install the module but I just didn't have the time or expertize. I emailed Reggie, he got straight back to me and was really helpful!

He emailed me each step of the way and told me how long it would take, he set up UPSv2 and debugged it and made it all work, he set up my USPS module and he did it all in 2 hours and charged me a really competitive rate.

He was super helpful and I highly recommend his services!

Thanks Reggie!
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: MAD King on June 14, 2009, 00:43:41 am
There is a error in the ps_shipping.php

If you try to add a new shipper and save it, only the first letter is saving.

To solve this problem:

Quote
Go to: administrator/components/com_virtuemart/classes/ps_shipping.php
change the WRONG line 113 and 138 ($fields = array( 'shipping_carrier_name' => vmGet($d["shipping_carrier_name"]),) with this line:
$fields = array( 'shipping_carrier_name' => vmGet($d, 'shipping_carrier_name'),

Thanx to Massimo from http://forum.vmitalia.net/

PS: May you can update your package?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 14, 2009, 04:30:31 am
When I get to the shipping module of cart, I get the following error:

500 - JDatabaseMySQL::query: 1146 - Table 'off0821305281858.jos_vm_product_restrictions' doesn't exist SQL=SELECT * FROM `jos_vm_product_restrictions` WHERE `product_id`=1

You may not be able to visit this page because of:

   1. an out-of-date bookmark/favourite
   2. a search engine that has an out-of-date listing for this site
   3. a mistyped address
   4. you have no access to this page
   5. The requested resource was not found.
   6. An error has occurred while processing your request.

Please try one of the following pages:

    * Home Page

If difficulties persist, please contact the System Administrator of this site.

JDatabaseMySQL::query: 1146 - Table 'off0821305281858.jos_vm_product_restrictions' doesn't exist SQL=SELECT * FROM `jos_vm_product_restrictions` WHERE `product_id`=1

Can anyone help???
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 14, 2009, 07:06:47 am
There is a error in the ps_shipping.php

If you try to add a new shipper and save it, only the first letter is saving.

To solve this problem:

Quote
Go to: administrator/components/com_virtuemart/classes/ps_shipping.php
change the WRONG line 113 and 138 ($fields = array( 'shipping_carrier_name' => vmGet($d["shipping_carrier_name"]),) with this line:
$fields = array( 'shipping_carrier_name' => vmGet($d, 'shipping_carrier_name'),

Thanx to Massimo from http://forum.vmitalia.net/

PS: May you can update your package?

Hi,
Did you post to the right thread? The ps_shipping.php file is not touched in my "hack".

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 14, 2009, 07:08:42 am
When I get to the shipping module of cart, I get the following error:

500 - JDatabaseMySQL::query: 1146 - Table 'off0821305281858.jos_vm_product_restrictions' doesn't exist SQL=SELECT * FROM `jos_vm_product_restrictions` WHERE `product_id`=1

You may not be able to visit this page because of:

   1. an out-of-date bookmark/favourite
   2. a search engine that has an out-of-date listing for this site
   3. a mistyped address
   4. you have no access to this page
   5. The requested resource was not found.
   6. An error has occurred while processing your request.

Please try one of the following pages:

    * Home Page

If difficulties persist, please contact the System Administrator of this site.

JDatabaseMySQL::query: 1146 - Table 'off0821305281858.jos_vm_product_restrictions' doesn't exist SQL=SELECT * FROM `jos_vm_product_restrictions` WHERE `product_id`=1

Can anyone help???

Hi,
Shipping restrictions is a part of my UPSv2 mod, not the USPSv5 mod.  I'm assuming you are using both.  Be sure you've run all the necessary UPSv2 SQL to update your database.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 15, 2009, 17:13:22 pm
I installed the UPS module but do not have it turned on. 
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 15, 2009, 17:25:37 pm
Hi,
Did you make sure you updated the necessary tables for the UPSv2 install? This appears to me to be the issue.  Even though you have the module turned off, some of the files modified are loaded when using the back end administrator web page.  This will cause the errors you are seeing.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 15, 2009, 17:30:32 pm
How do I run it???
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 15, 2009, 17:33:50 pm
copy and paste everything from the upsv2.sql file into your phpMyAdmin "sql query" window.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 16, 2009, 02:35:46 am
Could you kindly walk me through the steps with detailed directions as I am not that advanced on PHP?

Thank you very much in advance
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 16, 2009, 03:00:46 am
DISREGARD!  I got it figured out... I just could not find myphpadmin... but did.

My site is up and running!

www.officialinvestigations.com
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 16, 2009, 03:46:00 am
I am not getting a quote for a medium size box even though I have that function turned on...  I have v5.2 installed.

I had my weights entered as 8.0000 ounces and when it was sending to the server, it was converting it to 50 pounds, so I switched back to 1 pound

Here is what I am getting in XML from the USPS in Debug

<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>45239</ZipOrigination><ZipDestination>45231</ZipDestination><Pounds>1</Pounds><Ounces>0</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>1</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday Guarantee</MailService><Rate>27.50</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService><Rate>30.00</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail Hold For Pickup</MailService><Rate>15.00</Rate></Postage><Postage CLASSID="27"><MailService>Express Mail Flat-Rate Envelope Hold For Pickup</MailService><Rate>17.50</Rate></Postage><Postage CLASSID="3"><MailService>Express Mail</MailService><Rate>15.00</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail Flat-Rate Envelope</MailService><Rate>17.50</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail Flat-Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail Small Flat-Rate Box</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail Regular/Medium Flat-Rate Boxes</MailService><Rate>10.35</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail Large Flat-Rate Box</MailService><Rate>13.95</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="5"><MailService>Bound Printed Matter</MailService><Rate>2.33</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail</MailService><Rate>2.38</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>

I re-ran it again and got the following with the medium flat rate box turned on:

<Package ID="0"><Service>All</Service><ZipOrigination>45239</ZipOrigination><ZipDestination>45231</ZipDestination><Pounds>1</Pounds><Ounces>0</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV3Request>

<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>45239</ZipOrigination><ZipDestination>45231</ZipDestination><Pounds>1</Pounds><Ounces>0</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>1</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday Guarantee</MailService><Rate>27.50</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService><Rate>30.00</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail Hold For Pickup</MailService><Rate>15.00</Rate></Postage><Postage CLASSID="27"><MailService>Express Mail Flat-Rate Envelope Hold For Pickup</MailService><Rate>17.50</Rate></Postage><Postage CLASSID="3"><MailService>Express Mail</MailService><Rate>15.00</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail Flat-Rate Envelope</MailService><Rate>17.50</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail Flat-Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail Small Flat-Rate Box</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail Regular/Medium Flat-Rate Boxes</MailService><Rate>10.35</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail Large Flat-Rate Box</MailService><Rate>13.95</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="5"><MailService>Bound Printed Matter</MailService><Rate>2.33</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail</MailService><Rate>2.38</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>

But I only see Parcel Post, Regular Priority Mail and Express Mail displayed... The regular/medium flat rate box information is not showing as an option even though it is turned ON.

Also, there is no option to turn on the SMALL FLAT RATE BOX
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 16, 2009, 04:04:53 am
Hi,
Here's how it works:
1) The module asks USPS to reply with all available rates for a given weight and source/dest zip.
2) USPS server replies with all available rates
3) The module displays only those rates that were returned AND match up with the list of checked services in the administration

So, even though you've checked a certain service in the administration back end, that does not guarantee that a rate will be returned.

However, looking at your XML, a "medium" box is listed in the same service as "regular":
Quote
<MailService>Priority Mail Regular/Medium Flat-Rate Boxes</MailService><Rate>10.35</Rate>
I'm not up to speed on any changes in verbage on USPS's end, but it appears that they are one and the same.  Perhaps change the USPS_SHIP8_TEXT line in uspsv5.cfg.php and uspsv5.php to reflect this fact?

As for the 8 ounces/50 lbs thing, that is on my TODO list of fixes.  For now leave all sub-pound items at 1lb.

-Reggie

edit: I see you're updating your post =)
I'll look at this again tomorrow.

edit2: Yes, I'm quite sure that there has at some point been another change in verbage.  The USPS modules use a textual comparison of the MailService names rather than a numeric comparison of the CLASSID to determine if the returned rate matches one of your selected rates.  So, anytime USPS changes the MailService text, the module will not recognize it.  This was the original behavior I built upon.

Therefore, change the necessary text in the config file as well as in the main file's write_configuration() function to reflect this change.  I'll update my module and post the update soon.

If anyone would like to underwrite changing the way USPS determines returned results please contact me.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 16, 2009, 04:25:53 am
Your recommendation to change the code, fixed the issue!!!
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 16, 2009, 04:28:11 am
In your next update, please add the small flat rate box to the possible options as it is not listed now... or could you kindly give me the code and I will add it.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 16, 2009, 04:29:07 am
Great. See my previous post for an explanation why.  I'd like to change the way the module works, but it would take time. It's on my (long) TODO list but an underwriter would push it to the top of my list.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 16, 2009, 04:32:37 am
Quote
In your next update, please add the small flat rate box to the possible options as it is not listed now... or could you kindly give me the code and I will add it.
Small flat rate boxes are already included, and is actually listed in your XML reply. Something sounds broken.  I'll have to look at it another time. Signing off for the night.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 16, 2009, 04:35:39 am
Thanks... it loaded it correctly once... Now, it is not listing it again.

Hmmmm Not sure what is going on.

Have a great nite and thanks for your help!
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 16, 2009, 18:05:24 pm
Hi,
Download the new archive and replace all your files with the new ones. I looked into the small flat-rate box issue and found the problem (carbon-based error).  It should now show up as an option in the config.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 16, 2009, 23:52:48 pm
I just re-downloaded 5.2 and the small flat rate box is not showing up yet.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 17, 2009, 02:02:25 am
I've tested by installing on a fresh VM1.1.3, works just fine on my end. Are you sure you replaced all files and re-ran the config?

-Reggie

edit: it's version 5.3 now, are you sure you got the new download?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: abycats312 on June 17, 2009, 03:34:48 am
Reggie,

I see in earlier posts that the USPS does not return rates for less than 1 pound. Well, all of my products are under 1 pound--anywhere from 2oz.-8oz. soaps and bath products. I configured my own Shipper with first class rates for these small weights and enabled the USPSv3 module that came with VM download. I'm getting some priority mail options returned, but not all flat rate box options. I disabled flat rate priority envelopes and all express mail, but they still come up. Basically, the old module isn't working very well.

My question to you before I go through the v5 install: Since v5 returns inaccurate rates for my small sized products (i.e. 8oz comes back with 50 lb. rates according to earlier post), do you think that with my having configured my own first class rates for small orders, I will get accurate priority mail rates for customers who would like that option and for larger orders that first class won't handle?

And hope of all hopes, please correct me if I'm wrong and your module/USPS will return accurate first class rates for small orders under 1 lb.

Thank you for all your help here,
Cynthia, using VM 1.1.3
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: official on June 17, 2009, 16:21:12 pm
I can't find the link to 5.3 on your website (lowmips).  Can you provide the link?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 17, 2009, 16:51:43 pm
I can't find the link to 5.3 on your website (lowmips).  Can you provide the link?
Hi,
I have not added it to my website yet (will this morning). The download is in the first post of this thread.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 17, 2009, 16:56:18 pm
Reggie,

I see in earlier posts that the USPS does not return rates for less than 1 pound. Well, all of my products are under 1 pound--anywhere from 2oz.-8oz. soaps and bath products. I configured my own Shipper with first class rates for these small weights and enabled the USPSv3 module that came with VM download. I'm getting some priority mail options returned, but not all flat rate box options. I disabled flat rate priority envelopes and all express mail, but they still come up. Basically, the old module isn't working very well.

My question to you before I go through the v5 install: Since v5 returns inaccurate rates for my small sized products (i.e. 8oz comes back with 50 lb. rates according to earlier post), do you think that with my having configured my own first class rates for small orders, I will get accurate priority mail rates for customers who would like that option and for larger orders that first class won't handle?

And hope of all hopes, please correct me if I'm wrong and your module/USPS will return accurate first class rates for small orders under 1 lb.

Thank you for all your help here,
Cynthia, using VM 1.1.3

I think you'll need to fiddle with rates often to ensure accurate results.  Rates over time tend to fluctuate.  However, I do not have real-world experience with it. You may find a comfortable average to use.

I am aware of the issue with sub-pound (or kg) items being converted incorrectly, I just need time to fix it.  Check back here for newer versions of the module in which this problem will be fixed.  I'd love to make it top priority but I must focus on paying work for now.  If anyone would like to underwrite the fix, contact me please.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: abycats312 on June 18, 2009, 21:29:42 pm
Trying to install v5.3 to do some testing on my site.

When I try to install the zipped download, I get the error: "Error: Could not find an XML setup file in the package."

If I extract and try to upload file by file, I get the error: "Unknown Archive Type"

I read the "readme" file, but don't see anything there that would help with this, my technical know-how being very limited, learning as I go.

What am I doing wrong?

Cynthia
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 18, 2009, 22:38:08 pm
Hi,
Shipping modules are "drop in" modules. You copy files to the filesystem.

My "updates" require even more hands-on.  You need to manually place all files and update the database as indicated in the read me file.

If you need my professional services for the installation of the module, I can do so for a small fee.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: abycats312 on June 19, 2009, 03:02:12 am
I got it. Thanks!

The only thing I didn't do was "add a new field called 'ship_alone' to the 'jos_vm_product' table. See uspsv5.sql for SQL query." I couldn't find any jos_vm_product table and SQL is beyond me. I went ahead and tried the module since I don't need to ship anything alone. Things look good.

One problem: When I put a large number of items in my cart, the small flat rate box option still appears. Clearly, weights are being read, but product dimensions are not.

Any fix on this? (I assume it's not related to my leaving out the "add a new field...." above. If, though, that is the problem, sorry...sheepish grin.)

Cynthia
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on June 19, 2009, 03:04:16 am
There is currently no support for product dimensions.   I've added some basic dimensional support in my UPS module, and could use similar code in the USPS module.  Of course, I'll need someone to underwrite the update.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on July 04, 2009, 18:30:53 pm
Updates 2009/07/04:
- download version vm_usps_v5.2009.07.04.zip
- use with VirtueMart v1.1.3+
- **BUGFIX** - Fixed a bug where sub-pound (or kg) item weights were being incorrectly converted.
- added new tabs in the module configuration.  The "Usage" tab displays usage information.  The "Donate" tab displays recent donators and their websites.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: benfaust on July 29, 2009, 21:21:11 pm
Sorry if I'm overlooking an obvious link... But where can the latest version of the USPS plugin be found? It stopped working when we moved to a new host and changed the domain, and while USPS says everything's working on their side, I suspect it's them (I've re-checked everything over and over, and even reinstalled the latest version I could find).

Has anyone else encountered a similar problem?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on July 29, 2009, 21:33:10 pm
The latest version of my USPSv5 module is downloadable from the first post in this thread, or on my website.  There is also Chaz's USPSv4 you could try, I believe it's under the VM1.0.x forum.

Any specific error messages?
-Reggie
Title: Disqualified shipping options?
Post by: Morcorp on August 14, 2009, 00:09:41 am
This is a great module. Thank you.
Two questions;

1. Is there any way to have a shipping option disqualified?
For example; I have a product which fits into a regular/medium flat rate box. Two of the items will not fit and would have to ship in the large box or priority.
Yet at check out, the regular/medium option still shows as an option.

2. Anyway to promote free shipping on an item? I have tried putting the weight at zero with no luck. Virtuemart request the user to select a shipping method even though none are displayed?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on August 14, 2009, 00:23:33 am
Hi,
1) As the module is currently coded, there's no way to designate certain products ship in certain packages

2) As the module is currently coded, there's no way to designate free shipping on a product.  However, I have a solution for this in my UPSv2 module (shipping modifiers), which I could port over to the USPSv5 module for a fee.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Morcorp on August 14, 2009, 01:16:29 am
1.) I guess I was thinking the dimensions of the product would be referenced to the size of the flat rate boxes. Adding up sq.inches for multiple items.  Oh well.

2.) Kinda new at this, I'm not sure how that would work. Keep two USPS modules working at the same time? I'll see if I can pm you re price

Thanks Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: abicomp on September 10, 2009, 01:15:37 am
I have dled and installed the uspsv5 and still don't see anywhere to set an item as ship alone.  everything gets put in one box for the same price...one item or 5.  I followed the instructions in the readme was there something else that needed to be done???
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on September 12, 2009, 22:19:33 pm
abicomp:
The "ship alone" field should be available on the product setup page, under "shipping" tab.  If you do not see this setting, you may have missed copying a file. 

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on September 23, 2009, 00:28:18 am
First post of this thread only has the 5.2 download now, or am I missing something?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on September 23, 2009, 00:45:32 am
5.2009.07.04 is the latest version.
-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on September 23, 2009, 00:52:54 am
Sorry, my mistake. Saw the 5.2....and didn't look at the rest  :-[
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on September 23, 2009, 00:54:06 am
No worries. I changed the versioning so that the "latest" will always be the later date.  I feel that's easier to keep up with than 5.1 5.2 5.3 etc.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on October 06, 2009, 19:30:31 pm
Updates 2009/10/03:
- download version vm_usps_v5.2009.10.03.zip
- use with VirtueMart v1.1.3+
- new feature: additional upcharge per service level
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Morcorp on November 02, 2009, 21:53:24 pm
Reggi,
Great update, vm_usps_v5.2009.10.03. Thank you!
One question; after the update, in the shipping list, the version is still showing as 5.2009.07.04.
It is clearly the new version though, because I can see the upcharge column in the shipping options.
Any thoughts?

Also, will a negative value work in the upcharge field?

Thanks again. Cheers!
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on November 02, 2009, 21:56:07 pm
Be sure you've copied over the uspsv5.ini file.  It holds the version info.
Yes, negative values should work.

Thanks
-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 03, 2010, 21:42:52 pm
*********** POLL **********

Would you like to see the USPSv5, UPSv2, and FedExv2 modules combined into one monolithic module?

Pro's:
- Modules will work together, "out of the box"
- Features for one carrier could more easily be ported to another carrier

Con's:
- Larger archive size, could possibly lead to rehosting of the file
- You'll need to check the documentation to see if a feature is supported for the carrier you wish to use


Here's the poll (http://www.lowmips.com/joomla/component/apoll/apoll/1-i-would-like-to-see-upsv2-uspsv5-and-fedexv2-combined-into-one-module), for anyone interested.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on February 13, 2010, 15:47:45 pm
I have updated to the latest USPS 5 shipping module (5.2009.10.03) in a Joomla 1.5 install with VM 1.1.4. I have a product that is 9 x 12 x .25 in size and 15.8 oz. in weight. I have 'Priority Mail International Flat-Rate Envelope' set as an option. I am getting the rate returned from the XML post when I have 'debug' turned on:

<Service ID="8"><Pounds>1</Pounds><Ounces>2</Ounces><MailType>Package</MailType><Country>ENGLAND</Country><Postage>13.45</Postage><SvcCommitments>6 - 10 Days</SvcCommitments><SvcDescription>Priority Mail International Flat Rate Envelope</SvcDescription><MaxDimensions>USPS Supplied Envelope: 9 1/2" x 12 1/2". Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service>

However the rate is not appearing as an option on checkout even though it is selected in the shipping module. What's up?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2010, 16:33:51 pm
It looks like another service name change was made.  Flat Rate vs Flat-Rate.

In USPSv5.cfg.php, change:
Code: [Select]
define ('USPS_INTL7_TEXT', 'Priority Mail International Flat-Rate Envelope');to:
Code: [Select]
define ('USPS_INTL7_TEXT', 'Priority Mail International Flat Rate Envelope');
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on February 16, 2010, 16:32:37 pm
I think that I have found another problem. I have made the changes and I am now getting the option of 'flat rate envelope' both for domestic and international. However I have a product that is 15.8" x 14.75" x .13" and when I go to checkout it lets me select 'flat rate envelope' as an option even thought that size is clearly too large for a 'flat rate envelope'.

Here is the XML Post from debug:

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<Package ID="0"><Service>All</Service><ZipOrigination>80524</ZipOrigination><ZipDestination>80524</ZipDestination><Pounds>1</Pounds><Ounces>9</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV3Request>

Here is the XML Result:

<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>80524</ZipOrigination><ZipDestination>80524</ZipDestination><Pounds>1</Pounds><Ounces>9</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>1</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday Guarantee</MailService><Rate>29.55</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="3"><MailService>Express Mail</MailService><Rate>17.05</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail Flat Rate Envelope</MailService><Rate>18.30</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>5.00</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail Flat Rate Envelope</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail Small Flat Rate Box</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail Medium Flat Rate Box</MailService><Rate>10.70</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail Large Flat Rate Box</MailService><Rate>14.50</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="5"><MailService>Bound Printed Matter</MailService><Rate>2.43</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail</MailService><Rate>2.77</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.63</Rate></Postage></Package></RateV3Response>

So why is the size posted as 'Regular' in the XML post and not the actual size?

Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 16, 2010, 16:36:59 pm
The module currently does not consider L/W/H.  The package size is set in the module configuration.  Basically, you're telling VirtueMart to use one package size (SMALL or REGULAR or LARGE) for all items in the shop.

Basic modules have basic features ;)
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on February 16, 2010, 16:40:42 pm
So how do I keep someone from selecting a shipping that isn't possible? The only 'shipping restrictions' that appear in the product configuration are for FedEx.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 16, 2010, 16:44:21 pm
As it is coded right now, you can't.  It's silly that an envelope is shown for a 1lb+ item,  that is a fault in the API. 

If you need to declare different package types, or even L/W/H for products, the module will need to be updated to support this.

-Reggie

ps. remove your user credentials from the XML info you posted.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on February 16, 2010, 16:49:26 pm
Thanks for the tip I missed that.

So is there a USPS module for VirtueMart out there that will solve this (commercial or other)? Unfortunately this is a really big problem as there are quite a few products that I am shipping overseas that a customer is going to select 'flat rate envelope' for and I am going to take a serious beating on shipping costs. If I eliminate it as an option, then overseas customers aren't going to complete checkout because of the high cost of shipping products that would qualify as 'flat rate envelope' shipping.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 16, 2010, 16:54:48 pm
I do not know of a USPS module for VM that handles this (I have not looked either). I know there is a version 4 , which my original module was based on, but do not know the current feature set:
http://forum.virtuemart.net/index.php?topic=40284.msg127023#msg127023

I would be happy to update my module for you, if needed.  You may PM or email me to discuss.
-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: jbavington on February 17, 2010, 03:44:47 am
Great module!  I'm trying to upgrade from USPS v4 by Chaz Mezan, Corey Koltz.

It is for this site:  http://www.seedstrust.com/joomla

The majority of products are seed packages with a weight set to 0.01 pounds.  

The module returns USPS v5 results fine for US addresses, but for Canadian addresses, I'm only getting "USPS Priority Mail International" with a shipping charge of over $20 ($3 handling fee).  Not many happy Canadians with these rates.  

International shipping methods set to "Yes" are:

Global Express Guaranteed
...and everything from "Express Mail International (EMS)" to the end, excluding "Priority Mail International Large Flat-Rate Box".

I'm curious as to why it's not returning any flat-rate envelope options.  Thanks for any help you can provide.

Jason
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 17, 2010, 03:55:43 am
Jason,
See this post:
http://forum.virtuemart.net/index.php?topic=46784.msg221679#msg221679

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: jbavington on February 17, 2010, 16:09:11 pm
Well would ya look at that!  I recall seeing that post in this thread, but my brain reversed the "to do" and when I looked at the config, I thought the change was done. 

Thanks for your help and an excellent module!

Jason
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 17, 2010, 16:19:38 pm
No Problem.

I've been trying to find the "official" list of service type names, seeing as they have changed yet again.  I wanted to be 100% sure I have made all the necessary service name updates.  But even their official documentation seems off..In their API description, the names are different than in the example given...argh!

I'd really like to change this module to use the classid/serviceid instead of the service name as the basis for service matching.
Title: Re: USPSv5 - work with the cartrates plugin?
Post by: SparksArts on February 20, 2010, 02:18:46 am
Reggie,

I love your Cart Rates http://www.lowmips.com/joomla-cartrates/ (http://www.lowmips.com/joomla-cartrates/) plugin that allows customers to see shipping costs before the checkout process. This is BIG in avoiding shopping cart abandonment. Not being able to figure out the shipping cost before creating a user account is a major annoyance for online buyers. But currently your Cart Rates plugin only works with your UPSv2.0 shipping module.

I would like to see the Cart Rates plugin work with USPS as well as UPS, but can't talk my clients into paying your full development expense. Perhaps if a group of users would commit to donating a portion of the development cost we could get it done and available to all.

Would you consider this option? How much would it cost?

How about the rest of you? What other users are willing to donate a manageable portion of the cost to have this option available? Please chime in with a post to show your support!

Thanks!
Richard
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on February 20, 2010, 02:37:33 am
The module needs a revamp in order to properly work with the cartRates plugin. I'd also want to add more options to the plugin itself (turn cart rates for UPSv2 off/on, turn USPSv5 off/on).  It will require several hours development and testing time.  If others are interested in chipping in, shoot me an email.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: aravot on March 02, 2010, 01:04:42 am
It will require several hours development and testing time.  If others are interested in chipping in, shoot me an email.

Can you provide a quote.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: groosh on March 02, 2010, 01:18:34 am
Hi, I recently upgraded to VM 1.1.4 but my international shipping has stopped working and I'm not finding a solution in the forums.  Here is some data that may help...

Debug: Starting Shipping module: uspsv5
Debug: added bundled item: Brake rotor, rear, 69-83 911 and 911SC-xdrilled
Debug: Calculating international shipping.

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=IntlRate&XML=<IntlRateRequest USERID="xxxxxx" PASSWORD="xxxxxx"><Package ID="0"><Pounds>15</Pounds><Ounces>5</Ounces><MailType>Package</MailType><Country>Germany</Country></Package></IntlRateRequest>

Any ideas what may be going wrong?   Thanks!
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 02, 2010, 01:52:20 am
At first pass, the XML request looks fine.  Are you getting an error?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: groosh on March 02, 2010, 02:03:09 am
I'm not getting an error but simply getting a blank return for international shipping.  The shipping page simply says "Please select your shipping method!" but there are no choices when using an international address.  When you us a USA domestic address, the UPS module is working as it should with no USPS option. 

I have USPSv5 5.2009.07.04 configured for international and checked "Express Mail International (EMS)" only. 

Thanks!
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 02, 2010, 02:05:15 am
That's probably your issue.  As a test, check all available services.  I bet something will show ;)
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: groosh on March 02, 2010, 02:08:07 am
Thanks for the quick replies, hopefully something will turn up!
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: groosh on March 02, 2010, 02:33:58 am
Hey Reggie, quick update... the USPS module that comes with VM works.  It returns $185 - Yikes! I get many complaints about over charges but that's another topic. 

Additionally, I forgot to mention that the USPSv5 seems like it is bombing out because there is a debug after the XML posts looking for "standard shipping" which is not configured. 
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 02, 2010, 03:18:36 am
If there's anymore debug info that comes up, please post it.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: SparksArts on March 06, 2010, 02:01:22 am
It will require several hours development and testing time.  If others are interested in chipping in, shoot me an email.

Hey, Reggie. Can you post an estimate for developing cartrates to work with USPS plugin? There are some people interested in helping, but need an idea of the investment we're considering.

Thanks!
Richard
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 06, 2010, 15:07:05 pm
I'll PM you the quote.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 07, 2010, 15:36:04 pm

Can you provide a quote.


Hi,
I'm estimating it will require about 5-6 hours time to update the module and the plugin to allow for in-cart shipping estimates.  I currently charge $45USD/hr.  I want to add several options to the cart-rates plugin, such as toggle on/off USPS/UPS rates, ordering, and possibly some templating options (althought I might leave that one alone and let the users handle it).

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: aravot on March 07, 2010, 22:03:45 pm
So approximately $225 to $270, I will pay for an hour $45, anyone else interested please reply.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: SparksArts on March 08, 2010, 19:20:30 pm
Count me in for 1 hour / $45.00.

Anyone else willing to pitch in for this project?

Check out the cartrates plugin and consider how valuable this is. If you use USPS shipping, this will allow you to show customers the available shipping methods and rates before they checkout. Not knowing how much shipping will cost is one of the big reasons people don't buy online. Who wants to add an item to the cart and go through adding your shipping address, etc just to find out how much shipping costs? This solves that problem and makes your e-commerce site more user-friendly and more likely for visitors to become customers.

Please consider a contribution to get this developed!
Richard
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on March 16, 2010, 23:10:25 pm
So how do you tell when the USPS has change their API? I am now not getting the option for Priority Mail International, International Flat Rate Envelope, or First Class Mail International. Whereas before I did. Is this a hyphen issue again?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 16, 2010, 23:54:13 pm
Yes, they renamed all but one "flat-rate" service as "flat rate".
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on March 17, 2010, 00:00:32 am
Okay, I am confused. So how does this affect Priority Mail International, or First Class Mail International and which is the one that they didn't change and how can I tell without having to pester you all of the time? I probably just went over my daily question quota ;-)
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 17, 2010, 00:03:58 am
Try using the version attached to this post. I recently updated it with the new service names that I could find.  You'll want to run through and save the config to write the new names.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: quickturn on March 25, 2010, 01:06:52 am
I get the following error (although my username and password are correct):

Error: <span class="message">USPS was not able to process the Shipping Rate Request.</span><br/>Error Code: 80040b1a<br/>Error Description: Authorization failure. Perhaps username and/or password is incorrect.<br/>
Notice: We are unable to obtain any USPS shipping methods at this time, please choose from one of the following shipping methods.


Any ideas?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: quickturn on March 25, 2010, 01:09:00 am
Count me in for 1 hour / $45.00.

Anyone else willing to pitch in for this project?

Check out the cartrates plugin and consider how valuable this is. If you use USPS shipping, this will allow you to show customers the available shipping methods and rates before they checkout. Not knowing how much shipping will cost is one of the big reasons people don't buy online. Who wants to add an item to the cart and go through adding your shipping address, etc just to find out how much shipping costs? This solves that problem and makes your e-commerce site more user-friendly and more likely for visitors to become customers.

Please consider a contribution to get this developed!
Richard

I'll pay for 2 hours to have cartrates for USPS. LOVE it for UPS.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 25, 2010, 01:14:50 am
I get the following error (although my username and password are correct):

Error: <span class="message">USPS was not able to process the Shipping Rate Request.</span><br/>Error Code: 80040b1a<br/>Error Description: Authorization failure. Perhaps username and/or password is incorrect.<br/>
Notice: We are unable to obtain any USPS shipping methods at this time, please choose from one of the following shipping methods.

Any ideas?

You might want to contact USPS tech services to verify or maybe change the password.  Other than that, no idea. Looks like a system issue, not a module issue.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 25, 2010, 01:15:46 am
I'll pay for 2 hours to have cartrates for USPS. LOVE it for UPS.

If we can get a few more people interested, I think we'll have enough.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: quickturn on March 25, 2010, 01:23:34 am
I get the following error (although my username and password are correct):

Error: <span class="message">USPS was not able to process the Shipping Rate Request.</span><br/>Error Code: 80040b1a<br/>Error Description: Authorization failure. Perhaps username and/or password is incorrect.<br/>
Notice: We are unable to obtain any USPS shipping methods at this time, please choose from one of the following shipping methods.

Any ideas?

You might want to contact USPS tech services to verify or maybe change the password.  Other than that, no idea. Looks like a system issue, not a module issue.

Is it just the regular login at www.usps.com or the un/pw details from the usps web tools section? I tried both and neither worth. I can log into usps.com fine with the first un/pw combination though.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 25, 2010, 01:49:52 am
USPS gives you a special username/password for the online tools.  Mine are both 12 character alphanumeric strings, maybe that helps.  I signed up years ago, so I can't give you any detailed instructions.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: quickturn on March 26, 2010, 16:02:33 pm
Reggie - you were correct. USPS login needs to be specifically for Web Tools, not regular USPS. Also, you need to call and have them activate your account from testing to production. Works fine now.

Once again, thanks for your help and wonderful mods.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: quickturn on March 31, 2010, 21:14:36 pm
Where can I style the way this is displayed? like adding a page break so they align underneath one another and not off to the side?

Also - has anyone else agreed to chip in and get cart rates for USPS?
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on March 31, 2010, 21:17:18 pm
The default styling IS one under another, at least on a vanilla install.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: quickturn on April 01, 2010, 02:14:06 am
Damn, must be something with my template. I'll figure it out.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: aravot on April 01, 2010, 19:21:56 pm
Please chipin for the following addon http://forum.virtuemart.net/index.php?topic=46784.msg222689#msg222689
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on April 01, 2010, 19:48:37 pm
FYI when my project plate is cleared I will go ahead and do the revamp, and we'll see where the funding stands after.  Maybe I can get it done in just a few hours.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on April 07, 2010, 02:35:46 am
Just an update... I have the module revamp pretty much completed.  I added mod_virtuemart_currencies support while I was at it. I just need to create a Cart Rates plugin specifically for USPSv5 now.  That shouldn't take long, hopefully I'll get to that tomorrow.

-Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: aravot on April 07, 2010, 05:58:07 am
Can you combine USPS, FedEx and UPS Cart Rates plugin into one plugin.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on April 07, 2010, 16:58:35 pm
That's a good idea, but for right now I will just create cart-rates for USPSv5.  That way, users who only use this module can quickly use the plugin.

For USPS/UPS/FedEx combined cart-rates, I would like to offer various options, such as toggle each service off/on, show only "ground" rates, and maybe some layout options.  This will take a little longer to do.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: aravot on April 07, 2010, 19:12:19 pm
For USPS/UPS/FedEx combined cart-rates, I would like to offer various options, such as toggle each service off/on, show only "ground" rates, and maybe some layout options.  This will take a little longer to do.

When you start on this let me know will pay for another hour of development time.
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: lowmips on April 08, 2010, 02:10:16 am
********* Updated Module Notice ************

OK, the updated module is complete! It has the full revamp, which places it in closer range of a unified shipping module, allows for rate caching, mod_virtuemart_currency support. Also, the "cart rates" plugin for this module is complete, also with mod_virtuemart_currency support.

If you want to donate and obtain a copy, please email me.  Once my time has been compensated for, I'll release everything publicly!

Thanks,
Reggie

Donations Received: 2
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 24, 2010, 07:44:34 am
the priority mail medium flat rate box wont show up. The small and the large are ok. What could be the problem? (yes, its ticked on)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 24, 2010, 15:47:00 pm
Hmm maybe they didn't change that one's name? Look in uspsv5.php, around line 837.

Change:
Code: [Select]
"USPS_SHIP8_TEXT" => "Priority Mail Regular/Medium Flat Rate Boxes",
to:
Code: [Select]
"USPS_SHIP8_TEXT" => "Priority Mail Regular/Medium Flat-Rate Boxes",
and let me know if that fixes it.  Be sure to re-save your config after this change.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 24, 2010, 21:07:05 pm
the name of the medium box has changed to the one with the dash after the changes according to your previous post.
Otherwise the debug brings up the following results:

Debug: Starting Shipping module: uspsv5
Debug: added bundled item: Custom denim jacket
Debug: Calculating domestic shipping.

XML Post:
what so ever (deleted b/c the pw and id)

XML Result:
<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>54901</ZipOrigination><ZipDestination>43123</ZipDestination><Pounds>2</Pounds><Ounces>1</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>4</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday Guarantee</MailService><Rate>43.70</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail Hold For Pickup</MailService><Rate>31.20</Rate></Postage><Postage CLASSID="27"><MailService>Express Mail Flat Rate Envelope Hold For Pickup</MailService><Rate>18.30</Rate></Postage><Postage CLASSID="3"><MailService>Express Mail</MailService><Rate>31.20</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail Flat Rate Envelope</MailService><Rate>18.30</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>7.50</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail Flat Rate Envelope</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail Small Flat Rate Box</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail Medium Flat Rate Box</MailService><Rate>10.70</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail Large Flat Rate Box</MailService><Rate>14.50</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post</MailService><Rate>7.05</Rate></Postage><Postage CLASSID="5"><MailService>Bound Printed Matter</MailService><Rate>2.71</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail</MailService><Rate>3.16</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>3.00</Rate></Postage></Package></RateV3Response>

[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 24, 2010, 23:21:25 pm
From the XML results you posted, it should actually be named:
Code: [Select]
Priority Mail Medium Flat Rate Box
I'd really like to revamp the module to use the classid's (which should rarely change) instead of the service names (which seem to change every now and then).
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 25, 2010, 02:31:14 am
anyhow, it returns the right price, but not shown on the frontend

I am getting sick and tired of this shipping thing, which is going on since almost a month now. Could someone please help me to solve my case?

Everything works fine with the uspsv4.2 on my other site, I just got stuck with the v5.


By the way Reggie, imho the community would appreciate if you could fix the fedex, ups, usps and dhl shipping (all-in-one-fix). Don't expect donations, just post a link to your site, and sell it for couple bucks. Those who need it, they will buy it, just like me, but not for $45.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2010, 04:00:04 am
Did you make the change like I last suggested?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 25, 2010, 07:29:39 am
sure i did, the changes were made in administrator/components/com_virtuemart/classes/shipping/uspsv5.php.
As I say, and as on the ss is to see in my previous post, on the backend the name was replaced with the dashed one after the change, the xml response brings up the right price with the wrong(?) name, on the front-end the medium box still not showing up

debug mode - xml response:

<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>54901</ZipOrigination><ZipDestination>43123</ZipDestination><Pounds>2</Pounds><Ounces>1</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>4</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday Guarantee</MailService><Rate>43.70</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail Hold For Pickup</MailService><Rate>31.20</Rate></Postage><Postage CLASSID="27"><MailService>Express Mail Flat Rate Envelope Hold For Pickup</MailService><Rate>18.30</Rate></Postage><Postage CLASSID="3"><MailService>Express Mail</MailService><Rate>31.20</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail Flat Rate Envelope</MailService><Rate>18.30</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>7.50</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail Flat Rate Envelope</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail Small Flat Rate Box</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail Medium Flat Rate Box</MailService><Rate>10.70</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail Large Flat Rate Box</MailService><Rate>14.50</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post</MailService><Rate>7.05</Rate></Postage><Postage CLASSID="5"><MailService>Bound Printed Matter</MailService><Rate>2.71</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail</MailService><Rate>3.16</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>3.00</Rate></Postage></Package></RateV3Response>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2010, 14:48:35 pm
You missed my second reply.

http://forum.virtuemart.net/index.php?topic=46784.msg233303#msg233303
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 25, 2010, 17:30:53 pm
I'd really like to revamp the module

maybe its my bad english (which i doubt), but i dont get your meaning. how to revamp it?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2010, 17:38:26 pm
There are two pieces of information which can be used to identify the service.  The CLASSID, and the name of the service itself.  For some reason, the original author decided to use the service name instead of the CLASSID.  The CLASSID should never change.  The service name seems to change every now and then, which is causing the issue you are experiencing.

I'd like to revamp (re-work/re-code/change) the module to use the CLASSID as the identifier instead of the service name.  This should make the module more resilient, as it will not break every time USPS changes service names.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 25, 2010, 17:45:52 pm
Thanks Reggie for the kind answer.

1 more question: how would this affect me, us, my issue, and the community?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2010, 17:50:11 pm
I would like to think that it will help resolve your issue of the service not appearing on the front end, as well as keep this type of issue from ever happening again.

In the meantime, did you try the second suggestion?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 25, 2010, 18:01:10 pm
yes, you are right, you are asking the same question again, and i still did not respond it. How to change the XML posts?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2010, 18:31:27 pm
Just change the name in the configuration file and the uspsv5.php file, just like the first change.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 25, 2010, 19:05:17 pm
Big thanks Reggie, issue seems to be solved. After I felt really insulted of the posts, i have had to review each and every file in the zip and had to figure out what you were suggesting.

Now everything is clear, and let me summarize it:

Go to administrator/components/com_virtuemart/classes/shipping and
 rename in the uspsv5.cfg.php file around the line 73 from

'Priority Mail Regular/Medium Flat Rate Boxes'

to

'Priority Mail Medium Flat Rate Box'

Do the same for administrator/components/com_virtuemart/classes/shipping
 change in the uspsv5.php file around line 837.

Tested it, works.

There is another thing which isn't clear: if i give the size 10x8x5 inches, why is the small box show up? I thought it would automatically pick the right size for the box. (if you have an idea, please simplify it to the same level as my summary is   :) )
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2010, 19:18:45 pm
I'm sorry you felt insulted  ???
By all means, I've not tried to insult you.  I was simply trying to figure out a solution to the issue.

I'm glad the fix worked, I have also made the change in my zip file for download.


Quote from: h2oferko
There is another thing which isn't clear: if i give the size 10x8x5 inches, why is the small box show up? I thought it would automatically pick the right size for the box.

The USPS API is not very "smart".  I could ask rates for a 10 lb weight, and it returns quotes for envelopes with the other services.  This is impossible!

The USPSv5 module is not "aware" of product sizes. The USPSv5 module simply matches what the USPS API returns to the services you have configured.  If USPS returns it, and it matches, then USPSv5 shows that option.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: h2oferko on April 25, 2010, 19:33:37 pm
Aww, this sounds really dumb. Anyways, is there a chance to assign different shipping methods for different categories?
Like for jewelery the small box, for jean jackets the medium box, etc. Or is it still depends on the usps API?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2010, 21:34:38 pm
The module does not do that currently.  It is something that could be added.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ancientwolf on May 02, 2010, 18:41:39 pm
Heyas!

I ran into a problem that I think you may want to know about:

I installed the mod correctly (no errors), added the field to the database, aaaaaannnd...

For some reason after installing it, my product images went wacky (only for virtuemart) and also the module "virtuemart product scroller" stopped working by showing the once 100 x 100px images as a single px line. The images from within virtuemart's admin product section appear normal- they just wont display properly on the frontend.

Just to make sure I uninstalled vm (yes Im a sucker for punishment heh)and reinstalled a fresh copy, then reinstalled the mod and it did it again.

I even went as far as deleting my images from a few products then reuploading them and nothing changed (still wonky).

Any idea why that would be doing that?

Im going to install the mod on a subdomain's copy of vm and see if I can replicate this for you to visually see. The only other bit of info I can give you at this point is I'm using joomla templates made with artisteer. Ill reply back with some more findings as I need to have this working on my production side at some point.



 
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 02, 2010, 19:34:49 pm
That's odd.  There is no modification to templates, css, or other such files.  What version of VM did you install it on?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ancientwolf on May 02, 2010, 19:49:26 pm
I installed it on the most current version of VM; I did note however, I used the vm113-USPSv5.2009.10.03. (Got the link from the top of this post)

I just went to your site and grabbed the vm114-upsv2.2010.02.15 version, installed it and the problem went away. Im just getting ready to redo the joomla install, vm install and reinstall the current one to test.

At a minimum might want to restrict older versions because as it stands, if you didnt backup your site before applying that mod, you will have a mess to deal with. Thanks for the speedy reply, Ill add more with my findings.

Also, I just want to thank you for the work youre doing. If my situation improves, you bet I'll be donating!

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 02, 2010, 20:02:29 pm
Careful, you installed the UPS module, version 2.  Completely different module!

There is an updated USPS module for VM114, but I have not yet released it publicly.  If you'd like to help get it publicly released, contact me about donating.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ancientwolf on May 02, 2010, 20:18:32 pm
I know it was the ups module, the reason I took a shot was because it had some of the same display pages in it. Just pointing out that the current version of the usps module will do that to the current VM installation.

If it comes down to it, I'm only using 1 or 2 flat rate box types from usps.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 11, 2010, 10:03:21 am
can't seem to figure out units in packaging and units in box.  have baby bibs and baby blankets products.

bib: 13"x9"x0.25"; 1.3 ounces; up to 2can fit in a Tyvek 1st class envelope 11"x15" or a tyvek priority mail envelope 11"x15"

blanket: 35"x29"x0.25"; 14 ounces; fold 2x for shipment: 9"x8"x1"; up to 5 can fit in priority mail flat rate box: FRB1; up to 3 can fit in priority mail flat rate box: FRB2

difficulties:
1) can't get 1st class option to show up for a single bib purchase
2) can't figure out how to specify "units in package" and "units in box" to not only handle:
   a) single or multiple qty of single product type
   b) mixed product types of varying qty each such that they can be combined in same packaging (ex: 3 blankets & 2 bibs can easily fit in a priority mail flat rate box FRB1)

i'm just having a heck of a time.  any suggestions.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 11, 2010, 13:49:33 pm
Hi,
Units in package and units in box are completely ignored by the module. All items are aggregated together into one "virtual" box (or more if needed).

What weight UOM are you using? Try using "ounce" or "oz". Have you tried debug mode to see the request/reply?

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 11, 2010, 17:10:16 pm
************ Update ************
I've decided to go ahead and release the latest USPSv5 module, along with the cart rates plugin without waiting for financial support.  See the first post in this thread, or my "Free Software" page on my website for download.

If you find this update useful, please consider a donation.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 11, 2010, 22:19:35 pm
i so appreciate you moving ahead on your release.  and, that you are leading the way with USPS shipping.  you're knowledge is so refreshing!

re: weights and measures: inches, ounces.  i do have to make sure that on weights that i am consistent on using ounces on all products, correct?

is ounces the way to go or should i be using decimal equivalents of fractional oz/lb values (eg  2.5 pounds = 40 ounces if wanting to keep all in ounces; 6 ounces = .375 pounds if wanting to keep in pounds).

thanks again - so appreciate your help, and that i don't have to worry about units in package and units in box!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 11, 2010, 22:23:34 pm
You should be able to use any weight UOM you wish, within a set of UOMs defined in the VirtueMart code.  VirtueMart does do unit conversions.  From my own personal notes, I've found these UOM's are accepted:
lb,po,oz,ou,kg,kilo,g,pounds

If I recall correctly, anything with "ou" with be interpreted as ounces...so ou, ounce, ounces can all be used.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 11, 2010, 22:31:12 pm
thanks.  it was interesting looking through USPS website that with 1st class a large envelope they call a "PARCEL".  anyway.  thanks again.  you are a "Hero Member"
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 11, 2010, 23:18:38 pm
am using mutliple qty bib product to checkout 1st class rates and packaging offerings.

i'm using a bib being 13" x 9" x 0.25" and it's 1.3 ounces
I can see that the 1st class mail is showing up now that's great.

1st class mail "flat" has me curious though, is that large envelope and parcel is package?

by ordering qty 1, 2, 3, 4 etc... I'm not getting the rates I'd expect given its 1.3 ounces weight.

i'm going by usps rate table:
http://www.usps.com/prices/first-class-mail-prices.htm

interesting, am i missing the obvious? don't hesitate to fork me to the obvious explanation.  :-)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 11, 2010, 23:27:45 pm
am using mutliple qty bib product to checkout 1st class rates and packaging offerings.

i'm using a bib being 13" x 9" x 0.25" and it's 1.3 ounces
I can see that the 1st class mail is showing up now that's great.

1st class mail "flat" has me curious though, is that large envelope and parcel is package?

by ordering qty 1, 2, 3, 4 etc... I'm not getting the rates I'd expect given its 1.3 ounces weight.

i'm going by usps rate table:
http://www.usps.com/prices/first-class-mail-prices.htm

interesting, am i missing the obvious? don't hesitate to fork me to the obvious explanation.  :-)

1st class is for letters/postcards/13oz or smaller, so yes I would think envelope.  Flat means flat rate, so the quantity will not affect the final rate (assuming it does not go over 13oz).

Be aware that the USPS API often returns impossible quotes, such as flat rate envelope for 20lb items.  The module simply "matches" the rates USPS returns to the services selected in the module configuration, so it is possible to get weird results.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 12, 2010, 02:17:56 am
it appears that box volume is not being used to determine how many cumulative items can go in one box.  what makes this a bit tricky right from the get go is that there are 2 medium size flat rate boxes but they don't ea have the same volume capacity.  one doesn't know which one the sender will use so as to know from a volumetric perspective how many items can fit in a box.

i'm trying to figure out how to insure that the "invisible" box is not presumed to be of "infinite" capacity.  :-)

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 12, 2010, 02:24:00 am
unfortunately, it does not work that way.  there is a maximum weight for USPS, which is what the module uses.  It does NOT consider the maximum weights or volumes of each package type.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 12, 2010, 06:52:20 am
i narrowed shipping methods down to just priority mail (no flat rate) and 1st class package. 
with a 2 ounce product everything is fine:
1st class package: $1.39
priority mail zone L12: $4.90

start over again with empty shopping cart:
qty 7 of the 2 ounce product: should force it from 1st class since its over 13 ounces
choices returned:
1st class package: $1.39
priority mail: $4.90
don't know if its latency or artifact from previous example, or that 1st class is just using a qty 1

go back clear shopping cart order qty 18 -> 36 oz total:
returns with:
Priority Mail: $5.70

its correct not to provide 1st class (definitely greater than 13 ounces!) and priority mail is correct for 36 ounces being 3 pounds or less for zone L12

just can't figure out why 1st class package shipping method isn't working through the weight tiers correctly.

i like the usability factor of just providing priority mail and 1st class if i can get the 1st class to behave.  it really is a great feature to have given we have a line of low weight items.

at time of shipment if i can save money using priority mail flat rate then i can make that decision then, but i don't need to be quoting that as a selection.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 12, 2010, 15:39:21 pm
just can't figure out why 1st class package shipping method isn't working through the weight tiers correctly.

try putting the shop in debug mode, and find the XML request/reply. That may shed light on the issue.  If you post it here, be sure to remove your user credentials...
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: edog5948 on May 12, 2010, 22:01:34 pm
Hi - I'm working will billpk4 on his site.  I've gathered the XML debug info.

What I've noticed:
Site shipping seems to work fine if starting from a clean browser start and not using any back buttons.  Increase in quantity of product directly corresponds to increase in shipping cost.

But, when the scenario has the user using a back button, the results seem incorrect.

First Case:  Clean browser, clean cache, no back buttons:
One product (2ounces)  [User choices: Priority Mail ($5.55),  First-Class Mail Parcel ($1.39)]
XML Post:
Code: [Select]
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request

USERID="" PASSWORD=""><Package

ID="0"><Service>All</Service><ZipOrigination>83646</ZipOrigination><ZipDestination>02129</

ZipDestination><Pounds>0</Pounds><Ounces>2</Ounces><Size>REGULAR</Size><Machin

able>FALSE</Machinable></Package></RateV3Request>

XML Result:
Code: [Select]
<?xml version="1.0"?>
<RateV3Response><Package

ID="0"><ZipOrigination>83646</ZipOrigination><ZipDestination>02129</ZipDestination><Pound

s>0</Pounds><Ounces>2</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machina

ble><Zone>8</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday

Guarantee</MailService><Rate>34.70</Rate></Postage><Postage

CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday

Guarantee</MailService><Rate>30.80</Rate></Postage><Postage

CLASSID="2"><MailService>Express Mail Hold For

Pickup</MailService><Rate>22.20</Rate></Postage><Postage

CLASSID="27"><MailService>Express Mail Flat Rate Envelope Hold For

Pickup</MailService><Rate>18.30</Rate></Postage><Postage

CLASSID="3"><MailService>Express

Mail</MailService><Rate>22.20</Rate></Postage><Postage

CLASSID="13"><MailService>Express Mail Flat Rate

Envelope</MailService><Rate>18.30</Rate></Postage><Postage

CLASSID="1"><MailService>Priority

Mail</MailService><Rate>5.55</Rate></Postage><Postage

CLASSID="16"><MailService>Priority Mail Flat Rate

Envelope</MailService><Rate>4.90</Rate></Postage><Postage

CLASSID="28"><MailService>Priority Mail Small Flat Rate

Box</MailService><Rate>4.95</Rate></Postage><Postage

CLASSID="17"><MailService>Priority Mail Medium Flat Rate

Box</MailService><Rate>10.70</Rate></Postage><Postage

CLASSID="22"><MailService>Priority Mail Large Flat Rate

Box</MailService><Rate>14.50</Rate></Postage><Postage

CLASSID="0"><MailService>First-Class

Mail</MailService><Rate>0.81</Rate></Postage><Postage CLASSID="0"><MailService>First

-Class Mail Flat</MailService><Rate>1.39</Rate></Postage><Postage

CLASSID="0"><MailService>First-Class Mail

Parcel</MailService><Rate>1.39</Rate></Postage><Postage

CLASSID="4"><MailService>Parcel

Post</MailService><Rate>4.90</Rate></Postage><Postage

CLASSID="5"><MailService>Bound Printed

Matter</MailService><Rate>2.88</Rate></Postage><Postage

CLASSID="6"><MailService>Media Mail</MailService><Rate>2.38</Rate></Postage><Postage

CLASSID="7"><MailService>Library

Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>

Or, Seven products:
Seven products (2ounces each)  [User choices: Priority Mail ($5.55)]
XML Post:
Code: [Select]
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request

USERID="" PASSWORD=""><Package

ID="0"><Service>All</Service><ZipOrigination>83646</ZipOrigination><ZipDestination>02129</

ZipDestination><Pounds>0</Pounds><Ounces>14</Ounces><Size>REGULAR</Size><Machi

nable>FALSE</Machinable></Package></RateV3Request>
XML Result:
Code: [Select]
<RateV3Response><Package

ID="0"><ZipOrigination>83646</ZipOrigination><ZipDestination>02129</ZipDestination><Pound

s>0</Pounds><Ounces>14</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machin

able><Zone>8</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday

Guarantee</MailService><Rate>38.80</Rate></Postage><Postage

CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday

Guarantee</MailService><Rate>30.80</Rate></Postage><Postage

CLASSID="2"><MailService>Express Mail Hold For

Pickup</MailService><Rate>26.30</Rate></Postage><Postage

CLASSID="27"><MailService>Express Mail Flat Rate Envelope Hold For

Pickup</MailService><Rate>18.30</Rate></Postage><Postage

CLASSID="3"><MailService>Express

Mail</MailService><Rate>26.30</Rate></Postage><Postage

CLASSID="13"><MailService>Express Mail Flat Rate

Envelope</MailService><Rate>18.30</Rate></Postage><Postage

CLASSID="1"><MailService>Priority

Mail</MailService><Rate>5.55</Rate></Postage><Postage

CLASSID="16"><MailService>Priority Mail Flat Rate

Envelope</MailService><Rate>4.90</Rate></Postage><Postage

CLASSID="28"><MailService>Priority Mail Small Flat Rate

Box</MailService><Rate>4.95</Rate></Postage><Postage

CLASSID="17"><MailService>Priority Mail Medium Flat Rate

Box</MailService><Rate>10.70</Rate></Postage><Postage

CLASSID="22"><MailService>Priority Mail Large Flat Rate

Box</MailService><Rate>14.50</Rate></Postage><Postage

CLASSID="4"><MailService>Parcel

Post</MailService><Rate>4.90</Rate></Postage><Postage

CLASSID="5"><MailService>Bound Printed

Matter</MailService><Rate>2.88</Rate></Postage><Postage

CLASSID="6"><MailService>Media Mail</MailService><Rate>2.38</Rate></Postage><Postage

CLASSID="7"><MailService>Library

Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>

Now, for the more interesting case,
CASE 2:  Using browser Back button:
Test:
Step 1) Clear browser
Step 2) order 1 products (2 ounces each) [user choice: Priority Mail ($5.55),First-Class Mail Parcel ($1.39)]
Step 3) browswer back button
[Checkout Step 1 of 4]
Debug: Using existing Session be9424de4fcba8159384a6249431dd99, ID:

9438bc031cff664843babf9b16d2cdf0.
 
Debug: calculating tax based on shipping address

Step 4) browswer back button
[Checkout Step 1 of 4]
Debug: Using existing Session be9424de4fcba8159384a6249431dd99, ID:

9438bc031cff664843babf9b16d2cdf0.
 
Debug: calculating tax based on shipping address

Step 5) browswer back button
To display this page, Firefox must send information that will repeat any action (such as a search

or order confirmation) that was performed earlier.  [Resend]

Debug: Using existing Session be9424de4fcba8159384a6249431dd99, ID:

9438bc031cff664843babf9b16d2cdf0.
Info: The product quantity has been updated.
 
Cart
 
Debug: calculating tax based on shipping address

Name        SKU        Price     Quantity / Update     Subtotal
Jacks A Lot Bib   BIBM106    $1.00    2      $2.00

Step 6) Checkout
Debug: Using existing Session be9424de4fcba8159384a6249431dd99, ID:

9438bc031cff664843babf9b16d2cdf0.
 
Debug: calculating tax based on shipping address

Step 7) Next
NOTE:  No XML debug statements available.

Debug: Using existing Session be9424de4fcba8159384a6249431dd99, ID:

9438bc031cff664843babf9b16d2cdf0.
Debug: calculating tax based on shipping address
 
Checkout
 
If you have a coupon code, please enter it below:

Please select a Shipping Method!
Debug: Starting Shipping module: standard_shipping
Debug: The Shipping Module 'standard_shipping' couldn't
find a Shipping Rate that matches the current Checkout configuration:
Weight: 0.25
Country: USA
ZIP: 02129


Debug: Starting Shipping module: uspsv5
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 70 (Jacks A Lot Bib) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.125
Debug: Package::addItem() - ***** Adding item 70 (Jacks A Lot Bib) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.25
Debug: Package::query_rates() - Querying for Source: US/83646 , Destination: US/02129,

Weight: 0.25
Debug: uspsv5::get_rates_array() - Using cached rate for US, 83646, US, 02129, 0.25
Priority Mail ($5.55)
First-Class Mail Parcel ($1.39)


NOTE: There is no XML debug statement available to copy.

I am concerned about several things:
1) When hitting the back button, and getting finally to the Cart page, the quantity or product is now "2" instead of "1",
2) There is no XML debug statement available to copy when the shipping page is presented,
3) The "Using cached rate" statement at the end of the debug statements above.

Again,
Thank you for all the effort you've put into the module and supporting it, too.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 12, 2010, 22:08:39 pm
1) When you hit the "back" button after having updated a quantity, the browser re-posts the form data. You've effectively clicked "add to cart" again and updated the quantity.  So it increments the number of products.

2) Once a rate has been obtained for a given source/destination address and weight, the module cache's that rate for the duration of the session.  No XML request/reply will be given.

3) See #2
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: edog5948 on May 12, 2010, 23:58:17 pm
Thanks for the quick response.
Is there anyway to "kick the cache" if the quantity is updated after the module has determined shipping cost for given source/destination?
Or, what constitutes a new session, in which the shipping cost would get re-calculated?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 13, 2010, 00:11:52 am
hi all, i did the multiple comparisons without using browser back keys but instead navigating within the website to clear shopping cart contents and shop a freash.
- 1st class posted a 1 ounce rate for a 14 ounce package
- 1st class always posted a 1 ounce rate not matter what the package weight is below 13 ounces

- priority mail worked just fine
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: billpk4 on May 13, 2010, 00:14:14 am
i'm going to get out of the way now.  i think all viewers will benefit a lot more watching you edog5948 and lowmips.  keep it to the ones who know what they are talking about.  :-)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 13, 2010, 00:41:05 am
Thanks for the quick response.
Is there anyway to "kick the cache" if the quantity is updated after the module has determined shipping cost for given source/destination?
Or, what constitutes a new session, in which the shipping cost would get re-calculated?

A new session occurs after a user logs out, or the current session expires.

If you really want to, you can turn rate caching off completely.
Comment out uspsv5.php, line 546, like so:
Code: [Select]
//$_SESSION['rate_cache']['USPS'][$src_country][$src_zip][$dest_country][$dest_zip][$weight] = $ship_service;
Then, restart your session to enable this new behaviour.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: edog5948 on May 24, 2010, 17:20:29 pm
Thanks on the cache change.
(We're using User Registration Type = No Account Creation, so having user logoff to update shipping values won't be viable.)

I can't seem to reconcile the uspsv5 shipping rate with what usps.com postage price calculator says.

Here's the scenario:
1 product
no shipping or handling uplifts
product dimensions: 
  - length 12"
  - width   9"
  - height 0.5"
  - weight  2 ounces
Units = piece
units in package = 1
units in box = 6
ship separately = unchecked

for usps.com shipping calculator,
Priority mail =  $5.55
First class large envelope = $1.05

from uspsv5 shipping module,
Priority mail = $5.55
First class mail rate =   $1.39
First class mail parcel = $1.39

What is causing the difference between first class shipping rates?
How can I reconcile to a valid shipping cost?

Attached here are XML Post/Reply and usps.com postage price calculator results.
Code: [Select]
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request USERID="604SEWSW4486" PASSWORD="982JN27HB827"><Package ID="0"><Service>All</Service><ZipOrigination>83646</ZipOrigination><ZipDestination>02129</ZipDestination><Pounds>0</Pounds><Ounces>2</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV3Request>

Code: [Select]
<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>83646</ZipOrigination><ZipDestination>02129</ZipDestination><Pounds>0</Pounds><Ounces>2</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>8</Zone><Postage CLASSID="23"><MailService>Express Mail Sunday/Holiday Guarantee</MailService><Rate>34.70</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail Hold For Pickup</MailService><Rate>22.20</Rate></Postage><Postage CLASSID="27"><MailService>Express Mail Flat Rate Envelope Hold For Pickup</MailService><Rate>18.30</Rate></Postage><Postage CLASSID="3"><MailService>Express Mail</MailService><Rate>22.20</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail Flat Rate Envelope</MailService><Rate>18.30</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail</MailService><Rate>5.55</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail Flat Rate Envelope</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail Small Flat Rate Box</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail Medium Flat Rate Box</MailService><Rate>10.70</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail Large Flat Rate Box</MailService><Rate>14.50</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail</MailService><Rate>0.81</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail Flat</MailService><Rate>1.39</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail Parcel</MailService><Rate>1.39</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="5"><MailService>Bound Printed Matter</MailService><Rate>2.88</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail</MailService><Rate>2.38</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>



[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 24, 2010, 17:36:45 pm
If you mean the price difference between this:
Code: [Select]
for usps.com shipping calculator,
First class large envelope = $1.05

and this:

Code: [Select]
from uspsv5 shipping module,
First class mail rate =   $1.39
First class mail parcel = $1.39

These are 3 different services.   Can't compare apple to oranges.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: edog5948 on May 24, 2010, 18:46:55 pm
Yep - that's what I was trying to compare...

I guess if I have the different fruit comparison going, I'm not sure what to compare against.

In VM, I have the following set for uspsv5:
Priority Mail = Yes
First Class Mail Flat = Yes
First Class Mail Parcel = Yes
(all others are set to no)

On usps.com, I use the postage price calculator by setting size and weight.  It returns the various options and their shipping cost.

Is there a way to set VM and/or use usps.com to have the values correspond?

I'm not sure what I need to do---
Is there a way that uspsv5 could return the "First class large envelope" that usps.com yields?
Or, is there a way that usps.com would return a "First class mail rate" or "First class mail parcel" rate?

If it is really apples vs oranges, how can I get apples-to-apples or oranges-to-oranges?

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 24, 2010, 18:52:02 pm
Here's how the module works:
1) You choose services in the configuration.
2) The module requests a list of services + rates from USPS
3) The module compares the results of that request to the list of services you selected
4) If the returned service matches the choices you made, the module shows that service + price as a shipping option

So, just because you select it in the back end does not guarantee it shows on the front.  The module can only show what USPS has given it, and only if it matches the selections in the configuration.  Be sure you have chosen all applicable services in the module configuration.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: edog5948 on May 24, 2010, 19:28:36 pm
Thanks Lowmips --

That was my suspicion.  What USPS returns through the interface uspsv5 uses is (or maybe is) different than what it uses straight on its own usps.com website.

Thanks for your help.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: drdehart on May 27, 2010, 20:25:02 pm
Does this module validate addresses against the USPS database, or is there another recommended solution?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 27, 2010, 20:29:54 pm
No address validation.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: drdehart on May 27, 2010, 21:10:34 pm
Any suggestions for implementing a USPS validation process, or would we need to program our own?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on May 27, 2010, 21:13:45 pm
I believe there is an API for it.  I've heard that it is not 100% reliable, more like 85-90%.
I've never gotten any further than a few google searches :).

Good luck.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: consolecustoms on June 24, 2010, 01:37:57 am
I just added this module today to upgrade from v4.1 and when displaying the shipping  rates for V5 it displays this before the rates:

Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 34 (item 1) to package #1 *****
Package::addItem() - Package weight is now: 0.102
Package::addItem() - ***** Adding item 34 (item 1) to package #1 *****
Package::addItem() - Package weight is now: 0.204
Package::addItem() - ***** Adding item 53 (item 2) to package #1 *****
Package::addItem() - Package weight is now: 0.20502
Package::addItem() - ***** Adding item 19 (item 3) to package #1 *****
Package::addItem() - Package weight is now: 0.40902
Package::query_rates() - Querying for Source: US/29334 , Destination: US/29369, Weight: 0.40902

Then displays the shipping rates. V4.1 does not do this. How can I resolve this problem?

Also in both V4.1 and V5 for international shipments I have selected Express mail international and Priority mail international but it will only show the Priority mail rates. I know the address is good and can receive express mail packages. Any suggestions?

Thank you,
Chris
www.consolecustoms.com
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 24, 2010, 01:42:31 am
You're logged in as an admin.  It's just some debug info that is shown to admins only.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: consolecustoms on June 24, 2010, 02:02:28 am
ahh thank you. I will test with non admin account.


What about international shipping rates only showing Priority mail? I put into debug and it is returning rates for all options I can see that express mail is $33.50 and Priority is $20.00 in the debug window but it only returns Priority of $20.00 as a selectable option. I also tried turning on GXG and 1st class optiosn but I still only get Priority mail as an option.

Thanks,
Chirs
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 24, 2010, 04:29:27 am
You've selected all of the services in the module admin, and you see matching services in the XML reply, but it doesn't show up on the front end? Can you paste the XML reply here?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: consolecustoms on June 24, 2010, 21:36:54 pm
You've selected all of the services in the module admin, and you see matching services in the XML reply, but it doesn't show up on the front end? Can you paste the XML reply here?

Yes, and for this test I went ahead and selected all of the different international options in the shipping module. the only ones that give a result are.

USPS Global Express Guaranteed Non-Document Rectangular
USPS Global Express Guaranteed Non-Document Non-Rectangular
USPS USPS GXG Envelopes
USPS Priority Mail International

Same thing for both V4.1 and V5


Here is the XML reply

Code: [Select]
<?xml version="1.0"?>
<IntlRateResponse><Package ID="0"><Prohibitions>An issue of a publication in which more than 5 percent of its total advertising space is primarily directed to a Canadian market and which indicates:
(a) specifically where goods or services may be obtained in Canada, or
(b) specific items or conditions relating to the sale or provision of goods or services in Canada.
All alcoholic beverages including wines, etc.
An issue of a publication that contains an advertisement primarily directed to a Canadian market is a prohibited import if that advertisement does not appear in identical form in all editions of the issue distributed in the country of origin.
Articles so marked as to create the false impression that they were made in Canada, Great Britain or any other British country.
Commercial tags of metal.
Firearms, except as follows: Firearms may be mailed to Canada provided that they meet the requirements in DMM 601.11.1, 601.11.2, 601.11.3, and 601.11.6 and that the importer has the required documentation. Customers must visit www.cbsa-asfc.gc.ca/import/courier/postal-postale/ind-imp-eng.html prior to mailing for Canadian import requirements.
Gold bullion, gold dust, and nonmanufactured precious metals.
Non-refillable lighters or any other lighter that contains fuel.
New lighters with no fuel may be sent.
Oleomargarine and other butter substitutes, including altered or renovated butter.
Shipments bearing caution labels indicating the contents are flammable.
Perishable infectious biological substances.
Perishable noninfectious biological substances.
Plumage and skins of wild birds.
Prison-made goods being sold or intended for sale by a person or firm.
Radioactive materials.
Reprints of Canadian or British works copyrighted in Canada.
Reproductions of Canadian postage stamps unless printed in publications in black and white only and with a defacing line drawn across each reproduction.
Smoke-making devices for motor vehicles and boats.
Used or secondhand hives or bee supplies.</Prohibitions><Restrictions>The maximum value of a GXG shipment to CANADA is $2,499 or a lesser amount if limited by content or value.
Coins; banknotes; currency notes; securities payable to bearer; traveler's checks; gold, silver, platinum, manufactured or not; jewelry; and other valuable articles may be sent only in registered letter-post items.
Exceptions:
Coins sent to or from collectors or dealers may be mailed in ordinary (uninsured) parcel post packages. Jewelry and precious stones may be sent via GPL Air Courier (Premium) service to Canada subject to indemnity limits indicated in section 626.31.
Drugs and medicines must comply with Canadian law.
Eggs for hatching must be packed in new, clean containers and accompanied by a certificate issued by a veterinarian of the U.S. Department of Agriculture, or one issued by a State veterinarian and endorsed by a veterinarian of that Bureau, stating that to the best of his or her knowledge the eggs come from a flock that is free from Newcastle disease, fowl pest, or fowl typhoid. See 135.3 for method of packing.
Meat and meat food products must be accompanied by an export certificate issued by the U.S. Department of Agriculture and labeled in accordance with Canadian regulations. Exception to these requirements are:
(1) bona fide sample shipments weighing less than 10 kg;
(2) meat products addressed to a government department or agency;
(3) meat products intended for personal consumption when they enter Canada in the possession of the importer.
Precious stones, set or not set; all items used as dress ornaments and coming under the term "jewelry" including articles of gold or other precious metal for personal use such as cigarette holders, cases, powder cases, card cases, opera glasses, fountain pens, watches, etc., are permitted in insured parcel post packages provided the articles have value not over $5 U.S. A parcel post package containing a number of such articles valued at $5 or less may be insured for the total value of the contents up to a maximum of $200.
Veterinary biological products including serums and vaccines must be accompanied by a permit issued by the Veterinary Director General, Ministry of Agriculture of Canada.</Restrictions><Observations>1. Banknotes valued at $100 or more must be put up in a compact package and securely tied with strong twine before wrapping. The wrapper must be linen or other strong, woven material, linen lined paper, or two thicknesses of strong kraft paper. After wrapping, the package must be again securely tied or stitched and sealed at the points of closing.
2. The name of the Canadian province in which the office of destination is located must appear as part of the address.
3. The following must not be accepted for insurance:
Bees, postage stamps (canceled and uncanceled) and albums in which they are mounted, and parcel post packages addressed to CFPOs.
4. Canadian Forces Mail (CFPO) is processed through Canadian military post offices and must be addressed in the following manner:
NUMBER, RANK, NAME UNIT
CFPO (NUMBER)
BELLEVILLE, ONT CANADA K0K 3R0
Maximum weight limits for mail addressed to members of the Canadian Forces based outside of Canada (CFPO) is: 22 pounds. Parcel post packages for CFPO addresses may not be insured. Direct sacks of printed matter (M Bags) are not permitted for CFPO addresses. 
5. A letter fully prepaid and bearing the same address as that of the parcel post package may be tied or otherwise securely attached to the outside of the parcel. Stamps to cover postage on the parcel post package must be affixed to the wrapper of the parcel. Stamps to pay postage on the letter must be affixed to the envelope thereof.
6. Certain types of merchandise must be marked to show country of origin in the manner prescribed by the Canadian customs regulations.
7. Goods valued under 20 Canadian dollars are duty and excise tax exempt. Goods over 20 Canadian dollars will be subject to the applicable duties and excise taxes. Gift shipments received by mail that are valued under 60 Canadian dollars are duty and excise tax exempt.
8. For all casual and commercial items valued under 1,600 Canadian dollars, Canada Post will collect the assessed duties and excise taxes and a handling fee of 5 Canadian dollars from the addressee. For Express Mail International items, the handling fee is 8 Canadian dollars. All commercial mail items over 1,600 Canadian dollars will be held by Canada Customs and Excise until proper invoice and accounting documentation is provided by the addressee.
9. The Canada Customs Invoice can be obtained from stationery, office supply, or printing companies. If mailers are unable to obtain the Canada Customs Invoice locally, they should visit the following Web site: www.canadapost.ca. In addition, commercial invoices are acceptable provided that each invoice has the required information for customs purposes.
10. Information on Canadian customs regulations may be obtained from the Office of International Marketing/223, Bureau of International Commerce, Department of Commerce, Washington, DC  20230, or any field office of that Department.
11. (a) Information on Canadian post code directories can be obtained from: 
NATIONAL PHILATELIC CENTER
CANADA POST CORPORATION
STATION 1
ANTIGONISH NS  B2G 2R8
Telephone:  1-800-565-4362
Fax:  1-902-863-6796
 (b) To obtain Canadian post codes for specific addresses, call the General Information line at 1-416-0979-8822 or access the Canada Post Corporation web site on the Internet at http://www.canadapost.ca
12. Registered mail to Canada has an indemnity limit of $1,000, with the exception of cash that has an indemnity limit of $200.</Observations><CustomsForms>First-Class Mail International items and Priority Mail International flat-rate envelopes:
PS Form 2976 or 2976-A (see 123.61)
Priority Mail International parcels:
PS Form 2976-A inside 2976-E (envelope)</CustomsForms><ExpressMail>Country Code:
CA

Reciprocal Service Name:
There is no reciprocal service.

Required Customs Form/Endorsement
1. Business papers and commercial documents.
PS Form 2976, Customs - CN 22 (Old C 1) and Sender's Declaration (green label).

2. Merchandise samples and gift shipments (non-commercial parcels).
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.

3. Merchandise (commercial shipments) and all articles subject to customs duty.
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.

Notes:
1. Gift shipments (non-commercial parcels) require a sales receipt, invoice or other documentation to support the declared value.
2. Coins; banknotes; currency notes (paper money); securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver (manufactured or not); precious stones; jewelry; and other valuable articles are prohibited in EMS shipments to Canada.
3. Express Mail shipments may have a street address or a post office box address. A local telephone number for the addressee MUST be provided for shipments addressed to a post office box address. A local telephone number for the addressee should be provided if possible for shipments to a street address.

Areas Served: All</ExpressMail><AreasServed>Please reference Express Mail for Areas Served.</AreasServed><Service ID="4"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>33.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>Global Express Guaranteed (GXG)</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="6"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>33.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>Global Express Guaranteed Non-Document Rectangular</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="7"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>33.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>Global Express Guaranteed Non-Document Non-Rectangular</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="12"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>33.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>USPS GXG Envelopes</SvcDescription><MaxDimensions>Cardboard envelope has a dimension of 9 1/2" X 12 1/2" and GXG tyvek envelope has a dimension of 12 1/2" X 15 1/2"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="1"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>26.95</Postage><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail International</SvcDescription><MaxDimensions>Max. length 42", max. length plus girth combined 79"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="10"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>26.95</Postage><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail International Flat Rate Envelope</SvcDescription><MaxDimensions>USPS Supplied Envelope: 9 1/2" x 12 1/2"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="2"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>20.00</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail International</SvcDescription><MaxDimensions>Max. length 79", max. length plus girth 108"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="11"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>33.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail International Large Flat Rate Box</SvcDescription><MaxDimensions>USPS Supplied Large Box: 12" x 12" x 5 1/2". Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="9"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>26.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail International Medium Flat Rate Box</SvcDescription><MaxDimensions>USPS Supplied Medium Box: 13 5/8" x 11 7/8" x 3 3/8" or 11" x 8 1/2" x 5 1/2". Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="16"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>11.45</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail International Small Flat Rate Box</SvcDescription><MaxDimensions>USPS Supplied Small Box: 8 5/8" x 5 3/8" x 1 5/8". Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="8"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>11.45</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail International Flat Rate Envelope</SvcDescription><MaxDimensions>USPS Supplied Envelope: 9 1/2" x 12 1/2". Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="15"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>2.01</Postage><SvcCommitments>Varies</SvcCommitments><SvcDescription>First-Class Mail International Package</SvcDescription><MaxDimensions>Other than rolls: Max. length 24", max length, height and depth (thickness) combined 36" Rolls: Max. length 36". Max length and twice the diameter combined 42"</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="14"><Pounds>0</Pounds><Ounces>4</Ounces><MailType>Package</MailType><Country>CANADA</Country><Postage>1.81</Postage><SvcCommitments>Varies</SvcCommitments><SvcDescription>First-Class Mail International Large Envelope</SvcDescription><MaxDimensions>Max. length 15", height 12" or thickness 3/4"</MaxDimensions><MaxWeight>4</MaxWeight></Service></Package></IntlRateResponse>

Thank you for the help!

Chris
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 24, 2010, 22:02:13 pm
It looks like USPS has once again changed some service names.

Your XML results show the following services:
Global Express Guaranteed (GXG)
*Global Express Guaranteed Non-Document Rectangular
*Global Express Guaranteed Non-Document Non-Rectangular
*USPS GXG Envelopes
Express Mail International
Express Mail International Flat Rate Envelope
*Priority Mail International
*Priority Mail International Large Flat Rate Box
Priority Mail International Medium Flat Rate Box
Priority Mail International Small Flat Rate Box
Priority Mail International Flat Rate Envelope
First-Class Mail International Packag
First-Class Mail International Large Envelope


The ones I have marked with an asterik are the ones which are currently defined in the USPSv5 module. All others have been renamed or are new additions.

Again, this is why I'd like to move the module from using service name matching to service Id matching...the IDs should rarely change..

In the meantime, in order to fix the issue, all the non-asterik services listed above will need to be updated in USPSv5/USPSv4.2
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: consolecustoms on June 24, 2010, 22:59:55 pm
Ahh, I saw that there was a difference in the name for the express mail when I was looking at it yesterday but I did not think that was the issue. 
I just updated my files and now all options are showing except for all of the priority mail flat rate boxes. This is only because in the current version there are only two options "flat rate box" and "large flat rate box". From USPS there are now 3 options of Small, medium and large flat rate boxes. I don't use these any way so it is no biggie for me but it is something to look at for your future update.

Thank you again for a great module and support!! I made a donation to you as well.

Thanks again,
Chris
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 24, 2010, 23:01:14 pm
Thanks much!

I'll update the service names, and add the new ones, some time in the future when I get a chance.
Title: Re: USPS v5 - cartrates plugin
Post by: SparksArts on July 07, 2010, 23:10:59 pm
Hi, Reggie

I'm having a problem with your plgSystemCartRatesversion 1.0.2010.04.05 - USPSv5. It works fine when the user is logged in, but if they aren't logged in and they enter their country, state, zip to get estimated shipping from the shopping cart, it returns: "Notice: We are unable to obtain any USPS shipping methods at this time." If you go through the checkout process, after logging in the rates are displayed no problem.

Any idea what the problem might be?

Thanks a lot!
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 07, 2010, 23:14:21 pm
Hi, Reggie

I'm having a problem with your plgSystemCartRatesversion 1.0.2010.04.05 - USPSv5. It works fine when the user is logged in, but if they aren't logged in and they enter their country, state, zip to get estimated shipping from the shopping cart, it returns: "Notice: We are unable to obtain any USPS shipping methods at this time." If you go through the checkout process, after logging in the rates are displayed no problem.

Any idea what the problem might be?

Thanks a lot!
Richard

Have you tried debug mode? I know there is an issue with plgSystemCartRates and debug mode, but you may be able to find an error message in all the garbage it will spit out.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 08, 2010, 02:41:42 am
Updates 2010/07/07:
- re-download version vm114-uspsv5.2010.04.05.zip
- USPS changed service names. I changed USPSv5 to match.
- NOTE: Internal service name and number scheme has changed. Your selected services may be out of order!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: consolecustoms on July 10, 2010, 18:22:07 pm
I currently have V4.2 and V5 installed and on V5 when I enable the option to show the delivery time estimates it does not show the whole text, see example below. In V4.2 it shows fine.
I have tried the V5 from before and after you changed the service names and both do the same.

This is how they show up now in V5.

First-Class Mail Parcel ($2.40)  -  2
Priority Mail ($5.40)  -  1
Express Mail ($14.15)


They should show:

First-Class Mail Parcel ($2.40)  -  2-5 Days
Priority Mail ($5.40)  -  1-3 Days
Express Mail ($14.15)  -  Nest day to Most Locations


Thanks again,
Chris
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 10, 2010, 22:44:35 pm
********* Update 2010-07-10 *******
- fixed commitments bug
- fixed prefix bug

Please re-download version 2010.04.05 and copy over the new files.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: consolecustoms on July 11, 2010, 01:40:58 am
Excellent! thank you for the quick fix!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: xstortionist on July 26, 2010, 02:54:47 am
I am getting this message when I go to checkout. I've contacted my host thinking that the issue might be the CURL request, but they assured me that I don't need a URL for their proxy server.

I've attached a screenshot.

[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 26, 2010, 03:07:59 am
try selecting ALL services in the module config, see if you still get an error.  Are you running the latest version? I recently updated it.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: xstortionist on July 26, 2010, 03:16:42 am
What do you mean by selecting "ALL services" I don't see a checkbox for "all services"

also I just downloaded tonight about an hour ago this version:

vm114-upsv2.2010.02.15.zip

that was all I downloaded. Should I have downloaded something else?

Thank you so much for the response!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 26, 2010, 03:21:01 am
What do you mean by selecting "ALL services" I don't see a checkbox for "all services"

also I just downloaded tonight about an hour ago this version:

vm114-upsv2.2010.02.15.zip

that was all I downloaded. Should I have downloaded something else?

Thank you so much for the response!

Shipping services are the services you wish to offer, like USPS Ground, USPS Priority, etc.  In the module configuration, have you selected any shipping services to offer? Check all of the services, run the checkout again.  If you still do not get rates, something is wrong.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: xstortionist on July 26, 2010, 03:26:33 am
I just turned everything on and this is what I get:


Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 293 (Demo Product 13) to package #1 *****
Package::addItem() - Package weight is now: 3.06
Package::query_rates() - Querying for Source: US/11202 , Destination: US/33972, Weight: 3.06
Notice: We are unable to obtain any USPS shipping methods at this time.
Package::query_rates() - Rate query returned null results.
Shipment::populate() - query_rates() failed.
Notice: We are unable to ship via USPS at this time. System Error.


what could be wrong? I just don't understand why it won't work. Even the other USPS module didn't work at all. The UPS shipping module seems to work just fine.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 26, 2010, 03:43:35 am
Hmm. I don't see an easy answer for that one.  It all comes down to the rates query call.  For some reason it is failing, but without further debugging on the live site I couldn't tell you why.

Have you got the XML request/reply? Remember, it is being cached, so log out and back in before running the query to clear the cache.  Otherwise, you'll only see the request/reply once for each unique cart configuration.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: xstortionist on July 26, 2010, 03:58:45 am
I've turned on debugging and this is what I get


Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 293 (Demo Product 13) to package #1 *****
Package::addItem() - Package weight is now: 3.06
Package::query_rates() - Querying for Source: US/11202 , Destination: US/33972, Weight: 3.06

Notice: Undefined variable: usps_reporterrors in /home/recove19/public_html/financially-powered.com/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 425

Notice: Undefined variable: usps_reporterrors in /home/recove19/public_html/financially-powered.com/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 457
Notice: We are unable to obtain any USPS shipping methods at this time.

Notice: Undefined variable: usps_standardshipping in /home/recove19/public_html/financially-powered.com/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 459
Package::query_rates() - Rate query returned null results.
Shipment::populate() - query_rates() failed.
Notice: We are unable to ship via USPS at this time. System Error.


I'm not sure what you mean by "xml request / reply" I cleared the cache and got the same error.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: xstortionist on July 26, 2010, 04:53:38 am
Has anyone experienced this problem and found a fix?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 26, 2010, 14:01:57 pm
I find it strange that you don't get the xml request/reply.  Without further tracing, I don't really have an answer for you.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: xstortionist on July 26, 2010, 15:27:30 pm
Is there anyone who is willing to make some extra money to fix our issue?

Lowmips do you know anyone who support the product?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 26, 2010, 15:42:09 pm
Is there anyone who is willing to make some extra money to fix our issue?

Lowmips do you know anyone who support the product?
I do know someone...me!
:)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 26, 2010, 20:49:10 pm
****** Bug Fix ******
- plgSystemCartRates had a bug in gathering the destination info
- please reinstall this plugin using the new source
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: cbreninger on August 06, 2010, 08:42:25 am
Hi Reggie,

Does the 5.0 version work with VM 1.1.5?  I am getting the messages unable to obtain any shipping rates and unable to ship.
(http://)

The XML is <Error>
   <Number>80040b1a</Number>
   <Description>Authorization failure.  You are not authorized to connect to this server.</Description>
   <Source>UspsCom::DoAuth</Source>
</Error>

I thought I signed up on the correct web site for the authorization at https://secure.shippingapis.com/registration/

Tearing my hair out to make anything work for these guys...

Thanks for your help.

[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: cbreninger on August 06, 2010, 08:47:24 am
Reggie,

I think I found the answer to my post. I didn't read far enough in the email to this - "When you have completed your testing, email the USPS Internet Customer Care Center (ICCC).They will switch your profile to allow you access to the production server and will provide you with the production URLs."

I haven't done that yet. I'll let you know if that is not the successful conclusion to my problem.

Thanks!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on August 10, 2010, 15:42:21 pm
Hello Reggie,

I have to say Thank You first as this seems to be a great contribution!

I going to dive into your product and have to assume this isn't installed like other components/modules/plugins... Am I understanding the README correctly, extract/upload files, and the module works...?

Lastly, it appears that a few core files are over-written; this could pose problems during VM upgrades, is this true...?

Thank you for your time!
Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 10, 2010, 16:00:44 pm
Hello Reggie,

I have to say Thank You first as this seems to be a great contribution!

I going to dive into your product and have to assume this isn't installed like other components/modules/plugins... Am I understanding the README correctly, extract/upload files, and the module works...?

Lastly, it appears that a few core files are over-written; this could pose problems during VM upgrades, is this true...?

Thank you for your time!
Jim


That's right.  This module does NOT adhere to the 'drop in' specification of the basic shipping modules.  You will replace files and update SQL tables in order to get my module working.  Updating VirtueMart could break the module.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on August 10, 2010, 17:54:41 pm
Thanks for the reply!

Is there any documentation for editing the "uspsv5.cfg.php" file...?
Or can the variables be referenced in some USPS WebTools documentation...?
I'm only concerned with "Priority" and "1st Class" mailing/shipping at the moment, but just need to know where to start...

Thanks for your time!
Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 10, 2010, 18:00:46 pm
Thanks for the reply!

Is there any documentation for editing the "uspsv5.cfg.php" file...?
Or can the variables be referenced in some USPS WebTools documentation...?
I'm only concerned with "Priority" and "1st Class" mailing/shipping at the moment, but just need to know where to start...

Thanks for your time!
Jim

There should be no need to manually edit the configuration file.  All variables in that file are modified by using the module configuration page in VirtueMart.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on August 10, 2010, 18:15:37 pm
Forgive me on this Reggie...

I do not see a USPS module on the modules list page...
I did install the plugin, see that and have enabled it...

Just to reiterate:
   extract, copy files to server, run SQL statement for DB field update.

Did I miss something as it seems pretty straight forward...?

Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 10, 2010, 18:18:08 pm
Forgive me on this Reggie...

I do not see a USPS module on the modules list page...
I did install the plugin, see that and have enabled it...

Just to reiterate:
   extract, copy files to server, run SQL statement for DB field update.

Did I miss something as it seems pretty straight forward...?

Jim

That's odd.  If the files are in place, it should be listed along with the other modules.  Try copying the files again.  The INI file is very important, be sure it gets uploaded as well.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on August 10, 2010, 18:50:57 pm
Oopps...

Guess it would help if I looked in the appropriate location...
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Bill Watkins on August 10, 2010, 21:20:44 pm
OK,

I have Joomla 1.5.15 with VM 1.1.14.  Have your most recent version v5 module installed.  Debugging is on.  Below is what I'm getting:
(User ID & Password *'d out for security reasons)

Quote

Debug: Using existing Session 7efac61a32fbdb0e42d1e6437c3bc9fb, ID: 83639f4d8d993646533c5189b6d86631.
Begin of File: /home/wsfeed/public_html/plugins/system/cartrates/cartrates.tpl.php
' ,WIDTH, -350 ,TITLE,'Tip!' );" onmouseout="UnTip()" >
Debug: uspsv5::__construct() no user information returned from database where $_REQUEST["ship_to_info_id"]==
Debug: uspsv5::__construct() - Using first BT address found.
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 1 (X-Back Harness) to package #1 *****
Debug: Package::addItem() - Package weight is now: 3.06
Debug: Package::addItem() - ***** Adding item 1 (X-Back Harness) to package #1 *****
Debug: Package::addItem() - Package weight is now: 6.12
Debug: Package::addItem() - ***** Adding item 13 (Mush! A Beginner's Manuel of Sled Dog Training) to package #1 *****
Debug: Package::addItem() - Package weight is now: 7.14
Debug: Package::query_rates() - Querying for Source: US/80538 , Destination: US/22193, Weight: 7.14
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
XML Post:
http://testing.shippingapis.com/ShippingAPITest.dll?API=RateV3&XML=<RateV3Request USERID="***********" PASSWORD="************"><Package ID="0"><Service>All</Service><ZipOrigination>80538</ZipOrigination><ZipDestination>22193</ZipDestination><Pounds>7</Pounds><Ounces>3</Ounces><Size>REGULAR</Size><Machinable>TRUE</Machinable></Package></RateV3Request>
XML Result:
<Error> <Number>80040b1a</Number> <Description>API Authorization failure. RateV3 is not a valid API name for this protocol.</Description> <Source>UspsCom::DoAuth</Source> </Error>
Notice: Undefined variable: usps_reporterrors in /home/wsfeed/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 457
Notice: We are unable to obtain any USPS shipping methods at this time.

Notice: Undefined variable: usps_standardshipping in /home/wsfeed/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 459
Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: plgSystemCartRates - uspsv5 object - shipment population failed.
' ,WIDTH, -350 ,TITLE,'Tip!' );" onmouseout="UnTip()" >  
Cart


I cannot get this to work.  Any suggestions?

Thanks,
BW
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 10, 2010, 21:37:29 pm
You're connected to the testing server.  You need to use the production credentials, and the production API URL.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Bill Watkins on August 10, 2010, 22:07:52 pm
Hi Regie,

USPS will not move me to the production server until I've tested.  Here is their recent email:

Quote
Dear USPS Customer,

Thank you for contacting us. The test logs under your UserID do not show valid test requests.  We are unable to move your account to the production server until a valid test request is received.  If you are using third party software, testing is not required. However,  you must provide us with the name of the software you are using.  We can then update your account.

Thank you for using the USPS.…

Any suggestions?
Thanks,
BW
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 10, 2010, 22:08:41 pm
I would contact them and tell them you already have an established solution.  You are NOT developing, you simply need the credentials to plug in to the existing solution.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Bill Watkins on August 10, 2010, 22:41:01 pm
Reggie,

Thanks.  That what I will do.

BW
Title: USPS v5 - Bundled and Unbundled shipping Errors
Post by: SodaJim on August 17, 2010, 22:53:33 pm
Hello Reggie,

I have moved this issue to your thread.

To summarize:
J! --> 1.5.20
VM --> 1.1.5
Module --> vm114-uspsv5.2010.04.05
Plugin --> plgSystemCartRates-USPSv5

Testing with USPS "test" server resulted in errors...
I acquired permission for their Production Server; however, the URLs are different than the defaults when the module is installed:
USPS sent: http://production.shippingapis.com
uspsv5: Production.ShippingAPIs.com
Shipping path default: /ShippingAPI.dll

When I attempt to checkout, I get the following information:

Debug: plgSystemCartRates::onAfterRender() 'attachto' not defined. Defaulting to after Checkout link.
Code: [Select]
Debug: Using existing Session bfea62f96e8bf97e44fff24669453033, ID: 818d11f95bc1ce4463412a6d39037685.
Begin of File: /home/sodajerk/public_html/plugins/system/cartrates/cartrates.tpl.php
' ,WIDTH, -350 ,TITLE,'Tip!' );" onmouseout="UnTip()" >
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 138 (EP1 Condenser Fan Motor) to package #1 *****
Debug: Package::addItem() - Package weight is now: 3.06
Debug: Shipment::addPackage() Adding a new bundled package
Debug: Shipment::addPackage() - Package Number: 2
Debug: Shipment::addPackage() - Package is Bundled
Debug: Shipment::addPackage() - Maxweight: 70
Debug: Package::addItem() - ***** Adding item 170 (P1 Door Liner) to package #2 *****
Debug: Package::addItem() - Package weight is now: 3.06
Debug: Package::addItem() - ***** Adding item 402 (HP1B Slider 55 Lid) to package #2 *****
Debug: Package::addItem() - Package weight is now: 11.73
Debug: Package::addItem() - ***** Adding item 118 (D100G V-44 Price Sticker) to package #2 *****
Debug: Package::addItem() - Package weight is now: 12.75
Debug: Package::addItem() - ***** Adding item 6 (D3W Bottle Opener/Coin Return) to package #2 *****
Debug: Package::addItem() - Package weight is now: 13.77
Debug: Package::query_rates() - Querying for Source: US/ , Destination: US/34997, Weight: 3.06
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request USERID="------------" PASSWORD="-------------"><Package ID="0"><Service>All</Service><ZipOrigination></ZipOrigination><ZipDestination>34997</ZipDestination><Pounds>3</Pounds><Ounces>1</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV3Request>
XML Result:
<?xml version="1.0"?> <Error><Number>-2147219100</Number><Source>Rate_Respond.;clsRateV3.UnpackRateNode;SOLServerRates.RateV3_Respond</Source><Description>Missing value for ZipOrigination.</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error>
Notice: We are unable to obtain any USPS shipping methods at this time.
Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: plgSystemCartRates - uspsv5 object - shipment population failed.
' ,WIDTH, -350 ,TITLE,'Tip!' );" onmouseout="UnTip()" > 

Perhaps the only thing that seems wrong is the "cartrates" plugin not assigned "attach to" field...

Any direction is greatly appreciated!
Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 17, 2010, 23:08:09 pm
Look at the error description in the returned XML.  Missing zip code.  Does your shop have a zip code set up?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on August 17, 2010, 23:38:01 pm
Reggie,

My apologies for not catching that!
I was able to get a shipping quote and will compare to what these items have shipped for in the past...
Then I can adjust ALL product weights and measurements in the system...

Thanks again for your time!
Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 17, 2010, 23:42:38 pm
No worries
-Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: madLyfe on August 19, 2010, 03:55:28 am
so i am new to VM and in shipping list all i see is DHL and UPS.. i need USPS as a shipper. does this mean i need to install your mod and plugin?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 19, 2010, 13:57:07 pm
There are many many more options than just DHL or UPS in the default installation.  Sounds like something went wrong during the installation.

There is a basic USPS module, but it has some issues.  My module attempts to provide a fix for those issues, as well as include some extra functionality.  You do not have to install the plugin with my module.  It is for showing shipping rate estimates in the cart before checkout.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: madLyfe on August 23, 2010, 04:11:24 am
hmm odd.. im only getting DHL and UPS, should i just reinstall? everything else seems to be working fine..
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 23, 2010, 14:22:44 pm
You could try extracting just the shipping modules from the installation archive and re-copying them to your file system.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on August 23, 2010, 16:39:49 pm
madLyfe,

Have you looked enabling other shipping modules...?
Go to: Admin --> Configuration --? Shipping Tab
Select which you wish to utilize, then go to:
Store --> Shipping Module List
The enabled Shipping Modules should be available to configure now...
Title: uspsv5::list_rates() - shipment->populate() failed!
Post by: snelson on August 27, 2010, 07:10:22 am
I'm using the latest version of everything (joomla, vm, & uspsv5) and have been switched to the production servers. I've configured the USPSv5 module, but I always get the errors below. I'm at a total loss on where to go with this problem. Thanks in advance for any ideas anyone has.
Steve

Please select a Shipping Method!
Debug: Starting Shipping module: uspsv5
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 79 (Cream) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.13132
Debug: Package::addItem() - ***** Adding item 76 (Bronze Green) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.26264
Debug: Package::query_rates() - Querying for Source: US/62376 , Destination: US/62376, Weight: 0.26264
Debug: uspsv5::get_rates_array() - Using cached rate for US, 62376, US, 62376, 0.26264
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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 27, 2010, 13:47:57 pm
Steve,
Have you selected services to offer in the module config? Try selecting ALL services.  If you get good results, try whittling it down to just the ones you want to use.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on August 28, 2010, 01:45:02 am
Reggie,

I already had all the Priority Mail services checked and it was still failing. At your suggestion I checked all  levels of mail service. It made no difference. That's when I realized I might have a file caching issue on my local PC. So I cleared the cache and your module worked. However, whenever I check or uncheck services I have to clear my cache in order for the changes to appear at checkout. Must be a browser setting.

Thanks for the reply. It got me thinking in the right direction.

Steve
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 28, 2010, 01:48:16 am
There is a session related caching function in the module itself.  Try logging out and back in to Joomla next time.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on August 28, 2010, 06:13:46 am
I'm using all the latest components (Joomla! v1.5.20, VM v1.1.5, and USPS v5.2010.04.05 ).

Tonight, during testing, I discovered that in Step 4 of the VM checkout process, where the buyer has to confirm the order, shipping address, shipping rate, and payment method, the displayed shipping address offered for confirmation is the Store name and address (see attached image), not the buyer's. This doesn't seem right. Why would we want the buyer to confirm the store address?

If this is an error, I'm not sure whether it would be a USPSv5 shipping module error or a VM error. So I thought I'd post it here first and get Reggie's take on it.

If you'd like to see it for yourself go to http://chinapaintingtoday.com/store (http://chinapaintingtoday.com/store), register with some dummy user info (activation not required), add a china paint to the cart, and then checkout through step 4.


[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 28, 2010, 14:37:56 pm
Sounds like an SEF issue. Are you using SEF?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on August 28, 2010, 16:39:49 pm
Not to my knowledge. I don't even know what SEF stands for.

Steve
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 28, 2010, 16:42:50 pm
I will need to run a debug session in order to determine the cause of the issue.  As this will take some time, I'll need to charge a small fee.  Please PM or email me.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 28, 2010, 22:14:12 pm
I'm using all the latest components (Joomla! v1.5.20, VM v1.1.5, and USPS v5.2010.04.05 ).

Tonight, during testing, I discovered that in Step 4 of the VM checkout process, where the buyer has to confirm the order, shipping address, shipping rate, and payment method, the displayed shipping address offered for confirmation is the Store name and address (see attached image), not the buyer's. This doesn't seem right. Why would we want the buyer to confirm the store address?

If this is an error, I'm not sure whether it would be a USPSv5 shipping module error or a VM error. So I thought I'd post it here first and get Reggie's take on it.

If you'd like to see it for yourself go to http://chinapaintingtoday.com/store (http://chinapaintingtoday.com/store), register with some dummy user info (activation not required), add a china paint to the cart, and then checkout through step 4.

For anyone following this conversation, the issue was that the "Store Address Format" was using literals instead of the special "placeholder" variables.
(Administration->Store->Edit Store->"Store"->Store Address Format).
So, instead of the special variables being swapped out during checkout, the literals were displayed.  I can see how "Store Address Format" is confusing, making you think that it means only the store's address, when it actually means ALL addresses.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on September 03, 2010, 02:12:03 am
so i am new to VM and in shipping list all i see is DHL and UPS.. i need USPS as a shipper. does this mean i need to install your mod and plugin?
There is a default USPS module that ships with VM, not sure why you don't see it.  My module fixes several issues with the original module, so you may want to go ahead and use it to save some headache :)

Just be aware that it modifies some core files, so upgrading VirtueMart in the future will be a little more difficult.
Title: Re: USPS v5 - Bundled and Unbundled shipping (VM1.1.5 update)
Post by: SparksArts on September 20, 2010, 18:08:17 pm
Hi, Reggie

I finally got around to updating VM to the latest version 1.1.5. One of the VM files that is changed is administrator/components/com_virtuemart/classes/ps_product.php, which is also one of the files replaced by your USPS v5 shipping module.

How do I resolve the issue of VM 1.1.5 replacing your copy of ps_product.php?

1. Keep the new version installed by VM 1.1.5? (this will probably disable ships alone feature of your USPS module).
2. Overwrite the new VM file with the ps_product.php from USPS v5? (Removing whatever changes VM made to that file in the 1.1.5 update).
3. Try to combine the two? (I already tried but must have screwed up the syntax because it broke my site).
4. Another option I haven't considered?

Thanks!
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on September 20, 2010, 18:21:06 pm
Richard,
Merging my updates with the VM115 version of the ps_product file would be the best way to go.  If you'd like to underwrite it, I could port the entire module over to VM115.  I've already done so with my UPSv2 and FedExv2 modules.  Those took about 2-3 hours each, including basic testing.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on September 21, 2010, 00:50:13 am
Reggie,

Great offer, Reggie, but I don't think I can underwrite all your hours for this project right now. Maybe someone else can pitch in a portion?

In the meantime, what's the damage of running VM 1.1.5 with your vm114-uspsv5.2010.04.05 shipping module? I'm not using the "Ship Alone" option. All I need is the basic USPS rates returned to the cart.

Thanks,
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on September 21, 2010, 00:54:21 am
My module modifies the product class file, some back end HTML, a couple of language files, and the database. There is potential to lose any bugfixes or new language contained within.

In theory it should work, since it's only a few files.  But in practice, there is no guarantee :).  You could check the changelog for VM115 and see if any of the files I modified are listed.  If they are not, it should be OK.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on September 21, 2010, 01:40:44 am
I already checked the VM 1.1.5 changelog before my first post. The only file VM replaced that you use is

administrator/components/com_virtuemart/classes/ps_product.php

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on September 21, 2010, 01:47:06 am
Then it's just a matter of merging the UPSv2 updates with the VM115 version of the file, and testing.  The testing would be the most time consuming part.

:)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on September 21, 2010, 01:50:43 am
I'll attempt to merge the files again tomorrow and let you know how it goes. If I get it to work, I'll attached the new ps_product.php file to my post.

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping - updated for VM 1.1.5
Post by: SparksArts on September 22, 2010, 19:49:03 pm
I was successful at merging the ps_product.php file. I'm attaching a zip file with the update. Just unzip and replace the administrator/components/com_virtuemart/classes/ps_product.php file on your server.

Just to recap what this is all about, the update from VirtueMart 1.1.4 to 1.1.5 replaced only 1 file that is part of the USPS v5 shipping module (the latest version vm114-uspsv5.2010.04.05). That one file is ps_product.php. If you upgrade VM to 1.1.5, that file is overwritten and code you need for the USPS module is lost.

This is what I did to fix it:

I compared the ps_product.php files from VM114 and 115 to find what was changed. I only found 2 places that were different. See attached zipped .rtf file for the details.

I took those 2 changes and added it to the USPS v5 ps_product.php file that was based on VM 1.1.4.

I replaced that file on the server of 2 sites. One worked perfectly right from the start. The other threw an error at the beginning about "unexpended end..." I cleared the cache on my browser and in the site's Joomla! Admin Tools. Then reloaded the site a couple times in the browser and it worked. I then tried it in several different browsers and each worked perfectly the first time.

I don't guarantee this is perfect, but it appears to be working. I have several other Joomla! - VirtueMart websites to update with this, so I'll report what happens with those. Also, I don't use the Ships Alone function, so I can't say what happens with that.

But at the very least, this may help someone else along the way to making it perfect.

Good luck,
Richard

[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on September 22, 2010, 19:53:45 pm
Very cool.  Let me know how it works out. :)

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on October 03, 2010, 02:05:29 am
Reggie,

So far I haven't had any issues with my ps_product.php file updated for VM 1.1.5 (see 2 posts up).

On another note, I have a question about the setting "Show standard shipping options on error or no USPS results?" Where do I set the standard shipping options? And will this show up only when your USPS module returns an error?

Thanks,
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on October 03, 2010, 02:12:47 am
Standard shipping means the standard shipping module.  Look up the settings for that to create standard rates.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on October 03, 2010, 02:45:53 am
Thanks, I set up and activated the standard shipping module with one flat rate price for all zip codes in the US. Then I tested it by checking out with a bad zip code, but it just displays "We are unable to obtain any USPS shipping methods at this time." It doesn't show the standard shipping option even though I have that option set to Yes.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on October 03, 2010, 03:47:28 am
Yeah, that's some legacy code that was in the original module.  It does show for some errors, but not all.  That would be a good thing to clean up in the future.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on October 07, 2010, 21:06:03 pm
Hey Reggie,

I'm beginning to finalize a Site and have been placing orders to verify/check each stage of the checkout/purchase process...

What I cannot figure out is why the following information is being displayed during checkout just above the Shipping Estimate or while viewing the Cart:
Code: [Select]
Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 170 (P1 Door Liner) to package #1 *****
Package::addItem() - Package weight is now: 4.2
Shipment::addPackage() Adding a new unbundled package
Shipment::addPackage() - Package Number: 2
Shipment::addPackage() - Package is Unbundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 139 (EP1A Evaporator Fan Motor) to package #2 *****
Package::addItem() - Package weight is now: 3.15
Package::addItem() - ***** Adding item 17 (D10W Serve Yourself) to package #1 *****
Package::addItem() - Package weight is now: 4.239375
Package::query_rates() - Querying for Source: US/93619 , Destination: US/34997, Weight: 4.239375
Package::query_rates() - Querying for Source: US/93619 , Destination: US/34997, Weight: 3.15

Thank you for your time!
Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on October 07, 2010, 21:09:11 pm
It's debug stuff only shown to administrators.  You should not see that if you're logged in as a normal user.  You can comment it out by looking for the "debugLog" function in the class.Package, class.Shipment, and uspsv5.php files.

Adding a debug message "toggle" is on my to-do list for pretty much all of my modules, if I ever get time! :)

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on October 07, 2010, 22:32:04 pm
Thanks Raggie!

I checked things under a regular "registered" user and the info did not display as you stated.
Sorry for the mundane question, guess I should double check things from the end user login...

Thanks again for your time!
Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on October 07, 2010, 22:32:39 pm
No worries :)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ekc_maga on October 11, 2010, 17:26:56 pm
Hi, it looks like if the zip code enter is more than 5 digit, the module will not work, for example:

65401      will work
65401-2230 will not work.
right?

But customers don't know that and there is no check in the zip code text enter field,it is there a way to just use the only first 5 digit for USPS zip or add a zipcode check on the enter field? It is not a big problem but sometime customer don't know that and can't check out.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on October 11, 2010, 17:29:34 pm
Correct.
This is a limitation of the USPS API.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SodaJim on October 11, 2010, 19:52:29 pm
Good to know ! ! !
Perhaps adding a notation for visitors may eliveiate issues...
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on October 11, 2010, 19:53:41 pm
That's a good idea, maybe in the sign-up form have it listed somewhere.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ynottony on November 09, 2010, 21:32:41 pm
Hi Reggie,

Thanks for all your help, I used your FedEx V2 Module and it works perfect. I just installed the USPS V2 module (vm115-upsv2.2010.11.05) but get the following error:

Debug: Starting Shipping module: uspsv5

Fatal error: Cannot redeclare class Package in /home/minituni/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5/class.Package.php on line 21

Any help will be much appreciated.

Tony

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on November 09, 2010, 21:34:46 pm
Tony,
The modules were not designed to work together.  Installing the USPSv5 module over the FedExv2 module will lead to this error.  You can try replacing the FedExv2 files again, but this may not completely fix the problems of installing both.

Did you make a backup first?

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ynottony on November 09, 2010, 21:41:27 pm
Reggie,

Thanks for the super quick response, so I can have only one shipping option available to my customers? I wanted to give them FedEx, UPS and USPS shipping options as I have seen it on other non Joomla sites.

Thanks
Tony
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on November 09, 2010, 21:44:41 pm
Tony,
As of right now, you can only use one of my modules.  You could use the original USPS module (that comes with VirtueMart) with my FedExv2 module, if you'd like.

If you need both my USPSv5 and FedExv2 modules together, I would need to merge the necessary versions together and install the result.  This takes time.

FYI, I do plan on merging all of my modules into one large module for good at some point in the future.  I just don't know when that will be :).

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ynottony on November 09, 2010, 21:49:02 pm
Hi Reggie,

Thanks I just learned something. I did make a backup, I guess I should restore the site from the backup?

Tony
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on November 09, 2010, 21:50:43 pm
Tony,
I would think that is the best course of action.  USPSv5 and FedExv2 have enough differences that trying to fix it manually will be more time consuming than simply restoring from backup.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: piperpilot on December 09, 2010, 02:46:52 am
Reggie,

Is there an option to add a tracking number with your module?  I don't see anything and want to record the tracking numbers in both the order status as well as send it in the shipping confirmation email.

Thanks,
Curtis
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on December 09, 2010, 14:23:41 pm
Curtis,
At this time, there is not.  My UPSv2 module has an after-the-fact tracking number mechanism, however.  I'd be happy to port that code to USPSv5, if someone would underwrite it.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping - New USPS API?
Post by: Bill Watkins on December 18, 2010, 16:08:09 pm
Hi Reggie,

Thanks for a great VM plugin!  Just got the below inf in email from the USPS the other day.  Will this affect your plugin?

Thanks!

Quote
Dear Webtools Integrator,
On January 2, 2011, USPS will update domestic shipping services and international pricing and product features. For detailed information on prices and new product features, please reference the Federal Register Notice at http://pe.usps.com/FederalRegisterNotices.asp#Jan_2011_Prices.

For a list of the new prices, please reference the Postal Explorer website at http://pe.usps.com/. The information is on the left hand side under "NEW* Jan. 2, 2011 Pricing Information"

Price Change updates will be available in the Web Tools testing environment for integrator access on or around December 13. The test environment can be accessed, using your production UserID, via the following URL scheme, host and path:

Secure APIs: https://stg-secure.shippingapis.com/ShippingApi.dll
Non-secure APIs: http://stg-production.shippingapis.com/ShippingApi.dll
Please note that the changes below are intended to be backwards compatible, however, may not be depending on how individual programs are integrated with the APIs. Technical guides, inclusive of the changes below, can be obtained from the USPS Internet Customer Care Center (1-800-344-7779 or icustomercare@usps.com).

Web Tools APIs will be affected in the following manner:
§ All Web Tools APIs with postage prices incorporated will be updated to reflect the price changes
§ All Rate Calculator API integrators are encouraged to migrate to the latest API versions (RateV4, IntlRateV2):
o RateV4 and IntlRateV2 will be the only Rate Calculator API versions to offer the full range of new products and functionality

o Rate, RateV2, RateV3 and IntlRate will be retired in May 2011, requiring all integrators to migrate to the latest versions

§ Domestic Rate Calculator API Changes
o New <Container> request enumerations will be added to RateV4 to support the USPS product offerings and prices listed in the Federal Register Notice

o New response nodes in Rate, RateV2, RateV3 and RateV4 to support the USPS product offerings and prices listed in the Federal Register Notice

o New optional request values in RateV4 to support USPS extra services offerings and prices
o New optional response nodes in RateV4 to support USPS extra services offerings and prices
§ International Rate Calculator API
o New response nodes in IntlRate and IntlRateV2 to support the USPS product offerings and prices listed in the Federal Register Notice

o New optional request values in IntlRateV2 to support USPS extra services offerings and prices
o New optional response nodes in IntlRateV2 to support USPS extra services offerings and prices
o New <AdditionalRestrictions> response value in IntlRate and IntlRateV2
§ Express Mail Label and Hold For Pickup Express API
o New <Revision> and <Container> request data tags to support the Legal Flat Rate Box
o New <Size>, <Length>, <Width>, <Height> and <Girth> request data tags
§ Delivery Confirmation and Signature Confirmation
o New <Revision> and <Container> request data tags to support the USPS product offering and prices listed in the Federal Register Notice

§ International Label APIs
o New <Container> request enumerations will be added to support the USPS product offerings and prices listed in the Federal Register Notice

o New <Revision>, <Size>, <Length>, <Width>, <Height> and <Girth> request data tags
o New <AdditionalRestrictions> response value
§ Customs Forms CN22 and CP72
o New <AdditionalRestrictions> response value
Please contact the USPS Internet Customer Care Center with any questions or concerns at 1-800-344-7779 or icustomercare@usps.com.

- Web Tools Program Office

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on December 18, 2010, 16:43:01 pm
********** IMPORTANT ***********

It looks like they're adding in new features and functionality, but it's backwards compatible.  The current USPSv5 module will NOT support those features, as it uses the V3 API.  Unfortunately, it looks like V3 is being phased out Q2 next year, so my module will cease to work whatsoever at that time.

At some point in the near future, my module will need to be updated to V4 and have the additional services support added.

To see if my module will work come January, you could try configuring it with the new development environment URL outlined in the message (use the HTTP one).

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Bill Watkins on December 18, 2010, 17:26:30 pm
Thanks Reggie!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jbbaab44 on December 21, 2010, 15:07:03 pm
I am using medium flat rate box, and am looking for a way to mod this so i can allow bundles of 2 for each box. IOW, I want every 2 items to ship separately instead of every 1 item.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on December 21, 2010, 15:27:21 pm
Check out my UPSv2 code.  It has a stacking feature that would allow you to stack the same product with itself.  Maybe you can modify that to allow stacking different products.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 02, 2011, 20:13:26 pm
Unfortunately, I didn't get the notice of the upcoming change. The V5 module stopped working this morning.

Anyone working on updating / resolving the change today?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 02, 2011, 21:28:05 pm
The notice said "May 2011".  Are you sure it wasn't a scheduled downtime, or something of that nature?

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 02, 2011, 21:39:42 pm
I don't think it's scheduled downtime. I have your USPS Shipping module v5.2010.04.05 installed on 3 sites and they are all returning system errors. The Cart Shipping Rates (USPS) 1.0.2010.04.05-USPSv5 plugin returns nothing on the front end when submitted.

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: buggypartsnw on January 02, 2011, 21:50:40 pm
I'm using v4.2 on my site and the same thing is happening.

Many e-commerce sites are experiencing the same issue with USPS today since their change.

I made a separate thread about it here: http://forum.virtuemart.net/index.php?topic=79911.0 (http://forum.virtuemart.net/index.php?topic=79911.0)

-Mike
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 02, 2011, 22:12:18 pm
I don't think it's scheduled downtime. I have your USPS Shipping module v5.2010.04.05 installed on 3 sites and they are all returning system errors. The Cart Shipping Rates (USPS) 1.0.2010.04.05-USPSv5 plugin returns nothing on the front end when submitted.

Richard

Can you get me a full debug output? I'm looking for the XML input/output.  Email it to me if possible please.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 02, 2011, 22:23:09 pm
I don't think it's scheduled downtime. I have your USPS Shipping module v5.2010.04.05 installed on 3 sites and they are all returning system errors. The Cart Shipping Rates (USPS) 1.0.2010.04.05-USPSv5 plugin returns nothing on the front end when submitted.

Richard

Can you get me a full debug output? I'm looking for the XML input/output.  Email it to me if possible please.

Reggie

Just sent you the xml post/response via email @ lowmips
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 02, 2011, 22:28:09 pm
Reggie,

I just email my XML input/output to you as well.

Thanks for checking it out!
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 02, 2011, 22:34:18 pm
They've changed the service names again.  It's a matter of determining the new names and updating the config code to match.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 02, 2011, 22:57:18 pm
They've changed the service names again.  It's a matter of determining the new names and updating the config code to match.

Sent a donation your way. =)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 02, 2011, 23:18:14 pm
OK. As far as I can tell, they simply added a "registered" symbol to the end of every service name.  I've updated both the module and the plugin to support this extra entity.  I have tested it locally and got several rates with the new names.  I've updated the files attached to this post, and I've also updated the files on my website.

*** Update: VirtueMart is having issues with file attachments. You can download the updated files from my website. ***

You'll want to go into the config, save it, and then reconfigure it again and save it again for the new names to take effect in your module.  You can simply uninstall and reinstall the new cart-rates.

I appreciate the donation, and if anyone else would like to donate simply paypal it to my email address.  Thanks!

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: buggypartsnw on January 02, 2011, 23:51:00 pm
Hi Reggie -

Thank you for your work. Can you provide a link or pointer as to where on your website the update is and/or the filename?

I can't seem to find an update for USPS on your "Free Software" page newer than April, 2010.

-MIke
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 02, 2011, 23:54:00 pm
I updated the config files in that latest release.

USPSv5.2010.04.05 (http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&download=38:uspsv5.2010.04.05&id=1:virtuemart&Itemid=18)

Cart Rates (http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&download=39:plgsystemcartrates-uspsv5&id=1:virtuemart&Itemid=18)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: buggypartsnw on January 03, 2011, 00:27:55 am
That fixed the problem - thank you again, Reggie!

-Mike
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 03, 2011, 01:21:37 am
I uninstalled the 'VirtueMart - Cart Shipping Rates (USPS)' and installed the new file 'plgsystemcartrates-uspsv5' from the link two posts back. Still same error. I tried to install 'vm114-uspsv5.2010.04.05' and get an error, 'Could not find an XML setup file in the package'. Did I miss something? Still new to Virtuemart.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 01:38:49 am
Benjamin,
VirtueMart shipping modules are "drop in" meaning you manually copy the files over.  My modules require a bit more work.  Check out the README file for installation instructions.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 03, 2011, 02:00:48 am
Benjamin,
VirtueMart shipping modules are "drop in" meaning you manually copy the files over.  My modules require a bit more work.  Check out the README file for installation instructions.

Reggie

Ah, yes. That would explain it. =)
I updated the two new files and now its back to normal. Appreciate your work! 
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 02:15:09 am
Glad you got it working!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 03, 2011, 03:26:13 am
Reggie,

The new files worked for me, but not at first. I cleared my Firefox browser cache but that didn't make any difference. I had to quit the browser and restart to force it to use the new files.

Thanks for fixing this so quickly!
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on January 03, 2011, 07:17:43 am
Hi Reg - You are a lifesaver! I just installed your mod (and donated!) - it calculates my shipping right but I am on VM 1.1.5 and on the "choose your shipping method page I'm getting all of this extra verbiage (which will confuse our customers):

Please select a Shipping Method!
Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 3 (14" Betsy McCall Doll, Mary Hoyer Dress Sunday Best) to package #1 *****
Package::addItem() - Package weight is now: 0.25
Package::query_rates() - Querying for Source: US/98685 , Destination: US/98661, Weight: 0.25
 USPS Priority Mail® ($5.10)

Any suggestions?

I updated the config files in that latest release.

USPSv5.2010.04.05 (http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&download=38:uspsv5.2010.04.05&id=1:virtuemart&Itemid=18)

Cart Rates (http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&download=39:plgsystemcartrates-uspsv5&id=1:virtuemart&Itemid=18)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 14:37:45 pm
Hi,
All that "extra" info is only shown to administrators.  If you don't want it, find the "debugLog" functions and comment out the "echo" line. Regular users will never see that info.

Thanks for the donation!

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on January 03, 2011, 17:22:09 pm
You so totally earned it! Thanks again!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jeffeagle on January 03, 2011, 17:58:35 pm
Hello,

Thank you for the Update, unfortunately the USPS First class mail is not working, only Priority Mail is. I have check both the USPS First class mail flat and parcel and I do not see any of those options when checking out. Is there something I am missing? Thanks and also made a Donation
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 03, 2011, 18:18:07 pm
I'm having a similar problem on one of my sites. No matter which shipping methods I select in the configuration, it only shows Priority Mail $5.10 as a shipping option on the front end.

With VM debug on, it says "Debug: uspsv5::get_rates_array() - Using cached rate for US, 93312, US, 93561, 1.38."

Even when I turn off Priority Mail as an option, it still shows Priority Mail as the only option on the front end.

I've tried clearing the cache in the browser, clearing the Joomla! cache under Tools, quiting my browser and starting again - still no change. So how do you clear the cache?

Thanks!
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 18:20:09 pm
Log out of Joomla to end your session, then back in to try again.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 03, 2011, 18:31:08 pm
Logged out of Joomla Admin and front end, then logged back in. Checked the configuration and it's still set right. But on the front end still only showing Priority Mail.

Now, when I turn off Priority Mail and keep 4 other shipping options enabled, I get "Notice: We are unable to ship via USPS at this time. System Error."

Reggie, I'll email you the XML input/output.

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 19:36:16 pm
OK.  I've fixed the domestic service names.  I will need a good XML reply from an international request to fix the international names, please.

I've updated the files on my website.  All you need to do is swap out the uspsv5.php file located in /administrator/components/com_virtuemart/classes/shipping/uspsv5.php.  Then save the config twice again.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 03, 2011, 20:12:05 pm
OK.  I've fixed the domestic service names.  I will need a good XML reply from an international request to fix the international names, please.

I've updated the files on my website.  All you need to do is swap out the uspsv5.php file located in /administrator/components/com_virtuemart/classes/shipping/uspsv5.php.  Then save the config twice again.

Reggie

XML post/response sent for international sent to your email @ lowmips
I am getting the error for international..
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 20:42:25 pm
*** UPDATE ***

Thanks all who sent in International XML request/replies.  I've updated the files again with the new names.  Swap out uspsv5.php, and save the config twice.  Be careful that you reconfigure the services you want, as USPS has gone very granular with some of its services (CDs, Gift Cards, etc).

/administrator/components/com_virtuemart/classes/shipping/uspsv5.php

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 03, 2011, 21:46:25 pm
I updated the uspsv5.php file and now the shipping module is working for both domestic and international deliveries. But now the Cart Rates plugin returns an error for international deliveries only. The XML response says "Missing value for Country."

We're slowly chipping away at this sucker!
Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 21:48:31 pm
The plugin stopped functioning after the International service names update? That should not have happened. The code responsible for the country code sent to the API is completely unrelated to the service name matching code on the response XML.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 03, 2011, 22:12:03 pm
Yes, it doesn't make sense. But the same thing is happening on all 3 of my sites. USPSv5 shipping module works fine during checkout. The USPS Cart Rates plugin returns an error on all international addresses, works fine on domestic.

What more can I tell you?

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: afterglow80 on January 03, 2011, 23:02:32 pm
Module works well for the most part (thanks for such a quick fix)! Found a couple issues with The USPS Shipping module v5.2010.04.05 on Virtuemart 1.1.4, Joomla! 1.5.22.

Under the shipping method you get this->
Please select a Shipping Method!


Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 342 (Originals Large) to package #1 *****
Package::addItem() - Package weight is now: 0.765
Package::query_rates() - Querying for Source: US/92649 , Destination: US/92649, Weight: 0.765
USPS Priority Mail® ($5.10)

Is there any way to remove the extra info? and just have USPS Priority Mail® ($5.10) like it used to be? It confuses our customers :(


And under the review info area we're getting, Priority Mail<sup>&reg;</sup>;
Please review the provided data and confirm the order!
Shipping Rate:   USPS; Priority Mail<sup>&reg;</sup>; $5.10;

Thanks for any help! :)
I know it's a pain!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 23:04:53 pm
The "extra" info you are seeing should only ever been seen by administrators, or while in debug mode.  Normal users should never see it.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 03, 2011, 23:10:20 pm
CartRates is fixed.  Download the file again from my website and re-install.

-Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 04, 2011, 00:43:02 am
Thank you, Reggie

Now everything is working perfectly once again!

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: consolecustoms on January 05, 2011, 04:47:00 am
Reggie,

Everything is working fine for me now but I noticed today that on email receipts and also on the back end instead of showing the registered symbol I get <sup>&reg;</sup> but on the site it shows the registered symbol just fine. Any idea why this is happening?

Thanks,
Chris
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 05, 2011, 15:39:26 pm
Reggie,

Everything is working fine for me now but I noticed today that on email receipts and also on the back end instead of showing the registered symbol I get <sup>&reg;</sup> but on the site it shows the registered symbol just fine. Any idea why this is happening?

Thanks,
Chris

I've updated the code to strip the registered mark from the service name after the user chooses a service.  It was either this or edit several template files to convert the html entities again, which would add to the file count and make installation a bit more of a pain.

Re-download and swap out the uspsv5.php file:
/administrator/components/com_virtuemart/classes/shipping/uspsv5.php

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on January 05, 2011, 17:51:43 pm
Hey Reggie, can you provide the download link or verifiy which one on your site is the correct one? Also as an FYI - I am using Joomla 1.5 and VM 1.5 - and in the process of updating to VM 1.6 this week - will let you know how your extension works on the upgrades as well.

Thanks!
Harmony
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 05, 2011, 17:56:02 pm
http://www.lowmips.com/joomla/index.php?option=com_phocadownload&view=category&id=1:virtuemart&Itemid=18

vm114-uspsv5.2010.04.05.zip
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: beyondthenet on January 06, 2011, 00:27:43 am
I was getting the error "Notice: We are unable to ship via USPS at this time. System Error."

So I installed the update "USPS Shipping module v5.2010.04.05" which shows up as the selected shipping method in virtuemart config.

I saved/resaved config but the same error message shows up at http://mnashop.org

Thank you!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 06, 2011, 00:30:31 am
Did you end your session by logging out of joomla? Are you shipping domestically or internationally? Are you getting XML results, or an error?  Have you tried debug mode in virtuemart?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: beyondthenet on January 06, 2011, 00:42:42 am
I just logged out and logged in, re-saved config. I just turned on debug mode but cannot interpret the error codes.

My test was for a domestic order.

The error I get is "Notice: We are unable to ship via USPS at this time. System Error."

Thanks again for looking at http://mnashop.org!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: beyondthenet on January 06, 2011, 19:02:03 pm
Any suggestions to try?

If not, about how much to hire you to fix this?

Thank you
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: buggypartsnw on January 06, 2011, 19:46:08 pm
I've got a new issue as well.

Since installing the files for uspsv5 I can no longer update quantities for my products.

They correctly decrement when one is sold, but I cannot manually alter the in-stock quantity in any way.

The ONLY change that has been done to my site is to install the uspsv5 files. I did not update my sql database to allow for the ship-separately functionality as I didn't need that. Could that be the cause, and if so, how do I revert it?

-Mike

Edit: I had (wisely) done a complete backup of my site before altering it on Sunday. I replaced the ps_product.php file in /classes with my original one and now it allows me to update the inventory again.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 06, 2011, 20:53:55 pm
You cannot skip any installation steps in the module, or it will break your site like you've experienced...
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 06, 2011, 21:08:48 pm
Any suggestions to try?

If not, about how much to hire you to fix this?

Thank you

Without the debug info, I can't tell you anything.  Sure, I'll be happy to look at it for a small fee, but I'm currently trying to meet a deadline on another project.  I may be able to check it out later tonight.  Please email me Joomla admin credentials, and I'll let you know tonight if/when I get a chance to look into it.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: beyondthenet on January 06, 2011, 21:32:18 pm
Thank you, I just emailed you the ftp and admin login info, and turned on the debug mode.

Ken
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: KW on January 06, 2011, 22:22:56 pm
I'm testing the USPS Shipping Module but can't proceed past step 2 in the checkout process because there are no options listed below "Please select a Shipping Method!".  I have uploaded all files per the README.txt file included with usps5 and I added a new field called 'ship_alone' to the 'jos_vm_product' table.

GGGRRRRRRRRR!!! NEVER MIND.  I found the problem.  The store owner didn't the weights on any of his products.  I added some weights and now it's communicating with USPS' testing server.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 06, 2011, 22:41:46 pm
You'll need to provide debug information.  Put your shop into debug mode and send me the results.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: KW on January 07, 2011, 02:19:16 am
Now that I'm connected to the live production shipping servers I'm getting the same kind of error (I added the asterisks to the error lines).  

   Shipment::addPackage() Adding a new bundled package
   Shipment::addPackage() - Package Number: 1
   Shipment::addPackage() - Package is Bundled
   Shipment::addPackage() - Maxweight: 70
   Package::addItem() - ***** Adding item 25 (Biscotti Bites) to package #1 *****
   Package::addItem() - Package weight is now: 0.6
   Package::query_rates() - Querying for Source: US/95610 , Destination: US/95681, Weight: 0.6
   * Notice: We are unable to obtain any USPS shipping methods at this time.
   * Package::query_rates() - Rate query returned null results.
   * Shipment::populate() - query_rates() failed.
   * Notice: We are unable to ship via USPS at this time. System Error.

I've tried logging out then back in, different browser, cleared the cache and even connected through a different IP address but I still get that errors.

I have uploaded all files per the README.txt file included with usps5 and I added a new field called 'ship_alone' to the 'jos_vm_product' table.

These are my configurations:
* VirtueMart > Admin > Configuration > Choose your store's shipping method: "The USPS Shipping module v5.2010.04.05. Supports bundled and unbundled shipments. For VirtueMart 1.1.4" is the only shipper checked.

* VirtueMart > Store > Shipping Module List > USPS Configure Ship Method > Shipping Module Configuration: uspsv5.php:
* Correct UN & PW entered
* USPS shipping server: http://production.shippingapis.com
* USPS shpping path: /ShippingAPI.dll
* Domestic Shipping Options: Only Express Mail and Priority Mail are checked.

Please let me know what the solution is to this problem.  Thanks!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 07, 2011, 02:22:08 am
I'll need to see the XML request/reply.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: KW on January 07, 2011, 02:25:01 am
I'd like to see the XML request/reply myself.  How do I get that?  I turned on debug and viewed the source but didn't see it anywhere.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 07, 2011, 02:28:52 am
To Obtain the XML Request/Reply:

Turn VirtueMart debug on
LOG OUT of the front end to clear the cache
LOG IN as an administrator and go through the checkout process again
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: KW on January 07, 2011, 04:06:42 am
Ah, I didn't realize VM had a separate debug function.  Now I see the problem.  I included "http://" in the shipping server URL which produced an XML Post starting like this:

http://http://production.shippingapis.com/ShippingAPI.dll?API=RateV3&XML...

Once I stripped out the extraneous "http://" it started working.  Maybe you can add some code to your module check for whether or not the user has that in the URL and strip it if it does.  That way it will work either way and you won't have to waste your time helping people who put in the full URL and get the error.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on January 08, 2011, 04:06:39 am
Customer receives shipping error during checkout.

Reggie,

About an hour ago I rcvd an email from a customer who couldn't complete checkout because she was running into a shipping error.

I tried to do a small test purchase and got the response below. The last sale we had was on 12/31/2010. I was wondering what was going on. I've made no changes to anything. Was working, now it don't.

Steve
ChinaPaintingToday.com
---------------------------------------------------------------------------------
Please select a Shipping Method!

Debug: Starting Shipping module: standard_shipping
Debug: The Shipping Module 'standard_shipping' couldn't
find a Shipping Rate that matches the current Checkout configuration:
Weight: 0.02
Country: USA
ZIP: 62348


Debug: Starting Shipping module: uspsv5
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 131 (PO 005 Ice Blue) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.028
Debug: Package::query_rates() - Querying for Source: US/62376 , Destination: US/62348, Weight: 0.028
Debug: uspsv5::get_rates_array() - Using cached rate for US, 62376, US, 62348, 0.028
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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 08, 2011, 04:09:03 am
USPS changed their service names again.  You'll need to re-download and re-install USPSv5.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on January 08, 2011, 05:11:40 am
The cart rates plug in uninstalled/reinstalled successfully.
However I got the following error when I tried to install the USPSv5 that I just downloaded:
Error! Could not find an XML setup file in the package.

So I FTP'd the 2 files mentioned in your ChangeLog.txt up to the site. Logged off VM, closed all browsers, logged back on, attempted to make a purchase and got the following error:
_________________________________________________________________________________
Please select a Shipping Method!

Debug: Starting Shipping module: standard_shipping
Debug: The Shipping Module 'standard_shipping' couldn't
find a Shipping Rate that matches the current Checkout configuration:
Weight: 0.02
Country: USA
ZIP: 62348

Debug: Starting Shipping module: uspsv5
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 131 (PO 005 Ice Blue) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.028
Debug: Package::query_rates() - Querying for Source: US/62376 , Destination: US/62348, Weight: 0.028
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.

XML Post:
http://production.shippingapis.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request USERID="** Removed **" PASSWORD="** Removed **"><Package ID="0"><Service>All</Service><ZipOrigination>62376</ZipOrigination><ZipDestination>62348</ZipDestination><Pounds>0</Pounds><Ounces>1</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV3Request>

XML Result:
<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>62376</ZipOrigination><ZipDestination>62348</ZipDestination><Pounds>0</Pounds><Ounces>1</Ounces><Container></Container><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>13.25</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>13.25</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>25.75</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="30"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.10</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box</MailService><Rate>14.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box</MailService><Rate>10.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="44"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="29"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="38"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="42"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="40"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Package</MailService><Rate>1.22</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Envelope</MailService><Rate>1.22</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Letter</MailService><Rate>0.64</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Postcards</MailService><Rate>0.28</Rate></Postage><Postage CLASSID="15"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Postcards</MailService><Rate>0.44</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>2.38</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>

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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 08, 2011, 05:13:20 am
You'll need to save the module configuration, then save it again.  Then log completely out of Joomla on the front end to clear the cache, then log in and try again.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on January 08, 2011, 06:23:53 am
EDITED by REGGIE - DON'T INCLUDE YOUR USER/PASS IN THE DEBUG

[updated note - I checked my states database and it only has US and a few canadian states... don't these used to be there so I don't know when they were lost - any ideas on how to recover this without having to manually add states/provinces for many countries?] Thanks!

Ok, I am on Joomla 1.5.22 and VM 1.1.5 don't know if that makes a difference. United States checkout works fine but international is a problem. Not sure if it's related to this exstension or I have another issue. One thing I notice is that the user has no way to select or enter their "province" the Province/state dropdown only offers "none" - so maybe the address is not getting sent to USPS correctly. Here is what I'm getting from debug:

Please select a Shipping Method!
Debug: Starting Shipping module: standard_shipping

Debug: The Shipping Module 'standard_shipping' couldn't
find a Shipping Rate that matches the current Checkout configuration:
Weight: 1.375
Country: FRA
ZIP: 92140

Debug: Starting Shipping module: uspsv5

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 24 (Betsy McCall Slip, Fits 14" Betsy McCall, 14" Sweet Sue, Mary Ho) to package #1 *****

Debug: Package::addItem() - Package weight is now: 0.1875

Debug: Package::addItem() - ***** Adding item 24 (Betsy McCall Slip, Fits 14" Betsy McCall, 14" Sweet Sue, Mary Ho) to package #1 *****

Debug: Package::addItem() - Package weight is now: 0.375

Debug: Package::addItem() - ***** Adding item 39 (Betsy McCall-"Springtime" Dress for 14" Doll) to package #1 *****

Debug: Package::addItem() - Package weight is now: 0.875

Debug: Package::addItem() - ***** Adding item 394 (Robert Tonner Fancy Nancy, Dress for 14" Doll, "Gingham Spring") to package #1 *****

Debug: Package::addItem() - Package weight is now: 1.375

Debug: Package::query_rates() - Querying for Source: US/98685 , Destination: FR/92140, Weight: 1.375

Debug: uspsv5::get_rates_array() - Calculating international shipping.

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=IntlRate&XML=<IntlRateRequest USERID="XXXXXX" PASSWORD="xxxxxx"><Package ID="0"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>France</Country></Package></IntlRateRequest>

<?xml version="1.0"?>
<IntlRateResponse><Package ID="0"><Prohibitions>Arms, ammunition.
Cigarette lighters using butane gas.
Feeding bottles.
Funeral urns.
Goods bearing false marks of French manufacture or origin.
Human remains.
Imitation pearls containing lead salts and any articles of jewelry made with pearls of this type.
Live plants and animals.
Measuring instruments marked in units not complying with French law.
Perishable infectious biological substances except as noted in Restrictions below.
Perishable noninfectious biological substances except as noted under Restrictions below.
Radioactive materials.
Saccharine in tablets or packets.</Prohibitions><Restrictions>The maximum value of a GXG shipment to FRANCE is $2,499 or a lesser amount if limited by content or value.
Bees, honey, and beeswax must be accompanied by a certificate of origin and noninfection issued by a qualified official approved by the Government. Shipments of honey not exceeding 2 kilograms do not require the certificate.
Books in the French language printed abroad must have the names of the publisher and printer shown as prescribed by the French copyright laws.
Canned vegetables, fish, plums, and nuts not bearing an indication of the country of origin by stamping, in plain raised or sunken letters at least 4 millimeters high, in the middle of the top or bottom and in a place not bearing any inscription.
Gold coins or other articles of gold require that the addressee have a permit issued by the Bank of France (not required for gold-plated articles or for ornaments or jewelry containing only small amounts of gold and weighing 500 grams or less).
Medicines and medicinal products require an import license issued by the Central Pharmaceutical Service of the Ministry of Health.
Perishable biological substances, infectious and noninfectious, are admitted when addressed to the following laboratories:

1. Pasteur Institute
25 rue du docteur Roux
75724 Paris CEDEX 14
FRANCE

2. Pasteur Institute
1 rue du Professeur Calmette
59019 Lille CEDEX BB 245
FRANCE

3. Pasteur Institute
77 rue Pasteur
69365 Lyon CEDEX
FRANCE

Plants, seeds, bulbs must be accompanied by plant health certificate.
The importation of tobacco leaves and stems, manufactured tobaccos, cigars, cigarettes, chewing and smoking tobacco is permitted only on behalf of the State Monopoly, with the following exception: Manufactured tobaccos, including cigars and cigarettes, may be sent to individuals in France for personal use up to 10 kilograms (22 pounds) per person per year, subject to special customs authorization.</Restrictions><Observations>1. A parcel may be addressed to a street address or to a post office box. A local telephone number for the addressee should be provided when the item is addressed to a street address and must be provided when the item is addressed to a post office box.
2. For parcels, an invoice, in duplicate, is required for all commercial shipments regardless of value and all personal shipments valued at $300 or more. The invoices must be affixed to the outside of the parcel or may be enclosed in PS Form 2976-E with the customs declaration.
3. It is recommended that all articles bear, as part of the address, the name of the Province in which the office of destination is located.
4. Printed matter of value should have Form 2976 affixed, and it can be cleared more readily through French customs if an invoice is enclosed.
5. Parcels whose senders or addressees are designated by initials will not be admitted.
6. Shipments must not be fastened by means of wire, but straps not having sharp edges may be used, provided they are tightly fastened so that no sharp ends or corners are exposed.</Observations><CustomsForms>First-Class Mail International items and Priority Mail International Flat Rate Envelopes and Small Flat Rate Boxes:
PS Form 2976 (see 123.61)
Priority Mail International parcels:
PS Form 2976-A inside 2976-E (envelope)</CustomsForms><ExpressMail>Country Code:
FR  

Reciprocal Service Name:  
There is no reciprocal service.  

Required Customs Form/Endorsement  
1. Business correspondence, commercial papers and documents.
PS Form 2976, Customs - CN 22 (Old C 1) and Sender's Declaration (green label).
 
2. Merchandise samples, gifts, computer data including computer cards, magnetic tape, microfilm, and microfiche.
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.
 
3. Merchandise and all articles subject to customs duty.
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91. An invoice, in duplicate, is required for all commercial shipments regardless of value and all personal shipments valued at $300 or more. The invoices must be either affixed to the outside of the parcel or enclosed in PS Form 2976-E with the customs declaration.
 

Notes:
1. Arms, weapons, and human remains are prohibited.
2. An invoice, in duplicate, is required for all commercial shipments regardless of value and for all personal shipments valued at $300 or more. The invoices must be either affixed to the outside of the parcel or enclosed in PS Form 2976-E with the customs declaration.
3. Indicate precise description of documents, gifts, merchandise samples, and merchandise.
4. For personal gifts, merchandise samples, and merchandise, indicate the value of the contents expressed in U.S. dollars or French francs.
5. Label gift packages clearly as GIFT or CADEAU and merchandise samples as SAMPLES.
6. Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Express Mail International shipments to France (including Corsica and Monaco).
7. An Express Mail International shipment may be addressed to a street address or to a post office box. A local telephone number for the addressee should be provided when the item is addressed to a street address and must be provided when the item is addressed to a post office box.
8. Express Mail International With Guarantee service - which offers a date-certain, postage-refund guarantee - is available to France but not to Corsica or Monaco.

Areas Served
All locations in France, Corsica, and Monaco are served.</ExpressMail><AreasServed>Please reference Express Mail for Areas Served.</AreasServed><Service ID="4"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>75.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; (GXG)**</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="6"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>75.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document Rectangular</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="7"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>75.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document Non-Rectangular</SvcDescription><MaxDimensions>Max. length 46", width 35", height 46" and max. length plus girth combined 108"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="12"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>75.95</Postage><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>USPS GXG&lt;sup&gt;&amp;trade;&lt;/sup&gt; Envelopes**</SvcDescription><MaxDimensions>Cardboard envelope has a dimension of 12-1/2" x 9-1/2" and GXG tyvek envelope has a dimension of 15-1/2" x 12-1/2"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="1"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>39.50</Postage><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International</SvcDescription><MaxDimensions>Max. length 60", max. length plus girth combined 108"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="10"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>29.95</Postage><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Envelope</SvcDescription><MaxDimensions>USPS-Produced Envelope: 12-1/2" x 9-1/2"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="17"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>29.95</Postage><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate Envelope</SvcDescription><MaxDimensions>USPS-Produced Envelope: 15" x 9-1/2"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="2"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>32.15</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International</SvcDescription><MaxDimensions>Max. length 60", max. length plus girth combined 108"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="11"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>58.50</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Large Box: 12" x 12" x 5-1/2".<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="9"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>45.50</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Medium Box:<br>13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2".<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="16"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Small Box: 8-5/8" x 5-3/8" x 1-5/8".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="24"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International DVD Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced DVD Box: 7-9/16" x 5-7/16" x 1-3/8".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="25"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Video Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Large Video Box: 9-1/4" x 6-1/4" x 2".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="8"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Envelope**</SvcDescription><MaxDimensions>USPS-Produced Envelope: 12-1/2" x 9-1/2".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="22"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate Envelope**</SvcDescription><MaxDimensions>USPS-Produced Envelope: 15" x 9-1/2".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="23"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Padded Flat Rate Envelope**</SvcDescription><MaxDimensions>USPS-Produced Envelope: 12-1/2" x 9-1/2".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="18"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Gift Card Flat Rate Envelope**</SvcDescription><MaxDimensions>USPS-Produced Envelope: 10" x 7".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="20"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Envelope**</SvcDescription><MaxDimensions>USPS-Produced Envelope: 10" x 6".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="19"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>13.95</Postage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Window Flat Rate Envelope**</SvcDescription><MaxDimensions>USPS-Produced Envelope: 10" x 5".<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="15"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>14.20</Postage><SvcCommitments>Varies by country</SvcCommitments><SvcDescription>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Package**</SvcDescription><MaxDimensions>Other than rolls: Max. length 24", max length, height and depth (thickness) combined 36"<br>Rolls: Max. length 36". Max length and twice the diameter combined 42"</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="14"><Pounds>1</Pounds><Ounces>6</Ounces><MailType>Package</MailType><Country>FRANCE</Country><Postage>14.00</Postage><SvcCommitments>Varies by country</SvcCommitments><SvcDescription>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Envelope**</SvcDescription><MaxDimensions>Max. length 15", height 12" or thickness 3/4"</MaxDimensions><MaxWeight>4</MaxWeight></Service></Package></IntlRateResponse>
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.

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: dimmakherbs on January 08, 2011, 07:41:56 am
EDITED BY REGGIE - DON'T INCLUDE YOUR USER/PASS FOR THE USPS API IN THE DEBUG TEXT

so I switched to USPS v5 to eventually use the feature to price out products that cannot be bundled.

Now I admit that coming from USPS v4 I was unable to use flat rate shipping but didn't care, but switching to your version it will only show regular priority mail and express mail. it wont show first class mail (or any flat rate as well), I am trying to show express, priority, priority flat rate large box, and first class.


here is my XML
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request USERID="XXXXXX" PASSWORD="XXXXX"><Package ID="0"><Service>All</Service><ZipOrigination>92111</ZipOrigination><ZipDestination>85704</ZipDestination><Pounds>0</Pounds><Ounces>8</Ounces><Size>REGULAR</Size><Machinable>TRUE</Machinable></Package></RateV3Request>


<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>92111</ZipOrigination><ZipDestination>85704</ZipDestination><Pounds>0</Pounds><Ounces>8</Ounces><Container></Container><Size>REGULAR</Size><Machinable>TRUE</Machinable><Zone>4</Zone><Postage CLASSID="3"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>19.75</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>19.75</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>32.25</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="30"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.25</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box</MailService><Rate>14.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box</MailService><Rate>10.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="44"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="29"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="38"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="42"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="40"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Package</MailService><Rate>2.41</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Envelope</MailService><Rate>2.07</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>2.38</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>


I noticed there were some differences in the names I saw in the XML and the php file, but even after changing the names they still don't show.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on January 08, 2011, 07:47:45 am
You'll need to save the module configuration, then save it again.  Then log completely out of Joomla on the front end to clear the cache, then log in and try again.
It worked! Thanks again Reggie.
Steve
ChinaPaintingToday.com
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on January 08, 2011, 09:41:06 am
Is USPS v5 okay with VM 1.1.6?

I'm currently running VM 1.1.5 and was considering upgrading to VM 1.1.6. Before I do I'd like to know if this shipping module plays well with VM 1.1.6? Has anyone had any issues after upgrading?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 08, 2011, 15:10:00 pm
sitebuildernow:
Have you tried importing the original countries/states using the installation files? It should be in the SQL somewhere
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 08, 2011, 15:11:23 pm
dimmakherbs:
Have you saved your config a couple of times? Have you logged out of Joomla on the front end to clear the USPSv5 cache, then log back in and try again?

Did you make sure to enable USPSv5 instead of USPSv4?  ;D
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 08, 2011, 15:12:33 pm
Is USPS v5 okay with VM 1.1.6?

I'm currently running VM 1.1.5 and was considering upgrading to VM 1.1.6. Before I do I'd like to know if this shipping module plays well with VM 1.1.6? Has anyone had any issues after upgrading?

I seem to remember at least one person using USPSv5 with vm116.  I couldn't find a post, it must have been an email.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on January 08, 2011, 15:40:16 pm
Hi Reggie, I'm not sure where to get the "original countries/states" You mean from the VM install?
sitebuildernow:
Have you tried importing the original countries/states using the installation files? It should be in the SQL somewhere
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 08, 2011, 15:44:11 pm
Hi Reggie, I'm not sure where to get the "original countries/states" You mean from the VM install?
sitebuildernow:
Have you tried importing the original countries/states using the installation files? It should be in the SQL somewhere


Exactly!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 08, 2011, 18:07:57 pm
Is USPS v5 okay with VM 1.1.6?

I'm running the latest USPSv5 shipping module and CartRates plugin with VirtueMart 1.1.6 on 2 websites without a problem.

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 08, 2011, 18:16:29 pm
Is USPS v5 okay with VM 1.1.6?

I'm running the latest USPSv5 shipping module and CartRates plugin with VirtueMart 1.1.6 on 2 websites without a problem.

Richard

+2
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 09, 2011, 18:58:39 pm
When the user's country is 'France, metropolitan' the USPS component fails with system error message. Probably because usps doesn't recognize it as a country?

Updated the customers address to France as a work around. Makes me think there might be others?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on January 09, 2011, 19:04:07 pm
Reggie, thanks for covering my behind on the password! I should not post on forums before 2 cups of cofee :-). Also thanks for helping me yesterday. I know you're busy with projects but I wanted to let others know that you are a great asset and I was happy to PAY you for your help. I hope that people using your mod are donating because your work is excellent and you deserve to be compensated. Open source works because there are guys like you willing to share your knowledge for "free" but no one can pay their bills by working for free too much... so this note is to everyone else that has found your forum support so helpful... even a small donation adds up and keeps these great assets available to us! When I find great supporters like Reggie I visit their websites to find their donate buttons - if I don't find one I email them and ask them for an email where I can send money via PayPal... just sayin'....

Hi Reggie, I'm not sure where to get the "original countries/states" You mean from the VM install?
sitebuildernow:
Have you tried importing the original countries/states using the installation files? It should be in the SQL somewhere
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 09, 2011, 19:47:56 pm
When the user's country is 'France, metropolitan' the USPS component fails with system error message. Probably because usps doesn't recognize it as a country?

Updated the customers address to France as a work around. Makes me think there might be others?

What does the XML reply say about it?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 09, 2011, 19:49:06 pm
Reggie, thanks for covering my behind on the password! I should not post on forums before 2 cups of cofee :-). Also thanks for helping me yesterday. I know you're busy with projects but I wanted to let others know that you are a great asset and I was happy to PAY you for your help. I hope that people using your mod are donating because your work is excellent and you deserve to be compensated. Open source works because there are guys like you willing to share your knowledge for "free" but no one can pay their bills by working for free too much... so this note is to everyone else that has found your forum support so helpful... even a small donation adds up and keeps these great assets available to us! When I find great supporters like Reggie I visit their websites to find their donate buttons - if I don't find one I email them and ask them for an email where I can send money via PayPal... just sayin'....

Thanks for the kind words (and financial support)!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 09, 2011, 20:04:12 pm

What does the XML reply say about it?

Code: [Select]
<?xml version="1.0"?>
<IntlRateResponse><Package ID="0"><Error><Number>-2147218046</Number><Source>IntlPostage;clsIntlPostage.GetCountryAndRestirctedServiceId;clsIntlPostage.CalcAllPostageDimensionsXML;IntlRate.ProcessRequest</Source><Description>Invalid Country Name</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></IntlRateResponse>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 09, 2011, 20:19:50 pm
Makes sense.  International requests use the country name, and anything other than France for French addresses will not work.

You might want to consider removing that 'country' from the database.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 09, 2011, 20:31:13 pm
Makes sense.  International requests use the country name, and anything other than France for French addresses will not work.

You might want to consider removing that 'country' from the database.

Wonder how many other countries aren't compatible with the standard input of the USPS api? There's a few that have odd looking names which could potentially not be accepted. Thoughts? There's 246 countries in VM. Too many to test one by one, but if there were a list from USPS, could easily compare.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 09, 2011, 20:37:32 pm
Finding a comprehensive list for anything on USPS's web site is...a pain.  I'd guess anything that isn't ISO 3166-1 "English Short Name" would trigger an error.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 10, 2011, 20:07:17 pm
Amber @ USPS just sent the API technical guide, I can email it to you if you need a copy.

Right now I'm trying to figure out how to calculate some products as large packages and the rest as regular parcels. Seems I have to choose for all orders and not by product.

Wonder what it would take to add the parcel size to the product properties table and pass it back into the USPS V5?

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 10, 2011, 20:11:43 pm
If you're shipping one product per package, you could create a package type flag per each product and set each product as unbundled (ship alone).  Then pass the product flag per each package when requesting the rate.

If you're looking to stuff multiple products into the same package, you'll probably want to go with some other method (volume, count, etc). 
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 10, 2011, 22:46:11 pm
What I need is a Regular, Large, Oversize ddl on the product description page that when bundling the largest will be used to submit that bundle for usps quote.

What do you think?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 10, 2011, 22:47:28 pm
Sounds like it's starting to get complicated  ;)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 10, 2011, 23:21:03 pm
Cool, so let me know when it's ready?

he he.

Actually I'm thinking I might give it a go. I just need the time to do it.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 13, 2011, 21:57:03 pm
Actually the V4 API reference requires dimensions to be passed for size = LARGE
How about checking for any measurement >12" in the product dimensions and passing the product dimensions in the XML request?

Width:
Value must be numeric. Units are inches. Required
when RateV4Request/Size is LARGE.
For example: <Width>5.5</Width>

Length:
Value must be numeric. Units are inches. Required
when RateV4Request/Size is LARGE.
For example: <Length>11</Length>

Height:
Value must be numeric. Units are inches. Required
when RateV4Request/Size is LARGE.
For example: <Height>11</Height>

What do you think Reggie?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 13, 2011, 21:59:02 pm
that would work for unbundled items.  bundled, not so much.  how will you determine the dimensions?

Not an easy task, if you allow different sized products to be bundled together.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 13, 2011, 22:13:56 pm
that would work for unbundled items.  bundled, not so much.  how will you determine the dimensions?

Not an easy task, if you allow different sized products to be bundled together.

I've always wondered how that get's calculated anywhere. It does explain why Amazon ships pens in a 12" square box though..


In my case, I can always combine the smaller items in the largest box. I just need to combine the weight into the largest package size. 

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 13, 2011, 22:55:14 pm
Believe me, when I find an open source box-stuffing algorithm, I'll be a happy programmer. There is no complete solution to the problem, only near-solutions.  And I have been unable to find any 3-D algorithms, only 2-D.  I'm sure Amazon and the like had some very smart people design their algorithms, and the algorithms are highly guarded secrets.

I have an idea of how to "brute force" the answer, but I know it would involved a lot of computation time, and probably a lot of database space to implement it. Eventually I'd like to test the theory out ;).
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: norman kaui on January 13, 2011, 23:19:51 pm
Hi, reading the previous threads I think we're having a similar issue.  A few days ago we started receiving the following error: "We are unable to ship via USPS at this time. System Error"

After setting VM into debug mode we found the following:
Quote
Debug: Starting Shipping module: uspsv5
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 86 (1LB) to package #1 *****
Debug: Package::addItem() - Package weight is now: 1.56
Debug: Shipment::addPackage() Adding a new unbundled package
Debug: Shipment::addPackage() - Package Number: 2
Debug: Shipment::addPackage() - Package is Unbundled
Debug: Shipment::addPackage() - Maxweight: 70
Debug: Package::addItem() - ***** Adding item 86 (1LB) to package #2 *****
Debug: Package::addItem() - Package weight is now: 1.56
Debug: Shipment::addPackage() Adding a new unbundled package
Debug: Shipment::addPackage() - Package Number: 3
Debug: Shipment::addPackage() - Package is Unbundled
Debug: Shipment::addPackage() - Maxweight: 70
Debug: Package::addItem() - ***** Adding item 86 (1LB) to package #3 *****
Debug: Package::addItem() - Package weight is now: 1.56
Debug: Shipment::addPackage() Adding a new unbundled package
Debug: Shipment::addPackage() - Package Number: 4
Debug: Shipment::addPackage() - Package is Unbundled
Debug: Shipment::addPackage() - Maxweight: 70
Debug: Package::addItem() - ***** Adding item 86 (
 1LB) to package #4 *****
Debug: Package::addItem() - Package weight is now: 1.56
Debug: Package::query_rates() - Querying for Source: US/96816 , Destination: US/96830, Weight: 1.56
Debug: uspsv5::get_rates_array() - Using cached rate for US, 96816, US, 96830, 1.56
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.

Any advice or assistance with this would be greatly appreciated.  Thank you. 


Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 13, 2011, 23:21:36 pm
Jan 1, all service names were renamed. This broke every USPS module I know of.

Download the latest USPSv5 and reinstall the updated files.  Save your config twice.  Log out of Joomla on the front end, then try the checkout again.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: BenjaminR on January 13, 2011, 23:44:44 pm
It's easy, just do this:
(http://www.packer3d.com/sites/default/files/5-animation-lorry_(slide6)_0.gif)

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: norman kaui on January 14, 2011, 20:45:33 pm
Anyone here?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 14, 2011, 20:50:38 pm
Anyone here?

I replied to your post here:
http://forum.virtuemart.net/index.php?topic=46784.msg265728#msg265728
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: norman kaui on January 14, 2011, 22:59:35 pm
Sorry, for some reasoned my screen didn't refresh.  Thank you, I really appreciate this.  :)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: nirajlama on January 28, 2011, 22:46:17 pm
I have installed USPS ver5.2010.04.05, everything works fine but I just cannot get First Class Mail Package to work. Help.    
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 28, 2011, 23:06:12 pm
I have installed USPS ver5.2010.04.05, everything works fine but I just cannot get First Class Mail Package to work. Help.    

What does debug mode show?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: JohnBerringer on January 29, 2011, 02:58:14 am
Sorry i could not find " 2011 - updated uspsv5 module and cart-rates plugin to accept new service names (with html entities)" where is the file?

I installed "plgSystemCartRates-USPSv5.zip" on my test site and activated it then my site died
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 29, 2011, 03:07:28 am
Sorry i could not find " 2011 - updated uspsv5 module and cart-rates plugin to accept new service names (with html entities)" where is the file?

I installed "plgSystemCartRates-USPSv5.zip" on my test site and activated it then my site died

The plugin does not work without the shipping module in place...
Disable the plugin for now. Install the shipping module first.

Both are found here, under "VirtueMart Shipping", then "USPSv5":
http://www.lowmips.com/joomla/free-software
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: nirajlama on January 29, 2011, 20:39:05 pm
Incredible Reggie, here is my debug. Thank you for your time.

XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request USERID="xxx" PASSWORD=""><Package ID="0"><Service>All</Service><ZipOrigination>14103</ZipOrigination><ZipDestination>22180</ZipDestination><Pounds>1</Pounds><Ounces>0</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV3Request>

XML Result:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV3&XML=<RateV3Request USERID="181HAPPY8381" PASSWORD=""><Package ID="0"><Service>All</Service><ZipOrigination>14103</ZipOrigination><ZipDestination>22180</ZipDestination><Pounds>1</Pounds><Ounces>0</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV3Request>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: nirajlama on January 29, 2011, 20:41:00 pm
Sorry the XML Result got snapped earlier. Here it is.

<?xml version="1.0"?>
<RateV3Response><Package ID="0"><ZipOrigination>14103</ZipOrigination><ZipDestination>22180</ZipDestination><Pounds>1</Pounds><Ounces>0</Ounces><Container></Container><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>3</Zone><Postage CLASSID="3"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>21.05</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>21.05</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>33.55</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="30"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.15</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box</MailService><Rate>14.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box</MailService><Rate>10.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="44"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="29"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="38"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="42"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="40"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>4.90</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>2.38</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.26</Rate></Postage></Package></RateV3Response>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 29, 2011, 21:11:37 pm
The package has to be 13oz or less:
http://www.usps.com/send/waystosendmail/senditwithintheus/firstclassparcels.htm

Your request is for 1lb.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: piperpilot on January 30, 2011, 20:05:46 pm
Is there any option to automatically add insurance to a quote?  I did a search of this thread and don't see insurance mentioned anywhere.  How is everyone else handling that?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 30, 2011, 20:14:21 pm
The module currently has no insurance declaration support.
-R
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: nirajlama on January 31, 2011, 02:12:05 am
Thanks Reggie. I forgot I had padded the shipping weight. Duh!
One other issue I am having: the radio buttons for USPS options on the front end need a double click to select in FF. On IE it works fine on a single click, as it should. (In Firefox the UPS, my other carrier, does not have that problem)
Any idea what could be causing this?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 31, 2011, 02:16:04 am
Not sure about the FF issue.  I know there was an issue with other modules and FF's interpretation of certain tags, but my USPSv5 module should be unaffected.  It is most likely the UPS module.  Try removing the <span> or <label> tags from the output (I forget which one was the problem, probably <label>).

-Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: nirajlama on February 01, 2011, 20:43:24 pm
Right on. It was the UPS module. Thanks Reggie!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: JohnBerringer on February 05, 2011, 10:40:01 am
How do i manually delete plugin its messed up and wont reinstall nor uninstall
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 05, 2011, 14:53:17 pm
JohnBerringer:
If you mean the "cart rates" plugin, then you'll have to find the database entry for the plugin in 'jos_plugins'.  Look for "cartrates" as the "element" field.  Remove that entry.

Then remove the cartrates.php and cartrates.xml and everything in the cartrates directory from /plugins/system/
and
/plugins/system/cartrates
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on February 09, 2011, 03:53:41 am
So how do you remove the following from the shipping/checkout page:

Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - ***** Adding item 177 (Music Express Winter Blow Out!) to package #1 *****
Package::addItem() - Package weight is now: 3.45
Package::query_rates() - Querying for Source: US/80205 , Destination: US/80524, Weight: 3.45

Shouldn't this be hidden from the shopper?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 09, 2011, 14:01:58 pm
That is only shown to administrators.  It is debug code.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Scott Ackerman on February 09, 2011, 14:18:56 pm
Thanks. I did realize that it was debug code, I didn't realize that it was only shown to administrators.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 09, 2011, 20:26:54 pm
****** UPDATE *******
USPSv5.2011-02-09-BASIC


This version of my USPSv5 module adheres to the "drop in" concept for shipping modules, meaning you simply copy files to the appropriate location, configure the module, and it is ready to go.  No bells, whistles, or any other features of any kind.  No bundled/unbundled packages, all are considered to be bundled.

This module supports the latest API versions - v4 for domestic shipments and v2 for international shipments. THIS IS IMPORTANT! The old v3 API is being deprecated, and will cease to function sometime this spring.

There is one gotcha, dealing with package sizes.  Any package declared as "Large" has to have its dimensions declared.  This is fine and well with products that ship by themselves, but add in multiple products or different dimensions and there is no easy way to determine package size.  So the BASIC module will be restricted to use the "Regular" package declaration.

I have not publicly release the module, but I am selling copies for donations.  Once enough donations are gathered to cover my development time, I'll publicly release it both here and on my website.  If you would like a copy, please contact me via email, or send a paypal donation labeled 'USPSv5.2011-02-09-BASIC'.

I am also working on a version that has bundling/unbundling and dimension declarations.  I hope to complete it soon.

-Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 11, 2011, 00:40:04 am
****************** Update **************
USPSv5.2011.02.10 Available


This version of my USPSv5 module includes:
- v4 Domestic and v2 Inernational API support (IMPORTANT! The old v3 is being phased out.)
- Bundled/Unbundled products
- Package Dimension declaration
- GXG support
- built for VirtueMart 1.1.7
 

Like with my USPSv5.2011-02-09-BASIC module, this module will be donation supported, and once I have obtained enough donations to cover the 6+ hours of time I spent on it, I will publicly release it.  If you would like a copy, please send a paypal donation labeled "USPSv5.2011-02-10", and I'll email a copy to you.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: piperpilot on February 13, 2011, 01:33:25 am
Reggie,

I just installed the new module and am having a problem getting it to work.  I have GXG turned off, but I get the following debug info:

Code: [Select]
uspsv5::__construct() - Starting module version 5.2011.02.10
uspsv5::list_rates() - Starting
Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::query_rates() - Querying for Source: US/33761 , Destination: US/33761, Weight: 0.153, Value: 30
uspsv5::get_rates_array() - ERROR - GXG services selected, but package dimensions were invalid.
Package::query_rates() - Rate query returned null results.
Shipment::populate() - query_rates() failed.
uspsv5::list_rates() - shipment->populate() failed!

I'm gonna dig into it and see if I can figure out what is going on, but it looks like because I don't have dimensions declared maybe it is causing it to puke?

Thoughts?

Curtis
(HobbyPCB)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2011, 03:00:42 am
Are you absolutely sure you don't have one of the three GXG services selected? I tested that several times to make sure it worked (or so I thought).

Do you have dimensions defined, or are they all zeros?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: piperpilot on February 13, 2011, 14:33:45 pm
Yes, all GXG Options are turned off (top 4 on the list).  The dimensions were all declared as zero which is the default when you don't add anything.  When I give the item a dimension it works fine.

I guess a workaround is to make sure that I always provide a dimension but right now I don't have that.

Thanks!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2011, 14:49:46 pm
If you have all 4 GXG options turned off, you should not have gotten the "GXG is on" message.  I'll look into that.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2011, 16:23:25 pm
I've confirmed the bug and have fixed it.  I emailed you an updated copy of the installation files with instructions on what to change.

-R
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: dimmakherbs on February 15, 2011, 07:05:24 am
anyone else have issues with randomly USPS not sending shipping info giving the error
"USPS cannot find shipping info" or something similar.
I have my store set up to make accounts and it is highly unusual to not get orders to go along with the accounts. I then finally got an email and phone call from current customers telling they are recieving errors.

I can't always reproduce the error, so I cannot log it but it is obviously happening.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 15, 2011, 14:02:24 pm
This is with USPSv5?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: dimmakherbs on February 15, 2011, 21:50:43 pm
yes

I almost think shipping by weight and or item with capped figures may be the way to go. Then I dont have to go through checkout on my own site everyday to make sure USPS didn't change the location of a letter and screw up their API.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 15, 2011, 21:51:34 pm
Try to get the exact error message, that will help.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: dimmakherbs on February 15, 2011, 22:29:08 pm
somthing along the lines
"USPS isn't available right now"

and another error message under that.

I think its the same error as when you give teh whole 9 digit zip code instead of just the 5
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 16, 2011, 15:33:57 pm
That's not much information to go on, unfortunately.  If you could get the exact error message wording, especially the "other" error message, or get it to fail during a debug session, that would really help.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 16, 2011, 15:37:19 pm
*************** NOTICE ***************

Discontinuation of support for vm114-USPSv5.2010.04.05, and earlier versions.

Due to the v3 USPS API being discontinued later this year, I am dropping support for USPSv5.2010.04.05 in favor of my newer modules, which are based on the v4 USPS API.  I will publicly release both modules, starting with the BASIC version, once enough donations have been garnered.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: JohnBerringer on February 24, 2011, 22:06:38 pm
I installed vm115-shipvalue-countries.2010.11.12 -
(is this shipping module? if not where i get one i need link to page i tried to look for it i could not find it) and USPSv5 getting error
Code: [Select]
Warning: require_once(/home/xxxx/public_html/xxx.com/administrator/components/com_virtuemart/classes/shipping/uspsv5.php) [function.require-once]: failed to open stream: No such file or directory in /home/seceb/public_html/xxx.com/plugins/system/cartrates/cartrates.tpl.php on line 27

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxx/public_html/xxx.com/administrator/components/com_virtuemart/classes/shipping/uspsv5.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/seceb/public_html/xxx.com/plugins/system/cartrates/cartrates.tpl.php on line 27

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 24, 2011, 22:09:53 pm
Does the file exist in that location on the filesystem?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: JohnBerringer on February 24, 2011, 22:10:49 pm
No file is not there, where i get it?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 02, 2011, 23:13:44 pm
*************** UPDATE *************

Version 5.2011.02.09-BASIC has been publicly released.

I would like to thank all of the wonderful donators for making this possible.  Copies are available on the first post of this thread, or on my website under "Free Software".

The "advanced" version (5.2011.02.10) is still available on a donation basis, and will be publicly released pending funding.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 02, 2011, 23:19:40 pm
No file is not there, where i get it?

John,
It looks like you have the shipvalue-countries shipping module installed, and the "cart rates" plugin for my USPSv5 module, but you do not have the USPSv5 shipping module installed.  That will cause the error you're seeing.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on March 04, 2011, 20:22:51 pm
Hi Reggie, I just updated my Virtuemart at http://www.joannmorgan.com to 1.1.7 and updated your USPS shipping to the 5.2011.02.09-BASIC, updated all settings, checked that my weights are correct (on this item we show the weight at 4 ounces) and am getting the following errors (with debug on):
Please select a Shipping Method!
Debug: Starting Shipping module: standard_shipping

Debug: The Shipping Module 'standard_shipping' couldn't
find a Shipping Rate that matches the current Checkout configuration:
Weight: 0.25
Country: USA
ZIP: 98685

Debug: Starting Shipping module: uspsv5

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 902 (Magic Attic, Euro Girl, Katy Sunny Day) to package #1 *****

Debug: Package::addItem() - Package weight is now: 0.25

Debug: Package::query_rates() - Querying for Source: US/98685 , Destination: US/98685, Weight: 0.25, Value: 32.5

Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
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.




*************** UPDATE *************

Version 5.2011.02.09-BASIC has been publicly released.

I would like to thank all of the wonderful donators for making this possible.  Copies are available on the first post of this thread, or on my website under "Free Software".

The "advanced" version (5.2011.02.10) is still available on a donation basis, and will be publicly released pending funding.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 04, 2011, 20:26:22 pm
Did you not get the textbox with the xml request/reply? That would give us a better idea of what's going on.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on March 04, 2011, 20:29:39 pm
Sorry - yes it looks like there might be a problem with the username and password - in the past we have only entered the user name - has this changed?
<Error>
   <Number>80040b1a</Number>
   <Description>Authorization failure.  Perhaps username and/or password is incorrect.</Description>
   <Source>UspsCom::DoAuth</Source>
</Error>
Did you not get the textbox with the xml request/reply? That would give us a better idea of what's going on.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sitebuildernow on March 04, 2011, 20:32:54 pm
Well, I updated the username and that solved the problem - thanks for making me look further. Also thanks for the quick response.
Harmony
Sorry - yes it looks like there might be a problem with the username and password - in the past we have only entered the user name - has this changed?
<Error>
   <Number>80040b1a</Number>
   <Description>Authorization failure.  Perhaps username and/or password is incorrect.</Description>
   <Source>UspsCom::DoAuth</Source>
</Error>
Did you not get the textbox with the xml request/reply? That would give us a better idea of what's going on.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 04, 2011, 20:35:52 pm
No password is necessary.  The documentation states that the password element is for backward compatibility only, and is not validated.

And my module works just fine with no password... better check your username. :)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: PMA on March 22, 2011, 22:42:55 pm
Hello lowmips,

I've installed the new module based on your suggestion but don't see the checkmark next to the module to indicate it is enabled.


When I go try to use the shopping cart, I get this error.

$_POST:   
$_COOKIE:   
$_SESSION:   __default=> {Array}
auth=> {Array}
savedcart=> {Array}
cart=> {Array}
recent=> {Array}
ps_vendor_id=>1
minimum_pov=>19.99
vendor_currency=>USD
usefetchscript=>0
userstate=> {Array}
last_page=>store.shipping_module_form
product_sess=> {Array}
vmLatestVersion=>1.1.7a
    
$vars:   USPS_USERNAME => 628JAMAI7628
USPS_SERVER => http://production.shippingapis.com/ShippingAPI.dll
USPS_PATH => /ShippingAPI.dll
USPS_PACKAGESIZE => REGULAR
USPS_TAX_CLASS => 0
USPS_PROXYSERVER =>
USPS_PADDING => 10%
USPS_HANDLINGFEE => .50
USPS_INTLHANDLINGFEE => 4.50
USPS_MACHINABLE => 0
USPS_SHOW_DELIVERY_QUOTE => 1
USPS_REPORTERRORS => 0
USPS_STANDARDSHIPPING => 1
USPS_PREFIX => USPS
USPS_SHIP0 => 1
USPS_SHIP0_UPCHARGE =>
USPS_SHIP0_COMMIT => Overnight, most locations
USPS_SHIP1 => 1
USPS_SHIP1_UPCHARGE =>
USPS_SHIP1_COMMIT => Overnight, most locations
USPS_SHIP2 => 1
USPS_SHIP2_UPCHARGE =>
USPS_SHIP2_COMMIT => Overnight, most locations
USPS_SHIP3 => 1
USPS_SHIP3_UPCHARGE =>
USPS_SHIP3_COMMIT => Overnight, most locations
USPS_SHIP4 => 1
USPS_SHIP4_UPCHARGE =>
USPS_SHIP4_COMMIT => Overnight, most locations
USPS_SHIP5 => 1
USPS_SHIP5_UPCHARGE =>
USPS_SHIP5_COMMIT => Overnight, most locations
USPS_SHIP6 => 1
USPS_SHIP6_UPCHARGE =>
USPS_SHIP6_COMMIT => 1 - 3 Days
USPS_SHIP7 => 1
USPS_SHIP7_UPCHARGE =>
USPS_SHIP7_COMMIT => 1 - 3 Days
USPS_SHIP8 => 1
USPS_SHIP8_UPCHARGE =>
USPS_SHIP8_COMMIT => 1 - 3 Days
USPS_SHIP9 => 1
USPS_SHIP9_UPCHARGE =>
USPS_SHIP9_COMMIT => 1 - 3 Days
USPS_SHIP10 => 1
USPS_SHIP10_UPCHARGE =>
USPS_SHIP10_COMMIT => 1 - 3 Days
USPS_SHIP11 => 1
USPS_SHIP11_UPCHARGE =>
USPS_SHIP11_COMMIT => 1 - 3 Days
USPS_SHIP12 => 1
USPS_SHIP12_UPCHARGE =>
USPS_SHIP12_COMMIT => 2 - 9 Days
USPS_SHIP13 => 1
USPS_SHIP13_UPCHARGE =>
USPS_SHIP13_COMMIT => 2 - 9 Days
USPS_SHIP14 => 1
USPS_SHIP14_UPCHARGE =>
USPS_SHIP14_COMMIT => 2 - 9 Days
USPS_SHIP15 => 1
USPS_SHIP15_UPCHARGE =>
USPS_SHIP15_COMMIT => 2 - 9 Days
USPS_SHIP16 => 1
USPS_SHIP16_UPCHARGE =>
USPS_SHIP16_COMMIT => 2 - 9 Days
USPS_SHIP17 => 0
USPS_SHIP17_UPCHARGE =>
USPS_SHIP17_COMMIT =>
USPS_SHIP18 => 0
USPS_SHIP18_UPCHARGE =>
USPS_SHIP18_COMMIT =>
USPS_SHIP19 => 0
USPS_SHIP19_UPCHARGE =>
USPS_SHIP19_COMMIT =>
USPS_SHIP20 => 0
USPS_SHIP20_UPCHARGE =>
USPS_SHIP20_COMMIT =>
USPS_SHIP21 => 0
USPS_SHIP21_UPCHARGE =>
USPS_SHIP21_COMMIT =>
USPS_SHIP22 => 0
USPS_SHIP22_UPCHARGE =>
USPS_SHIP22_COMMIT =>
USPS_INTL0 => 0
USPS_INTL0_UPCHARGE =>
USPS_INTL1 => 0
USPS_INTL1_UPCHARGE =>
USPS_INTL2 => 0
USPS_INTL2_UPCHARGE =>
USPS_INTL3 => 0
USPS_INTL3_UPCHARGE =>
USPS_INTL4 => 0
USPS_INTL4_UPCHARGE =>
USPS_INTL5 => 0
USPS_INTL5_UPCHARGE =>
USPS_INTL6 => 0
USPS_INTL6_UPCHARGE =>
USPS_INTL7 => 0
USPS_INTL7_UPCHARGE =>
USPS_INTL8 => 0
USPS_INTL8_UPCHARGE =>
USPS_INTL9 => 0
USPS_INTL9_UPCHARGE =>
USPS_INTL10 => 0
USPS_INTL10_UPCHARGE =>
USPS_INTL11 => 0
USPS_INTL11_UPCHARGE =>
USPS_INTL12 => 0
USPS_INTL12_UPCHARGE =>
USPS_INTL13 => 0
USPS_INTL13_UPCHARGE =>
USPS_INTL14 => 0
USPS_INTL14_UPCHARGE =>
USPS_INTL15 => 0
USPS_INTL15_UPCHARGE =>
USPS_INTL16 => 0
USPS_INTL16_UPCHARGE =>
USPS_INTL17 => 0
USPS_INTL17_UPCHARGE =>
USPS_INTL18 => 0
USPS_INTL18_UPCHARGE =>
USPS_INTL19 => 0
USPS_INTL19_UPCHARGE =>
USPS_INTL20 => 0
USPS_INTL20_UPCHARGE =>
shipping_class => uspsv5
shipping_module => uspsv5.php
vmtoken => jbfd1a82624a030e15572ad0071da8bfd
func => shippingmethodSave
page => store.shipping_module_form
task => apply
option => com_virtuemart
ajax_request => 0
no_menu => 0
no_toolbar => 0
only_page => 0
pshop_admin => admin
vmLayout => standard
configuration => system
switchmenu => 2
ys-vmconfiguration-active => s:ext-comp-1005
ys-debugpanel-active => s:ext-comp-1004
7f7c4f214c5122961c5e49fb851a17ff => 9e4a0d9c5ed332f11421fc2b2cdf92d9
ae6774b9e200cbbe39fe15c34919265c => d8f795c72f56097e9f6ba2a082e4d072
virtuemart => grd3kh15sn3slo1shit9ij5825
0555c651a17f5ac2d63424fcc30311f6 => 45C50 B4B46 8 A A474117 7115E545853115A47 351 E1255 7555C5C435A165C5A B1245534143125B16 641 B46 F E 9434C491651434753 F17 91C
__utma => 218359170.234813665.1295713943.1296323773.1296328251.5
__utmz => 218359170.1295713943.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
user_info_id =>


Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 22, 2011, 22:50:38 pm
I don't see an error, but I do see what looks like some Joomla debug output...do you have your site in debug mode?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: PMA on March 22, 2011, 23:03:09 pm
Nope, I don't have the joomla debug turned on...not sure where I am going wrong...I have a deadline for this evening...PLEASE help me I will compensate.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 23, 2011, 00:45:32 am
Nope, I don't have the joomla debug turned on...not sure where I am going wrong...I have a deadline for this evening...PLEASE help me I will compensate.

Solved.  Multiple issues with the site configuration.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on March 25, 2011, 11:07:29 am
Reggie, I'm one of your USPSv5.2011.02.11 users.

I think I messed up in upgrading my VM from v117 to v118 last night. I was trying to solve another problem by upgrading to v118 and I didn't think about your shipping module. Well, it broke your module by overwriting some of your files.

I'm worried that if I reinstall the shipping module that it might make things worse with VM. At least right now we can still take phone orders and manually calculate shipping.

Will you be putting out an module update for VM v118 in the near future?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 25, 2011, 15:48:52 pm
I've looked at the updates in the files shared between VM118 and USPSv5...it is only 2 files and only a few small modifications.  I've merged these with USPSv5 and made a new VM118 version of the archive.

If you'll email me, I'll send a copy.  Any previous donators for the 2011-02-10 version of the module can do the same.  Please use the email address that you originally sent the donation with, OR the paypal payment reference number.

If you could kick a couple bucks my way for the time to do this, I would appreciate that as well =).

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 25, 2011, 16:00:51 pm
************** Update Notice **************

USPSv5.2011-03-25 Available

This is a very small update of the VM117 version in order to be in line with the recent VM118 release.  There were only 2 files involved, with some minor updates.  You should be able to use the VM117 version with VM118 with little or no consequence.

The previous version of this module (vm117-USPSv5.2011.02.10) is still on a donation basis release schedule, so I cannot yet publicly release this newest version.

If you would like a copy of vm118-USPSv5.2011.03.25, please send a donation and I will email it to you.  This donation will go towards releasing both versions publicly.

NOTE! Anyone who donated previously for the vm117-USPSv5.2011.02.10 version can email me for a free copy.  Please reference the paypal transaction number, or use the email that you used for the payment.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: aclerigo on April 14, 2011, 03:27:58 am
please help me.. having problem with usps..
uspsv5::__construct() - Starting module version 5.2011.02.10
uspsv5::list_rates() - Starting
Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::query_rates() - Querying for Source: US/90045 , Destination: US/90045, Weight: 0.051, Value: 14
uspsv5::get_rates_array() - GXG service selected. Forcing dimension declaration.
uspsv5::get_rates_array() - ERROR - GXG services selected, but package dimensions were invalid.
Package::query_rates() - Rate query returned null results.
Shipment::populate() - query_rates() failed.
uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.

im using the latest.. vm118-USPSv5.2011.03.25
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 14, 2011, 14:25:01 pm
Quote
uspsv5::get_rates_array() - ERROR - GXG services selected, but package dimensions were invalid.

Your product dimensions are invalid.  Did you configure your products to have L/W/H?
Title: BUG: Express Mail Sunday/Holiday Delivery Missing
Post by: jmhorton on April 15, 2011, 23:03:51 pm
Thanks for your work on this project. I have discovered a bug, and it seems that the "Express Mail Sunday/Holiday Delivery Missing" is not showing in the Shipping Module Configuration.

I did some digging, but unfortunately I am not a coder and do not know how to fix it. I want to help, so here is what I found that might be contributing to the problem:

uspsv5.cfg.php - Starting around line 129 it does not show in this list.

uspsv5.php - Lines 823 & 824 it shows here but both lines use the "USPS_SHIP2_TEXT".

Any help (or an updated file) would be appreciated - thanks!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 15, 2011, 23:34:38 pm
************** BugFix ***************

Versions:
Both versions are affected

Description:
Typo prevents all services from being displayed in the config.

Remedy:
Re-download module, replace the following file:
/administrator/components/com_virtuemart/classes/shipping/uspsv5.php

Then, re-run your configuration at least TWO times.

Donators for the "advanced" version may contact me for the updated module.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jclawson01 on April 22, 2011, 04:37:49 am
I am having issues here are the debug errors I'm seeing. I'm new to this so assume I have done it all wrong.

Thanks

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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 22, 2011, 14:27:37 pm
What module version?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jclawson01 on April 22, 2011, 16:12:42 pm
I have 5.2011.02.09 Basic, Joomla is 1.5.22 Virtuemart is 1.1.7
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 22, 2011, 16:32:32 pm
go to:
/administrator/components/com_virtuemart/classes/shipping/uspsv5/class.Package.php. 

On line 167, uncomment the echo line:
Code: [Select]
// echo $message.'<br/>;
So it is now like this:
Code: [Select]
echo $message.'<br/>;
Then, be sure that the VirtueMart debug mode is turned on.  Then, re-run the checkout as an administrator account.  You should get a bit more information about what is happening.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jclawson01 on April 23, 2011, 05:55:00 am
I am not seeing any more details than when I have the debug on. below is what I'm seeing.

Debug: Starting Shipping module: uspsv5
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 1 (50mm Stem) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.06375
Debug: Package::query_rates() - Querying for Source: US/83709 , Destination: US/83703, Weight: 0.06375, Value: 99.95
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>83709</ZipOrigination><ZipDestination>83703</ZipDestination><Pounds>0</Pounds><Ounces>2</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable>   </Package></RateV4Request>

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.


Thank you for your time and help
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 23, 2011, 14:27:53 pm
OK, so we see the request, but no reply.  You should be seeing some kind of reply from the API.  The request looks good, so I'm assuming that either the communications are failing or there is an authentication error (is your username correct?).

ps. never include user credentials in a public forum post.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jclawson01 on April 25, 2011, 05:37:36 am
the user id is the same as what I login into usps.com with right? or is there a different one that they issue?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 25, 2011, 14:52:55 pm
No, it should be the key they give you when you sign up for the API.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jclawson01 on April 29, 2011, 05:49:48 am
I have gotten the correct username and have a live account now w/usps. But I'm still getting the same errors as before please help.

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 for the help
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 29, 2011, 14:22:51 pm
You're still not seeing the XML reply?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jclawson01 on May 02, 2011, 16:39:09 pm
I figured out my issue, I missed placing the "/" on the dll file. Thanks for the help
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: piperpilot on June 06, 2011, 14:56:47 pm
Reggie,

Any idea why the flat rate envelopes might not be showing up even though I have them chosen as an option?

My first thought is that the request isn't including the LxWxH and it needs that to return the options?

Anyways, here's the request:

Code: [Select]
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=IntlRateV2&XML=<IntlRateV2Request USERID="##########" >
<Package ID="0"><Pounds>0</Pounds><Ounces>5</Ounces><Machinable>FALSE</Machinable>
<MailType>Package</MailType><ValueOfContents>12</ValueOfContents><Country>England</Country><Container>RECTANGULAR</Container>
<Size>REGULAR</Size>
<Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth></Package></IntlRateV2Request>

The response is rather long, so it is atttached here as a doc.




[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 06, 2011, 15:21:32 pm
The response shows GXG envelopes as the only envelope-related service being returned.  Do you have that selected? Otherwise, I can't give you an answer.  The module can only show what is returned.  If you're expecting other envelope services to be returned, you'll need to look at the requirements/restrictions for each and see if it applies to you.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: piperpilot on June 06, 2011, 15:28:19 pm
Reggie,

I don't actually have the GXG envelope selected.  Do you have a link to the developers guide for USPS where the requirements are listed.  I'll do a little more research and get back to the group.

Curtis
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 06, 2011, 15:32:17 pm
No developer's guide that I know of.  You'll have to look up each service and see what the requirements are that way.  Maybe it's the destination that is restricting the services?  Either way, you'll need to be careful about what you offer.  If you offer envelopes, make sure EVERY product you offer is envelope-size.  Otherwise, you could end up offering envelope rates for large items.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: piperpilot on June 06, 2011, 15:39:01 pm
For archiving purposes, the guide is here:

http://www.usps.com/webtools/_pdf/Rate-Calculators-v1-3.pdf

I'm gonna dig into it.

Ultimately it would be great to have the ability to specify for an item whether it qualifies for a certain flat rate package or not.  The logic gets kinda complicated if there are multiple items.

If I come up with a good solution, I'll post back to the group.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 06, 2011, 15:41:35 pm
Yes, the API guide is good for creating a shipping solution, but you'll still have to look up individual services for more specific information on each. ;)

Good luck!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 27, 2011, 15:31:55 pm
************ Public Release **************

Versions vm117-USPSv5.2011.02.10 and vm118-USPSv5.2011.03.25 have both been publicly released.  They are available for download in the first post of this thread, or on my website.

Thank you donators!
Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Softwired on July 01, 2011, 19:33:24 pm
I've just uploaded VM 1.1.9 and your shipping module but it's not working. 

I'm also not seeing a place for the password for the API.  Maybe this is the reason?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 05, 2011, 15:08:07 pm
Hi,
The latest versions of the API do not require a password.

As for it not working, you'll need to supply more info.  Have you tried it with VM debug mode on? What information is given? What is the XML request/reply?

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: HarryKare on July 05, 2011, 22:48:05 pm
I have a client who wants to offer Classes along with products. In this case Surfing Lessons along with Surfboards, Watched, Wetsuites etc. in certain situations people may want to purchase a lesson with their new wetsuit but I can't see how to allow for this in shipping. As of right now all products need to have a weight so how do I handled products that are not downloads but do not have weights?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 05, 2011, 23:20:49 pm
This is not a USPSv5 specific question, more of a general VirtueMart shipping issue.  You'd probably do better to post it in the general shipping forum.
With that said, it is not a new issue.  There have been modifications created exactly for your issue, but I do not know if they are kept updated.  Search for "Shipping Bypass".
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: HarryKare on July 07, 2011, 18:44:14 pm
I will search on that, I wasn't initially sure where the best place to look was, but I knew it eventually had to go through the USPS module to complete the order so thought I would start there. Thank you for your assitance.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 06:38:55 am
I was having two errors:

One:
Notice: We are unable to ship via USPS at this time. System Error.
and I am not sure what the other was

I had 1.1.8 virtuemart installed.

Then I applied this:
vm118-USPSv5.2011.03.25.zip

Used PHPmyadmin and the first time I applied the uspsv5.SQL code (import) it said:
#1060 - Duplicate column name 'ship_alone'
ALTER TABLE jos_vm_product ADD COLUMN ship_aloneCHAR( 1 ) NOT NULL DEFAULT 'N' AFTER ship_code_id;

So I decided to updated to  1.1.9 virtuemart, I reapplied (via ftp) vm118-USPSv5.2011.03.25.zip
and also ran that SQL file and got the same error.

When I logged out and ran in front end as a user (not admin) I got this error again:
Notice: We are unable to ship via USPS at this time. System Error.

With system check on, this is what I got:

Code: [Select]
Profile Information
Application afterLoad: 0.000 seconds, 0.24 MB
Application afterInitialise: 0.094 seconds, 4.14 MB
Application afterRoute: 0.101 seconds, 4.50 MB
Application afterDispatch: 0.219 seconds, 9.86 MB
Application afterRender: 0.319 seconds, 12.44 MB
Memory Usage
13193572
65 queries logged

    SELECT *
      FROM jos_session
      WHERE session_id = '2717621fbfc5914a252f5006d6e26f85'
    DELETE
      FROM jos_session
      WHERE ( time < '1311739239' )
    SELECT *
      FROM jos_session
      WHERE session_id = '2717621fbfc5914a252f5006d6e26f85'
    UPDATE `jos_session`
      SET `time`='1311740139',`userid`='150',`usertype`='Registered',`username`='xxxxxxxxx',`gid`='18',`guest`='0',`client_id`='0',`data`='__default|a:8:{s:15:\"session.counter\";i:3;s:19:\"session.timer.start\";i:1311740102;s:18:\"session.timer.last\";i:1311740109;s:17:\"session.timer.now\";i:1311740123;s:22:\"session.client.browser\";s:70:\"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0\";s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:1:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";s:3:\"150\";s:4:\"name\";s:14:\"user name\";s:8:\"username\";s:20:\"xxxxxxx\";s:5:\"email\";s:20:\"xxxxxxx\";s:8:\"password\";s:65:\"90a6d9df3ebc27eeabc7f9fede87290c:I1CiBJsSc4gPOBBzjKYuZkqmtxHcJe2c\";s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";s:10:\"Registered\";s:5:\"block\";s:1:\"0\";s:9:\"sendEmail\";s:1:\"0\";s:3:\"gid\";s:2:\"18\";s:12:\"registerDate\";s:19:\"2010-06-02 03:15:41\";s:13:\"lastvisitDate\";s:19:\"2011-07-27 03:53:53\";s:10:\"activation\";s:0:\"\";s:6:\"params\";s:1:\"\n\";s:3:\"aid\";i:1;s:5:\"guest\";i:0;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:78:\"/home/xxxxxxx/public_html/xxxxxxx/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}s:13:\"session.token\";s:32:\"04ef091656f0a5c8f40cbb1cef86560e\";}auth|a:13:{s:11:\"show_prices\";i:1;s:7:\"user_id\";s:3:\"150\";s:8:\"username\";s:20:\"xxxxxxx\";s:5:\"perms\";s:7:\"shopper\";s:10:\"first_name\";s:7:\"name\";s:9:\"last_name\";s:6:\"name\";s:7:\"country\";s:3:\"USA\";s:3:\"zip\";s:10:\"84741-2064\";s:16:\"shopper_group_id\";s:1:\"5\";s:22:\"shopper_group_discount\";s:4:\"0.00\";s:24:\"show_price_including_tax\";s:1:\"1\";s:21:\"default_shopper_group\";s:1:\"1\";s:22:\"is_registered_customer\";b:1;}savedcart|a:3:{i:0;a:5:{s:8:\"quantity\";i:2;s:10:\"product_id\";s:2:\"25\";s:9:\"parent_id\";s:2:\"24\";s:11:\"category_id\";s:1:\"1\";s:11:\"description\";s:0:\"\";}s:3:\"idx\";i:0;i:1;a:5:{s:8:\"quantity\";i:1;s:10:\"product_id\";s:2:\"28\";s:9:\"parent_id\";s:2:\"28\";s:11:\"category_id\";s:1:\"2\";s:11:\"description\";s:0:\"\";}}cart|a:3:{i:0;a:5:{s:8:\"quantity\";i:2;s:10:\"product_id\";s:2:\"25\";s:9:\"parent_id\";s:2:\"24\";s:11:\"category_id\";s:1:\"1\";s:11:\"description\";s:0:\"\";}s:3:\"idx\";i:2;i:1;a:5:{s:8:\"quantity\";i:1;s:10:\"product_id\";s:2:\"28\";s:9:\"parent_id\";s:2:\"28\";s:11:\"category_id\";s:1:\"2\";s:11:\"description\";s:0:\"\";}}recent|a:1:{s:3:\"idx\";i:0;}ps_vendor_id|s:1:\"1\";minimum_pov|s:4:\"6.00\";vendor_currency|s:3:\"USD\";userstate|a:1:{s:10:\"product_id\";i:0;}last_page|s:14:\"checkout.index\";product_sess|a:3:{i:25;a:3:{s:8:\"tax_rate\";i:0;s:9:\"vendor_id\";s:1:\"1\";s:13:\"discount_info\";a:3:{s:6:\"amount\";i:0;s:10:\"is_percent\";i:0;s:11:\"create_time\";i:1311740123;}}i:28;a:4:{s:8:\"tax_rate\";i:0;s:9:\"vendor_id\";s:1:\"1\";s:13:\"discount_info\";a:3:{s:6:\"amount\";i:0;s:10:\"is_percent\";i:0;s:11:\"create_time\";i:1311740123;}s:7:\"flypage\";s:15:\"flypage-ask.tpl\";}i:24;a:1:{s:7:\"flypage\";s:15:\"flypage-ask.tpl\";}}vmUseGreyBox|s:1:\"0\";vmCartDirection|s:1:\"0\";vmMiniCart|b:0;session_userstate|N;'
      WHERE session_id='2717621fbfc5914a252f5006d6e26f85'
    SELECT *
      FROM jos_components
      WHERE parent = 0
    SELECT folder AS type, element AS name, params
      FROM jos_plugins
      WHERE published >= 1
      AND access <= 1
      ORDER BY ordering
    CREATE TABLE IF NOT EXISTS `jos_ualog` (
              `id` int(11) NOT NULL AUTO_INCREMENT,
              `user_id` int(11) NOT NULL,
              `option` varchar(255) NOT NULL,
              `task` varchar(255) NOT NULL,
              `action_link` text NOT NULL,
              `action_title` text NOT NULL,
              `item_title` varchar(255) NOT NULL,
              `cdate` int(11) NOT NULL,
              PRIMARY KEY  (`id`))
    SELECT id, parent_id, value, name, lft, rgt
      FROM jos_core_acl_aro_groups
      WHERE id=23
    SELECT name,player_id,ripper_id,postreplace
      FROM jos_avr_tags
    SELECT name,player_id,ripper_id,postreplace
      FROM jos_avr_tags
    SELECT m.*, c.`option` AS component
      FROM jos_menu AS m
      LEFT JOIN jos_components AS c
      ON m.componentid = c.id
      WHERE m.published = 1
      ORDER BY m.sublevel, m.parent, m.ordering
    SELECT template
      FROM jos_templates_menu
      WHERE client_id = 0
      AND (menuid = 0 OR menuid = 56)
      ORDER BY menuid DESC
      LIMIT 0, 1
    SELECT group_id,group_name,group_level
      FROM `jos_vm_auth_group`
      ORDER BY group_level
    SELECT jos_vm_shopper_group.shopper_group_id, show_price_including_tax, `default`, shopper_group_discount
               
      FROM `jos_vm_shopper_group`,`jos_vm_shopper_vendor_xref`
      WHERE jos_vm_shopper_vendor_xref.user_id='150'
      AND jos_vm_shopper_group.shopper_group_id=jos_vm_shopper_vendor_xref.shopper_group_id
    SELECT COUNT(user_id) AS num_rows
      FROM `jos_vm_user_info`, `jos_users`
                                   
      WHERE `id`=`user_id`
                                   
      AND jos_vm_user_info.user_id='150'
                                   
      AND jos_vm_user_info.address_type='BT'
    SELECT perms,first_name,last_name,country,zip
      FROM jos_vm_user_info
      WHERE user_id='150'
    SELECT `vendor_id`
      FROM `jos_vm_auth_user_vendor`
      WHERE `user_id` =150
    SELECT vendor_id, vendor_min_pov,vendor_name,vendor_store_name,contact_email,vendor_full_image, vendor_freeshipping,
                                            vendor_address_1,vendor_address_2, vendor_url, vendor_city, vendor_state, vendor_country, country_2_code, country_3_code,
                                            vendor_zip, vendor_phone, vendor_store_desc, vendor_currency, vendor_currency_display_style,
                                            vendor_accepted_currencies, vendor_address_format, vendor_date_format, state_name
                                   
      FROM (`jos_vm_vendor` v, `jos_vm_country` c)
                                   
      LEFT JOIN jos_vm_state s
      ON (v.vendor_state=s.state_2_code
      AND s.country_id=c.country_id)
                                   
      WHERE `v`.`vendor_id`=1
                                   
      AND (`v`.`vendor_country`=`c`.`country_2_code` OR `v`.`vendor_country`=`c`.`country_3_code`);
    SELECT `function_perms`, `function_class`, `function_method`
                                   
      FROM `jos_vm_function`
                                   
      WHERE LOWER(`function_name`)='checkoutprocess'
    SELECT module_id, module_name
      FROM jos_vm_module
      ORDER BY module_name
    SELECT module_perms
      FROM jos_vm_module
      WHERE module_name='checkout'
    SELECT jos_vm_module.module_name,jos_vm_function.function_class
      FROM jos_vm_module,jos_vm_function
      WHERE jos_vm_module.module_id=jos_vm_function.module_id
      AND jos_vm_function.function_method='process'
      AND jos_vm_function.function_class='ps_checkout'
    SELECT product_id, `jos_vm_product`.*
      FROM `jos_vm_product`
      WHERE `product_id`=25
    SELECT shopper_group_id,shopper_group_discount
      FROM jos_vm_shopper_group
      WHERE vendor_id='1'
      AND `default`='1'
    SELECT `product_price`, `product_price_id`, `product_currency`
      FROM `jos_vm_product_price`
      WHERE product_id=25
      AND shopper_group_id=5   
      AND (('2' >= price_quantity_start
      AND '2' <= price_quantity_end)
                                    OR (price_quantity_end='0') OR ('2' > price_quantity_end))
      ORDER BY price_quantity_end DESC
    SELECT amount,is_percent
      FROM jos_vm_product,jos_vm_product_discount
      WHERE product_id='25'
      AND (start_date<='1311740139' OR start_date=0)
      AND (end_date>='1311723360' OR end_date=0)
      AND product_discount_id=discount_id
    SELECT product_parent_id
      FROM jos_vm_product
      WHERE product_id=25
    SELECT amount,is_percent
      FROM jos_vm_product,jos_vm_product_discount
      WHERE product_id='24'
      AND (start_date<='1311740139' OR start_date=0)
      AND (end_date>='1311723360' OR end_date=0)
      AND product_discount_id=discount_id
    SELECT product_id, `jos_vm_product`.*
      FROM `jos_vm_product`
      WHERE `product_id`=28
    SELECT `product_price`, `product_price_id`, `product_currency`
      FROM `jos_vm_product_price`
      WHERE product_id=28
      AND shopper_group_id=5   
      AND (('1' >= price_quantity_start
      AND '1' <= price_quantity_end)
                                    OR (price_quantity_end='0') OR ('1' > price_quantity_end))
      ORDER BY price_quantity_end DESC
    SELECT amount,is_percent
      FROM jos_vm_product,jos_vm_product_discount
      WHERE product_id='28'
      AND (start_date<='1311740139' OR start_date=0)
      AND (end_date>='1311723360' OR end_date=0)
      AND product_discount_id=discount_id
    SELECT product_parent_id
      FROM jos_vm_product
      WHERE product_id=28
    SELECT amount,is_percent
      FROM jos_vm_product,jos_vm_product_discount
      WHERE product_id='0'
      AND (start_date<='1311740139' OR start_date=0)
      AND (end_date>='1311723360' OR end_date=0)
      AND product_discount_id=discount_id
    SELECT `payment_enabled`, `payment_method_id`
      FROM `jos_vm_payment_method`
      WHERE `payment_class`='ps_paypal_api'
    SELECT `payment_method_id`
      FROM `jos_vm_payment_method`
      WHERE `payment_class`='ps_paypal_api'
      AND `payment_enabled`='Y'
    SELECT id
      FROM jos_menu
      WHERE link='index.php?option=com_virtuemart'
      AND published=1
    SELECT id, params
      FROM jos_menu
      WHERE link='index.php?option=com_virtuemart'
      AND published=1
    SELECT product_parent_id
      FROM jos_vm_product
      WHERE product_id=25
    SELECT product_id, `jos_vm_product`.*
      FROM `jos_vm_product`
      WHERE `product_id`=24
    SELECT *
      FROM jos_vm_product_attribute,jos_vm_product_attribute_sku
      WHERE jos_vm_product_attribute.product_id = '25'
      AND jos_vm_product_attribute_sku.product_id ='24'
      AND jos_vm_product_attribute.attribute_name = jos_vm_product_attribute_sku.attribute_name
      ORDER BY attribute_list,jos_vm_product_attribute.attribute_name
    SELECT product_sku,product_parent_id,product_weight,product_weight_uom
      FROM jos_vm_product
      WHERE product_id='25'
    SELECT product_parent_id
      FROM jos_vm_product
      WHERE product_id=28
    SELECT product_sku,product_parent_id,product_weight,product_weight_uom
      FROM jos_vm_product
      WHERE product_id='28'
    SELECT state, country
      FROM jos_vm_user_info
      WHERE user_info_id='914b4432edb00499e27ff6436e680b42'
    SELECT *
      FROM jos_vm_tax_rate
      WHERE tax_country='USA'
      AND (tax_state='UT' OR tax_state=' UT ')
    SELECT `payment_method_id`
      FROM `jos_vm_payment_method`
      WHERE `payment_class`='ps_paypal_api'
      AND `payment_enabled`='Y'
    SELECT COUNT(user_id) AS num_rows
      FROM `jos_vm_user_info`, `jos_users`
                                   
      WHERE `id`=`user_id`
                                   
      AND jos_vm_user_info.user_id='150'
                                   
      AND jos_vm_user_info.address_type='BT'
    SELECT *
      FROM jos_vm_user_info, jos_vm_country
      WHERE user_info_id='914b4432edb00499e27ff6436e680b42'
      AND ( country=country_2_code OR country=country_3_code)
    SELECT *
      FROM jos_vm_vendor
      WHERE vendor_id='1'
    SELECT product_sku,product_parent_id,product_weight,product_weight_uom
      FROM jos_vm_product
      WHERE product_id='25'
    SELECT `product_price`, `product_price_id`, `product_currency`
      FROM `jos_vm_product_price`
      WHERE product_id=25
      AND shopper_group_id=5   
      ORDER BY price_quantity_start
    SELECT product_sku,product_parent_id,product_weight,product_weight_uom
      FROM jos_vm_product
      WHERE product_id='25'
    SELECT product_sku,product_parent_id,product_weight,product_weight_uom
      FROM jos_vm_product
      WHERE product_id='28'
    SELECT `product_price`, `product_price_id`, `product_currency`
      FROM `jos_vm_product_price`
      WHERE product_id=28
      AND shopper_group_id=5   
      ORDER BY price_quantity_start
    SELECT id, title, module, position, content, showtitle, control, params
      FROM jos_modules AS m
      LEFT JOIN jos_modules_menu AS mm
      ON mm.moduleid = m.id
      WHERE m.published = 1
      AND m.access <= 1
      AND m.client_id = 0
      AND ( mm.menuid = 56 OR mm.menuid = 0 )
      ORDER BY position, ordering
    SELECT product_parent_id
      FROM jos_vm_product
      WHERE product_id=28
    SELECT product_parent_id
      FROM jos_vm_product
      WHERE product_id=25
    SELECT *
      FROM jos_vm_product_attribute,jos_vm_product_attribute_sku
      WHERE jos_vm_product_attribute.product_id = '25'
      AND jos_vm_product_attribute_sku.product_id ='24'
      AND jos_vm_product_attribute.attribute_name = jos_vm_product_attribute_sku.attribute_name
      ORDER BY attribute_list,jos_vm_product_attribute.attribute_name
    SELECT category_id, category_description, category_name,category_child_id AS cid, category_parent_id AS pid,list_order, category_publish
                                                   
      FROM jos_vm_category, jos_vm_category_xref
      WHERE jos_vm_category.category_publish='Y'
      AND jos_vm_category.category_id=jos_vm_category_xref.category_child_id
      ORDER BY jos_vm_category.list_order ASC, jos_vm_category.category_name ASC
    SELECT group_id,group_name,group_level
      FROM `jos_vm_auth_group`
      ORDER BY group_level
    SELECT COUNT(user_id) AS num_rows
      FROM `jos_vm_user_info`, `jos_users`
                                   
      WHERE `id`=`user_id`
                                   
      AND jos_vm_user_info.user_id='150'
                                   
      AND jos_vm_user_info.address_type='BT'
    SELECT published
      FROM jos_modules
      WHERE module='mod_virtuemart_cart'
    SELECT id, title, CASE WHEN CHAR_LENGTH(alias) THEN CONCAT_WS(':', id, alias) ELSE id END AS slug
      FROM jos_polls
      WHERE id = 15
      AND published = 1
    SELECT id, text
      FROM jos_poll_data
      WHERE pollid = 15
      AND text <> ""
      ORDER BY id
    SELECT m.*
      FROM jos_menu AS m
      WHERE menutype='topmenu'
      AND published = 1
      AND access <= 1
      ORDER BY ordering

4 legacy queries logged

    SELECT `lft`, `rgt`
      FROM `jos_core_acl_aro_groups`
      WHERE `name`='Public Frontend'
    SELECT g1.id, g1.name, COUNT(g2.name) AS level

      FROM jos_core_acl_aro_groups AS g1

      INNER JOIN jos_core_acl_aro_groups AS g2
      ON g1.lft BETWEEN g2.lft
      AND g2.rgt

      WHERE g1.lft BETWEEN 3
      AND 12

      GROUP BY g1.name

      ORDER BY g1.lft
    SELECT `lft`, `rgt`
      FROM `jos_core_acl_aro_groups`
      WHERE `name`='Public Backend'
    SELECT g1.id, g1.name, COUNT(g2.name) AS level

      FROM jos_core_acl_aro_groups AS g1

      INNER JOIN jos_core_acl_aro_groups AS g2
      ON g1.lft BETWEEN g2.lft
      AND g2.rgt

      WHERE g1.lft BETWEEN 13
      AND 20

      GROUP BY g1.name

      ORDER BY g1.lft

Language Files Loaded

    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.ini 1
    /home/xxxxxxx/public_html/xxxxxxx/administrator/language/en-GB/en-GB.plg_system_modulesanywhere.ini 1
    /home/xxxxxxx/public_html/xxxxxxx//administrator/language/en-GB/en-GB.plg_content_avreloaded.ini 1
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.plg_system_debug.ini 1
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.com_virtuemart.ini
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.tpl_natura_plazza.ini
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.mod_mainmenu.ini 1
    /home/xxxxxxx/public_html/xxxxxxx//language/en-GB/en-GB.mod_virtuemart_cart.ini
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.mod_virtuemart.ini
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.mod_virtuemart_login.ini
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.mod_mailchimp.ini 1
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.mod_poll.ini 1
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.mod_smoothgallery.ini 1
    /home/xxxxxxx/public_html/xxxxxxx/language/en-GB/en-GB.mod_exmenu-j15.ini

Untranslated Strings Diagnostic

None

Untranslated Strings Designer

None

Any suggestions?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 14:07:30 pm
You'll need to go line-by-line and enter the SQL update commands.  A line ends with a semi-colon.  Just ignore the duplicate column errors, and proceed to the next line.
Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 16:45:14 pm
I went into PHPmyadmin under sql tab and put this in:
ALTER TABLE jos_vm_product ADD COLUMN ship_alone CHAR(1) NOT NULL DEFAULT 'N' AFTER ship_code_id;

As one line.  I got this:

! #1060 - Duplicate column name 'ship_alone'
ALTER TABLE jos_vm_product ADD COLUMN ship_aloneCHAR( 1 ) NOT NULL DEFAULT 'N' AFTER ship_code_id;

Any other suggestions please?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 16:52:14 pm
Switch VIRTUEMART debugging on, not Joomla debugging. This should give you more info to work with.
Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 17:04:33 pm
Both Joomla and virtuemart in debug mode.

Logged out.  Closed and opened firefox browser.  Re logged in as a customer.

After hitting next to get shippment choices (step 2 of 4), get this:

At top:
Debug: Using existing Session 721deec9c90614c623938f840f24449c, ID: dceadfe91d10f9eaae9f3ed6bf8d2103.
Debug: calculating tax based on shipping address

underneath shipping info:
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 25 (Minagain Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.1275 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 25 (Minagain Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.255 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 28 (Nojmak Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.2645625 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49770 , Destination: US/84741-2064, Weight: 0.2645625, Value: 26
Debug: uspsv5::get_rates_array() - GXG service selected. Forcing dimension declaration.
Debug: uspsv5::get_rates_array() - ERROR - GXG services selected, but package dimensions were invalid.
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.

Under shop core variables:

Code: [Select]
DEBUG CENTER
Version: VirtueMart 1.1.9 stable [Our last album]
19/06/2011 10:14 GMT
RunTime: 0.044658899307251 sec.  Current Page: checkout.index
Queries executed: 4    Last Page: checkout.index
UID: 150  Return To Page:
Username: gallowaycave@aol.com  Function: checkoutProcess
Perms: shopper  Command (Result): (True) 
$func_perms: ./. $ps_vendor_id: 1   
 
$dir_perms: Ok  global Log: 0 logged message(s).   
 
Joomla! Session ID: dceadfe91d10f9eaae9f3ed6bf8d2103
VirtueMart Session ID: dceadfe91d10f9eaae9f3ed6bf8d2103   
$cart: $cart[0]:ID[25]->Qty:[2]
$cart[1]:ID[28]->Qty:[1]
$auth: Array ( [show_prices] => 1 [user_id] => 150 [username] => customer e-mail [perms] => shopper [first_name] => Rebecca [last_name] => Wright [shopper_group_id] => 5 [shopper_group_discount] => 0.00 [show_price_including_tax] => 1 [default_shopper_group] => 1 [is_registered_customer] => 1 [country] => USA [zip] => 84741-2064 )

Under Global Variables:

Code: [Select]
$_POST:
$_GET:
$_COOKIE:
$_SESSION: __default=> {Array}
auth=> {Array}
cart=> {Array}
recent=> {Array}
ps_vendor_id=>1
minimum_pov=>6.00
vendor_currency=>USD
vmUseGreyBox=>0
vmCartDirection=>0
vmMiniCart=>
savedcart=> {Array}
product_sess=> {Array}
userstate=> {Array}
last_page=>checkout.index
 
$vars: page => checkout.index
checkout_last_step => 1
option => com_virtuemart
Itemid => 56
user_id => 150
func => checkoutProcess
zone_qty => 3
ship_to_info_id => 914b4432edb00499e27ff6436e680b42
shipping_rate_id =>
payment_method_id => 0
formSubmit => Next >>
__utma => 221828481.352914559.1304953890.1311777516.1311778688.68
__utmz => 221828481.1311778688.68.31.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=Herbal Lodge
ys-vmconfiguration-active => s:ext-comp-1006
__utmb => 221828481.5.10.1311778688
__utmc => 221828481
721deec9c90614c623938f840f24449c => dceadfe91d10f9eaae9f3ed6bf8d2103
virtuemart => f6c5da911b0f6177ee80a6f4ce03b1fe
a6d25dee69dd79aa4c90557710872346 => 2 E B 94344 D5C 9104C425C425A 75C5216 E41 A50565B46 4 45A D5B16 24D5A524E5277 55C5E1752565D165D42 D C F1040 3151213 C175243 F1259 2 311484254 F56571B A44
order_subtotal_withtax => 26
payment_discount => 0
total => 26
 
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 17:08:42 pm
Quote
Debug: uspsv5::get_rates_array() - GXG service selected. Forcing dimension declaration.
Debug: uspsv5::get_rates_array() - ERROR - GXG services selected, but package dimensions were invalid.


You MUST have package dimensions declared if you're going to offer GXG.  You'll also want to make those packages "unbundled" (ship alone), otherwise you could get weird rate results with multiple products in the cart.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 17:38:43 pm
I don't know what GXG is.  How do I make those packages unbundled?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 17:50:53 pm
View the "Usage" tab.

If you don't know what GXG is, then you probably don't want to use it...it would be easier to simply uncheck the GXG services.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 17:55:50 pm
I understand what your saying, I just don't know where to turn GXG off?

All I see is this:
The USPS Shipping module v5.2011.02.10, for VirtueMart 1.1.7+. Uses v4 Domestic, v2 Inernational USPS API.
with a check box next to it in virtuemart.  Did a google and did not find anything on how to turn it off?

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 17:58:11 pm
Administration->Store->Shipping Module List->Configure Ship Method
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 18:11:14 pm
Geez I am dumb.  I am under:
International Service Options

Said no to anything that says GXG

I did not see anything under Domestic Service Options
This was a domestic order.

I am still getting:
Notice: We are unable to ship via USPS at this time. System Error.





[i[/i]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 18:13:39 pm
That's a generic error.  You'll have to post more information...what does the debug output show? I'm not interested in the Joomla debug, just VirtueMart.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 18:34:36 pm
Debug mode on in virtuemart and your module:

Debug: Using existing Session 721deec9c90614c623938f840f24449c, ID: ac46a19e3771ab5fabf682ada0703311.
 
Debug: calculating tax based on shipping address

Shop core variables

DEBUG CENTER
Version: VirtueMart 1.1.9 stable [Our last album]
19/06/2011 10:14 GMT
RunTime:    0.12400794029236 sec.     Current Page:    checkout.index
Queries executed:    0       Last Page:    checkout.index
UID:    150     Return To Page:    
Username:    xxxxxxxxxx     Function:    
Perms:    shopper     Command (Result):    (True) 
$func_perms:    ./.    $ps_vendor_id:    1   
 
$dir_perms:    Ok     global Log:    0 logged message(s).   
 
Joomla! Session ID:    ac46a19e3771ab5fabf682ada0703311
VirtueMart Session ID:    ac46a19e3771ab5fabf682ada0703311   
$cart:    $cart[0]:ID[25]->Qty:[2]
$cart[1]:ID[28]->Qty:[1]
$auth:    Array ( [show_prices] => 1 [user_id] => 150 [username] => xxxxxxxxx [perms] => shopper [first_name] => xxxxxx [last_name] => xxxxxx[country] => USA [zip] => 84741-2064 [shopper_group_id] => 5 [shopper_group_discount] => 0.00 [show_price_including_tax] => 1 [default_shopper_group] => 1 [is_registered_customer] => 1 )

Global Variables

$_GET:    zone_qty=>3
$_COOKIE:    
$_SESSION:    __default=> {Array}
auth=> {Array}
savedcart=> {Array}
cart=> {Array}
recent=> {Array}
ps_vendor_id=>1
minimum_pov=>6.00
vendor_currency=>USD
vmUseGreyBox=>0
vmCartDirection=>0
product_sess=> {Array}
vmMiniCart=>
userstate=> {Array}
last_page=>checkout.index
     
$vars:    page => checkout.index
option => com_virtuemart
Itemid => 56
redirected => 1
__utma => 221828481.352914559.1304953890.1311778688.1311782703.69
__utmz => 221828481.1311782703.69.32.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=xxxxxxx
ys-vmconfiguration-active => s:ext-comp-1006
__utmc => 221828481
721deec9c90614c623938f840f24449c => ac46a19e3771ab5fabf682ada0703311
virtuemart => f6c5da911b0f6177ee80a6f4ce03b1fe
a6d25dee69dd79aa4c90557710872346 => 2 E B 94344 D5C 9104C425C425A 75C5216 E41 A50565B46 4 45A D5B16 24D5A524E5277 55C5E1752565D165D42 D C F1040 3151213 C175243 F1259 2 311484254 F56571B A44
ys-debugpanel-active => s:ext-comp-1004
daea327e18462ee6c5484fd075146556 => 9573b59c9e39f584ff123a2b87e9b1a6
switchmenu => 1
__utmb => 221828481.6.10.1311782703
ys-uspsv5configuration-active => s:ext-comp-1003
order_subtotal_withtax => 26
payment_discount => 0
zone_qty => 3
total => 26
 

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 19:17:57 pm
I'm more interested in the debug output from the module itself..what does that show?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 19:22:17 pm
The information I posted was all from the front end during a transaction, I cut and pasted everything that was posted.  Where can I locate the information your looking for?

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 19:24:43 pm
It should be on the front end, just below the "Starting shipping module uspsv5" (or something like that).  If it's not showing, did you turn the module off?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 19:25:41 pm
Also, were you on the "Select shipping method" step?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 21:36:48 pm
You mean:

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 25 (Minagain Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.1275 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 25 (Minagain Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.255 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 28 (Nojmak Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.2645625 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49770 , Destination: US/84741-2064, Weight: 0.2645625, Value: 26
Debug: uspsv5::get_rates_array() - GXG service selected. Forcing dimension declaration.
Debug: uspsv5::get_rates_array() - ERROR - GXG services selected, but package dimensions were invalid.
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.


Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 27, 2011, 22:00:47 pm
Debug: uspsv5::get_rates_array() - GXG service selected. Forcing dimension declaration.
Debug: uspsv5::get_rates_array() - ERROR - GXG services selected, but package dimensions were invalid.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 27, 2011, 23:18:12 pm
I don't know how to turn off the GXG?  I don't see it under domestic?

Here are my exact settings:

Shipping Module Configuration: uspsv5.php

IMPORTANT    VirtueMart 1.1.7 has introduced new behavior. When saving the shipping module, it no longer returns to the shipping module list. This does not allow the NEW values to be read from the configuration. You may see the OLD values. After saving the module configuration, be sure to click on the 'Shipping Module List' link before viewing these settings again!    
Show extra debug info          
USPS Shipping API Username       
USPS API Server       
USPS API Path       
Package Size       
Tax class       
Proxy Server       
Weight Padding       
Handling Fee (domestic)       
Handling Fee (international)       
Machineable Packages    No    
Show delivery days quote?    Yes    
Report Errors?    No    
Show standard shipping options on error or no USPS results?    Yes   
Service name prefix       
Domestic Service Options
Shipping Method    Available    Upcharge      Shipping Commitment
Express Mail® Hold For Pickup    Yes       
Express Mail®    Yes
Express Mail® Flat Rate Envelope    Yes
Express Mail® Flat Rate Envelope Hold For Pickup    Yes    
Express Mail® Sunday/Holiday Delivery Flat Rate Envelope    Yes        
Express Mail® Legal Flat Rate Envelope    Yes
Express Mail® Legal Flat Rate Envelope Hold For Pickup    Yes   
Express Mail® Sunday/Holiday Delivery Legal Flat Rate Envelope    Yes        
Priority Mail®    Yes
Priority Mail® Large Flat Rate Box    Yes        
Priority Mail® Medium Flat Rate Box    Yes        
Priority Mail® Small Flat Rate Box    Yes        
Priority Mail® Flat Rate Envelope    Yes    
Priority Mail® Legal Flat Rate Envelope    Yes        
Priority Mail® Padded Flat Rate Envelope    Yes        
Priority Mail® Gift Card Flat Rate Envelop    Yes        
Priority Mail® Small Flate Rate Envelope    Yes       
Priority Mail® Window Flat Rate Envelope    No       
First-Class Mail® Package No       
First-Class Mail® Large Envelope     No       
Parcel Post®    No       
Media Mail®    No       
Library Mail®  No       
International Service Options
Shipping Method    Available    Upcharge
Global Express Guaranteed® (GXG)**    No    
Global Express Guaranteed® Non-Document Rectangular    Yes    
Global Express Guaranteed® Non-Document Non-Rectangular    Yes     
USPS GXG™ Envelopes**    No    
Express Mail® International    Yes    
Express Mail® International Flat Rate Envelope    Yes
Express Mail® International Legal Flat Rate Envelope    Yes    
Priority Mail® International    Yes
Priority Mail® International Large Flat Rate Box    Yes    
Priority Mail® International Medium Flat Rate Box    Yes    
Priority Mail® International Small Flat Rate Box**    Yes     
Priority Mail® International DVD Flat Rate Box**    Yes     
Priority Mail® International Large Video Flat Rate Box**    No    
Priority Mail® International Flat Rate Envelope**     No    
Priority Mail® International Legal Flat Rate Envelope**     No    
Priority Mail® International Padded Flat Rate Envelope**     No    
Priority Mail® International Gift Card Flat Rate Envelope**     No    
Priority Mail® International Small Flat Rate Envelope**  No    
Priority Mail® International Window Flat Rate Envelope**     No    
First-Class Mail® International Package**    No    
First-Class Mail® International Large Envelope**  No    
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 28, 2011, 01:04:04 am
Quote
Global Express Guaranteed® Non-Document Rectangular    Yes   
Global Express Guaranteed® Non-Document Non-Rectangular    Yes   

These are the culprits!
They really need to work on their naming conventions, yes? ;)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 28, 2011, 04:42:09 am
Version 4 wanted the password in the config file, V5 does not need it?

First is my config file right?

Shipping Module Configuration: uspsv5.php

USPS Shipping API Username 178BLABLAJ
USPS API Server Production.ShippingAPIs.com
USPS API Path /ShippingAPI.dll
Package Size    Regular
Tax class   0
Proxy Server   

So front end again, checking out getting parcel info:

Debug: Using existing Session 721deec9c90614c623938f840f24449c, ID: 3196516b261413bd805774e8684f1e1a.
Debug: calculating tax based on shipping address

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 25 (Minagain Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.1275 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 25 (Minagain Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.255 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 28 (Nojmak Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.2645625 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49770 , Destination: US/84741-2064, Weight: 0.2645625, Value: 26
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.

Debug XML

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="17XXXXXX2" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>49770</ZipOrigination><ZipDestination>84741-2064</ZipDestination><Pounds>0</Pounds><Ounces>5</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV4Request>

XML Result

<?xml version="1.0"?><br />
<RateV4Response><Package ID="0"><Error><Number>-2147219497</Number><Source>DomesticRatesV4;RateEngineV4.ProcessRequest</Source><Description>Please enter a valid ZIP Code for the recipient.  </Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></RateV4Response><br />


   Shipper   Shipping Rate   Price
   DHL   World_1 > 4kg   $41.66
   DHL   World_2 > 4kg   $50.53
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.


I have all the GXG where they shoudl be.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 28, 2011, 13:52:13 pm
+4 zip codes are not supported by the USPS API.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 28, 2011, 18:46:40 pm
Can please you give me some code to insert so when someone does enter +4 your program will snip off the 4+ to calculate shipping?

Also where do I send a donation?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 28, 2011, 20:41:28 pm
You could try this:
uspsv5.php, line 106

Replace:
Code: [Select]
$this->dest_zip = trim($dbu->f("zip"));
with:
Code: [Select]
$zip_arr = explode('-',trim($dbu->f("zip")));
$this->dest_zip = $zip_arr[0];

I have  a donation link on my web page, if you'd like to donate a bit.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on July 28, 2011, 20:55:57 pm
I have not tried your code yet.  I will.  Can you include this in future releases?

I have sent you a donation.  e-mail is native@##@^^@@$(&@yahoo.com

Thank you very much for all of your help.  Others reading please consider donating.  This module is a great product and we should show our appreciation to such an important module that has helped us all.
Title: Need help on USPS v5 since I mix up DB for USPS, UPS, and Fedex
Post by: hsiehd on August 08, 2011, 05:46:57 am
Can someone talk me how to clean the Datebase for USPS, UPS, and FeDex since I do not know those three can not install togeter?

I was extract those three files by using FTP to server then add those three sqls updates too. I do USPS first then do UPS second and come out some problem that show can not updates. I think I mix up the Datebase, so when I check debug that will not come out XML for vm118-uspsv5.2011.03.25. But I can get XML after I copy plgsystemcartrates-uspsv5. I also can not link the link of the ship methods after this matter that will jump to payment methods after click the checkout.
Please help I need vm118-uspsv5.2011.03.25 that will work on my web in order can charge the shipping fee. I also need the link of the ship method work too. I am new for joomla, Virtuemart.

plgsystemcartrates-uspsv5
Debug: XML Post:
http://production.shippingapis.com/shippingapi.dll?API=RateV4&XML=<RateV4Request USERID="XXXXX" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>30032</ZipOrigination><ZipDestination>30032</ZipDestination><Pounds>0</Pounds><Ounces>1</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV4Request>

XML Result:
<?xml version="1.0"?><br />
<RateV4Response><Package ID="0"><ZipOrigination>30032</ZipOrigination><ZipDestination>30032</ZipDestination><Pounds>0</Pounds><Ounces>1</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>13.25</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>13.25</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>25.75</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="30"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.10</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box</MailService><Rate>14.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box</MailService><Rate>10.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="44"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="29"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="38"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="42"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="40"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Package</MailService><Rate>1.71</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Letter</MailService><Rate>0.64</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Postcards</MailService><Rate>0.29</Rate></Postage><Postage CLASSID="15"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Postcards</MailService><Rate>0.44</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.10</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>2.41</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.29</Rate></Postage></Package></RateV4Response><br />
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 08, 2011, 14:13:02 pm
You'll need to inspect each of the sql files included with each module, find the new columns that are created, and remove them from your table structures.  You'll also want to revert all of the files to their original versions.  Then, re-install the USPSv5 module.

Reggie
Title: Need help on USPS v5 since I mix up DB for USPS, UPS, and Fedex
Post by: hsiehd on August 09, 2011, 07:28:01 am
Thanks Reggie
So, I need go to SQl to remove the file that I use uspsv5.sql, upsv2.sql, and fedexv2.sql update.

For example:
ALTER TABLE `jos_vm_product` ADD COLUMN `ship_alone` CHAR(1) NOT NULL DEFAULT 'N' AFTER `ship_code_id`;
on your uspsv5.sql file that I need go to SQL to remove the column of ship_alone table structureson.



Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 09, 2011, 14:14:18 pm
Exactly.

Reggie
Title: Please help have problem on USPS v5 front end
Post by: hsiehd on August 10, 2011, 18:01:42 pm
Did someone know why I diable USPS Express Mail® Sunday/Holiday Delivery Legal Flat Rate Envelope ship method on "Shipping Module Configuration: uspsv5.php" that still will show on the front page of checkout?

Debug: XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="XXXXXX" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>30032</ZipOrigination><ZipDestination>30032</ZipDestination><Pounds>0</Pounds><Ounces>4</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV4Request>

XML Result:
<?xml version="1.0"?><br />
<RateV4Response><Package ID="0"><ZipOrigination>30032</ZipOrigination><ZipDestination>30032</ZipDestination><Pounds>0</Pounds><Ounces>4</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>13.25</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>13.25</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>25.75</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="30"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.10</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box</MailService><Rate>14.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box</MailService><Rate>10.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="44"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="29"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="38"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="42"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="40"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="0"><MailService>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Package</MailService><Rate>1.88</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>5.10</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>2.41</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>2.29</Rate></Postage></Package></RateV4Response><br />

USPS First-Class Mail® Package ($2.38)
USPS Priority Mail® Window Flat Rate Envelope ($5.45)
USPS Priority Mail® Flat Rate Envelope ($5.45)  -  2 - 9 Days
USPS Priority Mail® ($5.60)  -  1 - 3 Days
USPS Priority Mail® Small Flat Rate Box ($5.70)  -  2 - 9 Days
USPS Priority Mail® Medium Flat Rate Box ($11.45)  -  1 - 3 Days
USPS Express Mail® ($13.75)  -  Overnight, most locations
USPS Priority Mail® Large Flat Rate Box ($15.45)  -  1 - 3 Days
USPS Express Mail® Sunday/Holiday Delivery ($26.25)  -  Overnight, most locations
USPS Express Mail® Sunday/Holiday Delivery Flat Rate Envelope ($31.30)  -  Overnight, most locations
USPS Express Mail® Sunday/Holiday Delivery Legal Flat Rate Envelope ($31.30)  -  1 - 3 Days
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: tly_alex on August 10, 2011, 19:31:24 pm
Hi, I am using vm1.1.x-uspsv5.2011-02-09-basic on 1.1.4

I got an error like this:

Debug: Starting Shipping module: uspsv5
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 3 (120V 30 Feet Warm White LED Rope Light) to package #1 *****
Debug: Package::addItem() - Package weight is now: 3.06
Debug: Package::query_rates() - Querying for Source: US/02127 , Destination: US/02134, Weight: 3.06, Value: 72.33
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
ebug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: uspsv5::list_rates() - shipment->populate() failed!

XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="I removed" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>02127</ZipOrigination><ZipDestination>02134</ZipDestination><Pounds>3</Pounds><Ounces>1</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable>   </Package></RateV4Request>


XML Result:

<?xml version="1.0"?>
<RateV4Response><Package ID="0"><ZipOrigination>02127</ZipOrigination><ZipDestination>02134</ZipDestination><Pounds>3</Pounds><Ounces>1</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>18.90</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>18.90</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>31.40</Rate></Postage><Postage CLASSID="13"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="30"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>18.30</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.30</Rate></Postage><Postage CLASSID="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>30.80</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>6.70</Rate></Postage><Postage CLASSID="22"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box</MailService><Rate>14.95</Rate></Postage><Postage CLASSID="17"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box</MailService><Rate>10.95</Rate></Postage><Postage CLASSID="28"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box</MailService><Rate>5.20</Rate></Postage><Postage CLASSID="16"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="44"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="29"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="38"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="42"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="40"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope</MailService><Rate>4.95</Rate></Postage><Postage CLASSID="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>6.10</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>3.64</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>3.46</Rate></Postage></Package></RateV4Response>


I go throughed this long thread and I did not find anything that solve me problem.

Hope someone could help! thanks.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 10, 2011, 19:40:27 pm
This can happen if no services are selected in the module config.  Check that first.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: tly_alex on August 14, 2011, 05:43:39 am
Hi lowmips,

Thanks for reply. I double checked, i did select usps shipping module in the admin->configuration->shipping->usps.

Is there anything seems unreasonable in the debug info?

Thanks for you reply again!

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: tly_alex on August 14, 2011, 05:45:40 am
This can happen if no services are selected in the module config.  Check that first.


BTW, I notice in the configuration, there is info like this"The USPS Shipping module v5.2011.02.09-BASIC, for VirtueMart 1.1.7+. Uses v4 Domestic, v2 Inernational USPS API."

But i am pretty sure i download the version for 1.1.x

Is this a problem or just i can ignore it.

Thanks again, have a good weekend.

Reggie
Title: Re: USPSv5 - Bundled and Unbundled shipping
Post by: sleepigrl on November 04, 2011, 22:22:09 pm
Hi Reggie,

First, let me say thanks for all your work on this module!  I have a question about a very old topic.  Can you tell me if the following is still case?

2) As the module is currently coded, there's no way to designate free shipping on a product.  However, I have a solution for this in my UPSv2 module (shipping modifiers), which I could port over to the USPSv5 module for a fee.

I have a client with an online store that sells admission tickets (which don't need to ship at all) as well as products.  I currently have the ticket weight set to zero, which works fine as long as there isn't a product in the cart.  So, right now I can have either tickets (zero weight items) or products (items with weights) in the cart, but not a combination.  When I have both, I get the following:

uspsv5::__construct() - Starting module version 5.2011.02.10
uspsv5::list_rates() - Starting
Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Shipment::populate() - addItem failed for pid 17
uspsv5::list_rates() - shipment->populate() failed!

Thanks again!
Sandy
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on November 05, 2011, 02:44:19 am
Sandy, there is a "shipping bypass" mod somewhere on these forums.  That may be your best bet.  As it is right now, the USPSv5 module still does not have shipping modifiers or any bypass mechanism.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sleepigrl on November 08, 2011, 19:11:13 pm
Reggie,

Thanks for the advice, but unfortunately that mod doesn't seem to be available any longer.  As best as I can tell, the developer is no longer supporting VirtueMart - or maybe only his own VM distribution (but it looks like he's switched to Tienda).

I think my errors are stemming from the cart trying to process two separate shippers. 
How difficult would it be to modify your module to do one of the following (I think any of them would work in my case):


If any of those are feasible, would you be available to develop the solution? (for a fee, of course!)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on November 08, 2011, 19:17:27 pm
The shipping modifier feature of my other modules would not work.  It actually gets the rates and then modifies them, even if the modifier is zero (there are reasons for this).

The bypass/ignore feature would be the way to go.   You'd need to check for and handle all three cases:
1) Shipping + non-shipping items in cart
2) Only shipping items in cart
3) Only non-shipping items in cart

For case #3 you could show the "free shipping" module, or go a step further and bypass the shipping selection step altogether.

I'd like to help, but I am currently overwhelmed with work (thank God)!

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sleepigrl on November 08, 2011, 19:33:03 pm
I'd like to help, but I am currently overwhelmed with work (thank God)!

Good for you (and bad for me)!  :)

It works correctly now for case #3, and for case #1.  It's just the mix where it has issues.

Does VM track anywhere whether a product has been through a "shipping process"? In other words, if I just forced the USPSv5 module to ignore non-shipping items in some fashion, would that be sufficient?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on November 08, 2011, 19:43:49 pm
No.  VM by default associates only the total product weights with shipping, and only "remembers" what shipping rate the user chose.  That's it.
I suppose you could tell USPSv5 to ignore zero weight items.  If I recall correctly, VM itself checks for virtual items and skips the shipping method if only virtual items are in the cart, right?

Look in class.Shipment.php, function populate(). You can check for and skip zero weight products there.  You've already got the product id, so it's a matter of looking up the weight and using a "continue" statement if it's zero.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sleepigrl on November 08, 2011, 19:57:05 pm
Yes, and thanks again!  That's what I was thinking I would try, so it's good to hear I was on the right track.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ezexpela on December 18, 2011, 23:09:58 pm
Hi lowmips,
question :  the calculated shipping price is based only on weight?

USPSv5, does not support other than REGULAR package , right?
how do i configure or adapt, this package to make it work with volume dimensions?

cheers
ezequiel
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on December 19, 2011, 02:33:20 am
The latest version of USPSv5 DOES support dimensions. The module can declare packages either REGULAR or LARGE.  This is a blanket declaration, however, so it applies to all products.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: wslover317 on January 04, 2012, 00:12:02 am
I was looking for a way to have multiple package due to the 70 pound USPS limit and came upon your module.
Everything works fine except creating multiple packages. I tested this by adding 100 of the same product to the cart, each weighing .9 pounds.

Here is the error print out I get. Any help would be greatly appreciated.

uspsv5::__construct() - Starting module version 5.2011.02.10
uspsv5::list_rates() - Starting
Shipment::addPackage() Adding a new bundled package
Shipment::addPackage() - Package Number: 1
Shipment::addPackage() - Package is Bundled
Shipment::addPackage() - Maxweight: 70
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::addItem() - WARNING - product dimensions assumed to be INCHES
Package::query_rates() - Querying for Source: US/34611 , Destination: US/07718, Weight: 91.8, Value: 2499
uspsv5::get_rates_array() - forcing package size to LARGE due to large dimensions.
uspsv5::get_rates_array() - Calculating domestic shipping.
XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="*******" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>34611</ZipOrigination><ZipDestination>07718</ZipDestination><Pounds>91</Pounds><Ounces>13</Ounces><Container>RECTANGULAR</Container><Size>LARGE</Size><Width>6</Width><Length>21</Length><Height>6</Height><Machinable>FALSE</Machinable></Package></RateV4Request>

XML Result:
<?xml version="1.0"?>
<RateV4Response><Package ID="0"><Error><Number>-2147219499</Number><Source>DomesticRatesV4;clsRateV4.ValidateWeight;RateEngineV4.ProcessRequest</Source><Description>Warning - The package weight cannot exceed 70 pounds.  </Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></RateV4Response>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 04, 2012, 00:25:35 am
That is very strange...for some reason it failed to split into a new package after the 70lb limit.  I've never seen that happen.  Can you check that everything was installed correctly please?

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: wslover317 on January 04, 2012, 02:45:11 am
I just copied over the files as described in the read me file.
Checked the database and needed tables/columns are there (I imported the sql file).

I do however also see a problem when I am updating the settings.
Takes me multiple times of setting and hitting save before it takes effect.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 04, 2012, 14:45:47 pm
The settings issue is normal.  There should be a notice explaining why at the top of the config.  I would have to do a debug session to determine why the items are not splitting after 70 lbs.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: wslover317 on January 04, 2012, 20:15:59 pm
Rats, really need this function....

If you ever get bored and want to have a look, let me know and I can give you access.

Thanks!
Bill
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 04, 2012, 22:18:39 pm
email me Joomla admin + FTP access and I'll check it out.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: wslover317 on January 05, 2012, 06:02:27 am
Pm sent. I appreciate the help!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 05, 2012, 14:50:15 pm
******* BUGFIX *****

Affected Versions:
vm117-USPSv5.2011.02.10
vm118-USPSv5.2011.03.25
vm11x-USPSv5-2011.02.09BASIC

Bug Description:
Bundled packages with combined weight greater than 70 lbs were not being split into multiple packages

Files affected:
/administrator/components/com_virtuemart/classes/shipping/uspsv5/class.Package.php

Fix:
Download the updated version of your module, and replace this file.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: wslover317 on January 05, 2012, 20:28:43 pm
Reggie,
I see you got me up and running, greatly appreciated. Is that how you found the bug?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 05, 2012, 20:51:25 pm
Yeah, I did a quick debug on your live site, found the issue. 

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: wslover317 on January 05, 2012, 23:42:12 pm
Ok, last question.
Is there a way to have the Esitmated shipping plugin work with both UPS and USPS?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 06, 2012, 00:47:38 am
Neither one is designed to work together...they would have to be merged.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: wslover317 on January 06, 2012, 22:16:58 pm
I was able to merge the two. Let me know if you want to see what I did
Thanks for all of your help Reggie,
Bill
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Drewski on January 09, 2012, 16:19:49 pm


Reggie,

I have been receiving the following email from USPS below: I was wondering if we needed to do anything with this or if your program will handle the updates, etc?

On January 22, 2012, USPS will update domestic shipping services and international pricing and product features. For detailed information on prices and new product features, please reference the Federal Register Notices viewable at http://pe.usps.com/.

Price Change updates will be available in the Web Tools testing environment for integrator access on or around January 6, 2012. The test environment can be accessed, using your production UserID, via the following URL scheme, host and path:

Secure APIs: https://stg-secure.shippingapis.com/ShippingApi.dll

Non-secure APIs: http://stg-production.shippingapis.com/ShippingApi.dll

Please note that the changes below are intended to be backwards compatible, however, may not be depending on how individual programs are integrated with the APIs.

Sincerely,
Drew Patterson
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 09, 2012, 16:22:53 pm
The service name changes will affect all USPS modules.  I'll have to update mine after the switchover.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Drewski on January 09, 2012, 16:43:11 pm
Reggie,

Thanks for letting us know that this will def affect all USPS Modules. Do you know if this will change how we present our products? Meaning will we be forced to supply dimensions now instead of just a weight? We have some clients with 1,000 of products so if they need to start finding dimensions or are required to enter some variable it will be great to know ahead of time if at all possible. Main reason I ask is that in their design notes they are referencing dimensions.

Also I don't know if you noticed but they have provided a testing environment on the 6th, maybe you could use it to develop ahead of the switchover?

Sincerely,
Drew
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 09, 2012, 16:49:22 pm
The only dimensions requirements notice I saw was for the Rate and Ratev2 APIs, which are being retired in March anyway.  My module uses the RateV4 API.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Drewski on January 09, 2012, 16:59:14 pm
Awesome Reggie thanks so much for your amazingly fast responses we've had some issues with others in the past and it's quite refreshing to get quick response!!! :-) good luck with the updates we know how they can be pains in the butts sometimes an thanks for your great modules our clients love them.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: froggymorning on January 12, 2012, 11:38:29 am
Last year when the USPS made changes I got caught unawares and was down for 5 days, a lifetime of lost web sales!  But I did get their advance email this year and came looking here to stay on top of it. 

Reggie, I have thanked you in the past but seriously can't thank you enough. 
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 22, 2012, 23:40:51 pm
It seems the USPS changes today have broken First Class International and Domestic as well as Priority International.. Others, too I'm sure. Does anyone know how to fix this? I remember it happening last year around the same time. Desperately need a fix for this, please!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 22, 2012, 23:58:17 pm
And now it looks like everything is broken..
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 00:18:45 am
The only major change I saw in the USPS email was that this:
First-Class Mail® Package
would become this:
First-Class Mail® Parcel
So, open up your uspsv5.php file, find the First-Class Mail service name and replace "Package" with "Parcel".   Save your config a few time to make sure the new name is written out to file.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 23, 2012, 02:02:20 am
I wasn't actually using your software prior today.. but now I have the basic version all loaded up and the only thing happening is this error.

"Notice: We are unable to ship via USPS at this time. System Error."

Happens regardless of whether it says Package or Parcel.

Any help would be GREATLY appreciated.

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 02:32:45 am
Put your shop into debug mode.  Run the transaction again.  Note the API request and reply.  Post it here, removing your username from the request.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SparksArts on January 23, 2012, 02:38:12 am
Reggie,

After updating the uspsv5.php file and reloading the shipping module configuration a few times to get the new "parcel" to show up I was able to get 4 of my VM sites working - those using your 2011-02-09-basic module. Prior to the fix, everything was working OK except first class mail wasn't showing up as an option - all other checked services were still working.

However, I have one site using vm118-USPSv5.2011.03.25 but after the change to Parcel, First Class shipping option doesn't show up for products in the shopping cart. The new text Parcel does show up and First Class Parcel is checked in the configuration. The product weight is only 2 ounces so it ought to show up as an option in the cart.

The only place I found to update in the uspsv5.php file is line 927:

      "USPS_SHIP19_TEXT" => "First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Parcel",  // CLASSID 0

Don't know why first class option won't appear.

Richard
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 23, 2012, 02:56:12 am
Debug: Starting Shipping module: uspsv5
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 2834 ("Stay Up Get Down" CD PRE-ORDER) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.255
Debug: Package::query_rates() - Querying for Source: US/85301-3445 , Destination: US/85301, Weight: 0.255, Value: 5
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
XML Post: 
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request
 USERID="xxxxxxxx" ><Revision /><Package
ID="0"><Service>All</Service><ZipOrigination>85301-3445</ZipOrigination><ZipDestination>85301</ZipDestination><Pounds>0</Pounds><Ounces>5</Ounces><Container
 
/><Size>REGULAR</Size><Machinable>FALSE</Machinable>
   </Package></RateV4Request>
XML Result: 
<?xml
 version="1.0"?>
<RateV4Response><Package
ID="0"><Error><Number>-2147219498</Number><Source>DomesticRatesV4;RateEngineV4.ProcessRequest</Source><Description>Please
 enter a valid ZIP Code for the sender. 
</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error></Package></RateV4Response>
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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on January 23, 2012, 08:19:26 am
Hi Reggie,

Our website has been humming along just fine for many months until this Sunday evening. A customer called saying that she was stuck in the checkout process with a shipping error. I'm using your shipping module USPSv5.2011.02.10 with VM v1.1.8. I immediately thought it might be related to today's USPS update. So I checked this forum and made the Package/Parcel text change to file uspsv5.php that you mentioned earlier today in another post. When I looked at the code I was changing, I didn't think it would make any difference and it didn't.

I continued troubleshooting and discovered that she was the first customer we've ever had to attempt to purchase our downloadable PDF along with some other hard products. Most customers who want the digital download only purchase that and no hard products. The downloadable PDF has 0.000 dimensions and 0.000 weight. When purchased by itself the standard_shipping module handles it fine and it never gets to your USPSv5.2011.02.10 module. The standard_shipping module has one rate "No Shipping Required" for products that weigh between 0.000 pounds and 0.001 pounds. It just never occurred to me to test the digital product in the same cart with a hard product.

I thought maybe this was a scenario for an unbundled product. So I checked the Unbundled Product checkbox in the downloadable PDF's Shipping tab. I then attempted to make a test purchase with both a hard product and the downloadable PDF in the same cart. The shipping still failed. Here's my Debug output:

Please select a Shipping Method!
Debug: Starting Shipping module: standard_shipping
Debug: The Shipping Module 'standard_shipping' couldn't
find a Shipping Rate that matches the current Checkout configuration:
Weight: 2.1
Country: USA
ZIP: 62376

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 601 (Egg Holder) to package #1 *****
Debug: Package::addItem() - Package weight is now: 2.94 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Weight not specified for product 71880115D
Debug: Shipment::populate() - addItem failed for pid 531
Debug: uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.


Can the Shipment::populate() function be safely recoded to test for one or more zero weight products and then let it/them pass through when alone or when accompanied by other products with weights >= 0.000?

Also, during my troubleshooting, I came up with a clunky work-around: I assigned the digital item a weight of 0.0001 pounds (which is between 0.000 and 0.001 pounds) and all three dimensions were set to 0.0001". This allowed me to have both digital and hard products in the same cart and get through the Checkout Shipping step.

However, at the start of Checkout, when buying only the digital product (which is what most of our customers do), its new weight of 0.0001 pound triggers a shipping estimate from USPSv5. After that point, the standard_shipping module lets it pass straight through to the payment step with no actual shipping charges. The problem with this work-around is my customers are going to be confused and probably be stopped by a Priority Mail shipping estimate of $6 or $7 for a digital download. They'll never get past that point to find out there are no actual shipping charges. So I've set the weight and dimensions back to 0.000.

Thank you in advance for your time.

Steve
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 14:37:10 pm
<Error><Number>-2147219498</Number><Source>DomesticRatesV4;RateEngineV4.ProcessRequest</Source><Description>Please
 enter a valid ZIP Code for the sender. 

The USPS API cannot use the 5+4 ZIP.  You'll have to remote the +4.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 14:41:46 pm
However, at the start of Checkout, when buying only the digital product (which is what most of our customers do), its new weight of 0.0001 pound triggers a shipping estimate from USPSv5. After that point, the standard_shipping module lets it pass straight through to the payment step with no actual shipping charges. The problem with this work-around is my customers are going to be confused and probably be stopped by a Priority Mail shipping estimate of $6 or $7 for a digital download. They'll never get past that point to find out there are no actual shipping charges. So I've set the weight and dimensions back to 0.000.

Thank you in advance for your time.

Steve

Steve,
You'll need to implement a "shipping bypass" for digital products.  Zero weight products will always trigger an error in my modules.  Products with weight will always be queried for rates.  I have plans to include a shipping bypass mod in future versions of my modules, but it will be a while...especially with VM2.0 out.

There is an old "shipping bypass" mod by Bob Bloom somewhere on these forums.  If you're able to merge that code with mine, it may work for you.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sleepigrl on January 23, 2012, 16:33:33 pm
Steve - Thanks for the note, you reminded me that I had intended to come back and post what I did to resolve this situation for my site.

Reggie - I contacted Bob Bloom and got the last version of his "shipping bypass" module but was never able to integrate it successfully. Ultimately, I took your suggestion and modified the function populate() in class.Shipment.php to ignore zero-weight items.

Here's what I'm using for the populate() function.  Note that this will always skip zero-weight items without an error message, so it's essential that anything that needs paid shipping have a weight (and that your admins understand the same!). Reggie may have some suggestions about how to do this better, but it seems to be working for me.

Code: [Select]
// populate this shipment using items in the cart
// and obtain rates from USPS
function populate(){

global $vmLogger;

// reset the shipment, in case this is called multiple times
$this->reset();

        $cart = $_SESSION['cart'];
        $cartCount = $cart['idx'];

        // add cart items to the shipment
        for ($looper = 0; $looper < $cartCount; $looper++) {
            $pid = $cart[$looper]["product_id"];
            $quantity = intval($cart[$looper]["quantity"]);
           
            for ($quant_loop=1; $quant_loop <= $quantity; $quant_loop++){
// sleepigrl - Modified the following to check for zero weight items and
// skip adding those to the package.

//            for ($quant_loop=1; $quant_loop <= $quantity; $quant_loop++){
//             if(!$this->addItem($pid)) {
//             uspsv5::debugLog("Shipment::populate() - addItem failed for pid $pid");
//             return false;
//             }

$weight = floatval(ps_shipping_method::get_weight($pid));
$padded_weight = $weight + ($weight * $this->padding);

if($padded_weight > 0){
if(!$this->addItem($pid)) {
uspsv5::debugLog("Shipment::populate() - addItem failed for pid $pid");
return false;
}
}
            }
        }
       
        // obtain rates for each package
        for ($looper = 1; $looper <= $this->packageCount;$looper++){
if (!$this->packages[$looper]->query_rates()){
uspsv5::debugLog("Shipment::populate() - query_rates() failed.");
return false;
}
        }

return true;
}
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 23, 2012, 19:20:12 pm
<Error><Number>-2147219498</Number><Source>DomesticRatesV4;RateEngineV4.ProcessRequest</Source><Description>Please
 enter a valid ZIP Code for the sender. 

The USPS API cannot use the 5+4 ZIP.  You'll have to remote the +4.

I saw that too.. But the thing is, I only entered a 5 digit zip code.. The USPS API is what brought in the +4 digits. Is it possible they've added this into their API and your code won't work, based on the old way of just 5 digits?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 19:30:52 pm
I saw that too.. But the thing is, I only entered a 5 digit zip code.. The USPS API is what brought in the +4 digits. Is it possible they've added this into their API and your code won't work, based on the old way of just 5 digits?


This is not true.  The USPS API is NOT adding the +4 to the request zip, it is there to begin with.
Quote
Debug: Package::query_rates() - Querying for Source: US/85301-3445 , Destination: US/85301, Weight: 0.255, Value: 5

The module reads the source ZIP from the virtuemart configuration, hence the 85301-3445.  Is this a drop-ship item? Check your manufacturer address in the manu config section.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 23, 2012, 20:00:59 pm
I saw that too.. But the thing is, I only entered a 5 digit zip code.. The USPS API is what brought in the +4 digits. Is it possible they've added this into their API and your code won't work, based on the old way of just 5 digits?


This is not true.  The USPS API is NOT adding the +4 to the request zip, it is there to begin with.
Quote
Debug: Package::query_rates() - Querying for Source: US/85301-3445 , Destination: US/85301, Weight: 0.255, Value: 5

The module reads the source ZIP from the virtuemart configuration, hence the 85301-3445.  Is this a drop-ship item? Check your manufacturer address in the manu config section.

Reggie

I apologize, I didn't realize it would pull that info from the store address.. However, it's still not working. I ran the DEBUG again and it's coming up with something totally different now.

I also noticed this in the back end... Not sure if it's relevant.

BACK
Debug: uspsv5::__construct() no user information returned from database where $_REQUEST["ship_to_info_id"]==
Debug: uspsv5::__construct() - Using first BT address found.

FRONT
Debug: Starting Shipping module: uspsv5
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 2201 ("Cold In The Guestway" CD) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.255
Debug: Package::query_rates() - Querying for Source: US/85301 , Destination: US/85301, Weight: 0.255, Value: 9.99
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.
XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="xxxxxxxx" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>85301</ZipOrigination><ZipDestination>85301</ZipDestination><Pounds>0</Pounds><Ounces>5</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable> </Package>

</RateV4Request>
XML Result:
<?xml version="1.0"?> <RateV4Response><Package ID="0"><ZipOrigination>85301</ZipOrigination><ZipDestination>85301</ZipDestination><Pounds>0</Pounds><Ounces>5</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="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>25.45</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="57"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes</MailService><Rate>52.45</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="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>31.45</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="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>31.45</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>2.29</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>

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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 20:42:10 pm
Be sure that you've checked several basic options to give the user.   Are you sure that you've saved the config several times for the new names to take effect? Is it really turned on in your uspsv5.cfg.php? 

I've updated my own local test copy of the module and see no issues, so far.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 23, 2012, 22:01:02 pm
Be sure that you've checked several basic options to give the user.   Are you sure that you've saved the config several times for the new names to take effect? Is it really turned on in your uspsv5.cfg.php? 

I've updated my own local test copy of the module and see no issues, so far.

Reggie

I have First Class, Media Mail, Parcel, Priority and First Class/Priority International. Nothing.

The new PARCEL vs. PACKAGE definitely took effect. I can see it in the config of your software.

Could this have anything to do with the fact that I'm using VM 1.1.2?

Or this "Debug: uspsv5::__construct() no user information returned from database where $_REQUEST["ship_to_info_id"]==" ??
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 22:06:22 pm
What version of the module are you using?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 23, 2012, 22:13:38 pm
What version of the module are you using?

5.2011.02.09-BASIC
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 22:59:38 pm
Your VM version should not be an issue.  The back-end debug stuff you posted is a non-issue as well.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 23, 2012, 23:06:48 pm
Your VM version should not be an issue.  The back-end debug stuff you posted is a non-issue as well.


Man.. That's great news, but also so frustrating. Haha. I really wish I could figure out what's going on.. I've been staring at this for hours trying to get to the bottom of it. I have a lot of orders coming in right now and have to rely on manually entered rates.. that's never totally accurate. So is their API 3 totally dead now? Meaning the version before yours is now totally dead, correct?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 23, 2012, 23:16:24 pm
v3 is being/is phased out, correct.

I just tested vm112 with my USPSv5-BASIC module and had no issues.  I even used the same weights and source/destination as you.  Post your uspsv5.cfg.php here, be sure to remove your credentials.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 24, 2012, 00:44:08 am
v3 is being/is phased out, correct.

I just tested vm112 with my USPSv5-BASIC module and had no issues.  I even used the same weights and source/destination as you.  Post your uspsv5.cfg.php here, be sure to remove your credentials.


<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

define ('USPS_SHOW_DEBUG', '');
define ('USPS_USERNAME', 'XXXXXXXX');
define ('USPS_SERVER', 'Production.ShippingAPIs.com');
define ('USPS_PATH', '/ShippingAPI.dll');
define ('USPS_PROXYSERVER', '');
define ('USPS_PACKAGESIZE', 'REGULAR');
define ('USPS_TAX_CLASS', '0');
define ('USPS_HANDLINGFEE', '.50');
define ('USPS_PADDING', '2%');
define ('USPS_INTLHANDLINGFEE', '4.50');
define ('USPS_MACHINABLE', '0');
define ('USPS_SHOW_DELIVERY_QUOTE', '1');
define ('USPS_REPORTERRORS', '0');
define ('USPS_STANDARDSHIPPING', '1');
define ('USPS_PREFIX', 'USPS');
define ('USPS_SHIP0', '0');
define ('USPS_SHIP1', '0');
define ('USPS_SHIP2', '0');
define ('USPS_SHIP3', '0');
define ('USPS_SHIP4', '0');
define ('USPS_SHIP5', '0');
define ('USPS_SHIP6', '0');
define ('USPS_SHIP7', '0');
define ('USPS_SHIP8', '0');
define ('USPS_SHIP9', '1');
define ('USPS_SHIP10', '0');
define ('USPS_SHIP11', '0');
define ('USPS_SHIP12', '0');
define ('USPS_SHIP13', '0');
define ('USPS_SHIP14', '0');
define ('USPS_SHIP15', '0');
define ('USPS_SHIP16', '0');
define ('USPS_SHIP17', '0');
define ('USPS_SHIP18', '0');
define ('USPS_SHIP19', '0');
define ('USPS_SHIP20', '0');
define ('USPS_SHIP21', '0');
define ('USPS_SHIP22', '0');
define ('USPS_SHIP23', '0');
define ('USPS_SHIP0_UPCHARGE', '');
define ('USPS_SHIP1_UPCHARGE', '');
define ('USPS_SHIP2_UPCHARGE', '');
define ('USPS_SHIP3_UPCHARGE', '');
define ('USPS_SHIP4_UPCHARGE', '');
define ('USPS_SHIP5_UPCHARGE', '');
define ('USPS_SHIP6_UPCHARGE', '');
define ('USPS_SHIP7_UPCHARGE', '');
define ('USPS_SHIP8_UPCHARGE', '');
define ('USPS_SHIP9_UPCHARGE', '');
define ('USPS_SHIP10_UPCHARGE', '');
define ('USPS_SHIP11_UPCHARGE', '');
define ('USPS_SHIP12_UPCHARGE', '');
define ('USPS_SHIP13_UPCHARGE', '');
define ('USPS_SHIP14_UPCHARGE', '');
define ('USPS_SHIP15_UPCHARGE', '');
define ('USPS_SHIP16_UPCHARGE', '');
define ('USPS_SHIP17_UPCHARGE', '');
define ('USPS_SHIP18_UPCHARGE', '');
define ('USPS_SHIP19_UPCHARGE', '');
define ('USPS_SHIP20_UPCHARGE', '');
define ('USPS_SHIP21_UPCHARGE', '');
define ('USPS_SHIP22_UPCHARGE', '');
define ('USPS_SHIP23_UPCHARGE', '');
define ('USPS_SHIP0_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP1_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP2_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP3_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP4_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP5_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP6_COMMIT', '1 - 3 Days');
define ('USPS_SHIP7_COMMIT', '1 - 3 Days');
define ('USPS_SHIP8_COMMIT', '1 - 3 Days');
define ('USPS_SHIP9_COMMIT', '1 - 3 Days');
define ('USPS_SHIP10_COMMIT', '1 - 3 Days');
define ('USPS_SHIP11_COMMIT', '1 - 3 Days');
define ('USPS_SHIP12_COMMIT', '2 - 9 Days');
define ('USPS_SHIP13_COMMIT', '2 - 9 Days');
define ('USPS_SHIP14_COMMIT', '2 - 9 Days');
define ('USPS_SHIP15_COMMIT', '2 - 9 Days');
define ('USPS_SHIP16_COMMIT', '2 - 9 Days');
define ('USPS_SHIP17_COMMIT', '');
define ('USPS_SHIP18_COMMIT', '');
define ('USPS_SHIP19_COMMIT', '');
define ('USPS_SHIP20_COMMIT', '');
define ('USPS_SHIP21_COMMIT', '');
define ('USPS_SHIP22_COMMIT', '');
define ('USPS_SHIP23_COMMIT', '');
define ('USPS_INTL0', '0');
define ('USPS_INTL1', '0');
define ('USPS_INTL2', '0');
define ('USPS_INTL3', '0');
define ('USPS_INTL4', '0');
define ('USPS_INTL5', '0');
define ('USPS_INTL6', '0');
define ('USPS_INTL7', '1');
define ('USPS_INTL8', '0');
define ('USPS_INTL9', '0');
define ('USPS_INTL10', '0');
define ('USPS_INTL11', '0');
define ('USPS_INTL12', '0');
define ('USPS_INTL13', '0');
define ('USPS_INTL14', '0');
define ('USPS_INTL15', '0');
define ('USPS_INTL16', '0');
define ('USPS_INTL17', '0');
define ('USPS_INTL18', '0');
define ('USPS_INTL19', '1');
define ('USPS_INTL20', '0');
define ('USPS_INTL0_UPCHARGE', '');
define ('USPS_INTL1_UPCHARGE', '');
define ('USPS_INTL2_UPCHARGE', '');
define ('USPS_INTL3_UPCHARGE', '');
define ('USPS_INTL4_UPCHARGE', '');
define ('USPS_INTL5_UPCHARGE', '');
define ('USPS_INTL6_UPCHARGE', '');
define ('USPS_INTL7_UPCHARGE', '');
define ('USPS_INTL8_UPCHARGE', '');
define ('USPS_INTL9_UPCHARGE', '');
define ('USPS_INTL10_UPCHARGE', '');
define ('USPS_INTL11_UPCHARGE', '');
define ('USPS_INTL12_UPCHARGE', '');
define ('USPS_INTL13_UPCHARGE', '');
define ('USPS_INTL14_UPCHARGE', '');
define ('USPS_INTL15_UPCHARGE', '');
define ('USPS_INTL16_UPCHARGE', '');
define ('USPS_INTL17_UPCHARGE', '');
define ('USPS_INTL18_UPCHARGE', '');
define ('USPS_INTL19_UPCHARGE', '');
define ('USPS_INTL20_UPCHARGE', '');
define ('USPS_SHIP0_TEXT', 'Express Mail<sup>&amp;reg;</sup> Hold For Pickup');
define ('USPS_SHIP1_TEXT', 'Express Mail<sup>&amp;reg;</sup>');
define ('USPS_SHIP2_TEXT', 'Express Mail<sup>&amp;reg;</sup> Sunday/Holiday Delivery');
define ('USPS_SHIP3_TEXT', 'Express Mail<sup>&amp;reg;</sup> Flat Rate Envelope');
define ('USPS_SHIP4_TEXT', 'Express Mail<sup>&amp;reg;</sup> Flat Rate Envelope Hold For Pickup');
define ('USPS_SHIP5_TEXT', 'Express Mail<sup>&amp;reg;</sup> Sunday/Holiday Delivery Flat Rate Envelope');
define ('USPS_SHIP6_TEXT', 'Express Mail<sup>&amp;reg;</sup> Legal Flat Rate Envelope');
define ('USPS_SHIP7_TEXT', 'Express Mail<sup>&amp;reg;</sup> Legal Flat Rate Envelope Hold For Pickup');
define ('USPS_SHIP8_TEXT', 'Express Mail<sup>&amp;reg;</sup> Sunday/Holiday Delivery Legal Flat Rate Envelope');
define ('USPS_SHIP9_TEXT', 'Priority Mail<sup>&amp;reg;</sup>');
define ('USPS_SHIP10_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Large Flat Rate Box');
define ('USPS_SHIP11_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Medium Flat Rate Box');
define ('USPS_SHIP12_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Small Flat Rate Box');
define ('USPS_SHIP13_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Flat Rate Envelope');
define ('USPS_SHIP14_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Legal Flat Rate Envelope');
define ('USPS_SHIP15_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Padded Flat Rate Envelope');
define ('USPS_SHIP16_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Gift Card Flat Rate Envelop');
define ('USPS_SHIP17_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Small Flate Rate Envelope');
define ('USPS_SHIP18_TEXT', 'Priority Mail<sup>&amp;reg;</sup> Window Flat Rate Envelope');
define ('USPS_SHIP19_TEXT', 'First-Class Mail<sup>&amp;reg;</sup> Parcel');
define ('USPS_SHIP20_TEXT', 'First-Class Mail<sup>&amp;reg;</sup> Large Envelope');
define ('USPS_SHIP21_TEXT', 'Parcel Post<sup>&amp;reg;</sup>');
define ('USPS_SHIP22_TEXT', 'Media Mail<sup>&amp;reg;</sup>');
define ('USPS_SHIP23_TEXT', 'Library Mail<sup>&amp;reg;</sup>');
define ('USPS_INTL0_TEXT', 'Global Express Guaranteed<sup>&amp;reg;</sup> (GXG)**');
define ('USPS_INTL1_TEXT', 'Global Express Guaranteed<sup>&amp;reg;</sup> Non-Document Rectangular');
define ('USPS_INTL2_TEXT', 'Global Express Guaranteed<sup>&amp;reg;</sup> Non-Document Non-Rectangular');
define ('USPS_INTL3_TEXT', 'USPS GXG<sup>&amp;trade;</sup> Envelopes**');
define ('USPS_INTL4_TEXT', 'Express Mail<sup>&amp;reg;</sup> International');
define ('USPS_INTL5_TEXT', 'Express Mail<sup>&amp;reg;</sup> International Flat Rate Envelope');
define ('USPS_INTL6_TEXT', 'Express Mail<sup>&amp;reg;</sup> International Legal Flat Rate Envelope');
define ('USPS_INTL7_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International');
define ('USPS_INTL8_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Large Flat Rate Box');
define ('USPS_INTL9_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Medium Flat Rate Box');
define ('USPS_INTL10_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Small Flat Rate Box**');
define ('USPS_INTL11_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International DVD Flat Rate Box**');
define ('USPS_INTL12_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Large Video Flat Rate Box**');
define ('USPS_INTL13_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Flat Rate Envelope**');
define ('USPS_INTL14_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Legal Flat Rate Envelope**');
define ('USPS_INTL15_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Padded Flat Rate Envelope**');
define ('USPS_INTL16_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Gift Card Flat Rate Envelope**');
define ('USPS_INTL17_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Small Flat Rate Envelope**');
define ('USPS_INTL18_TEXT', 'Priority Mail<sup>&amp;reg;</sup> International Window Flat Rate Envelope**');
define ('USPS_INTL19_TEXT', 'First-Class Mail<sup>&amp;reg;</sup> International Parcel**');
define ('USPS_INTL20_TEXT', 'First-Class Mail<sup>&amp;reg;</sup> International Large Envelope**');
?>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 24, 2012, 01:11:32 am
v3 is being/is phased out, correct.

I just tested vm112 with my USPSv5-BASIC module and had no issues.  I even used the same weights and source/destination as you.  Post your uspsv5.cfg.php here, be sure to remove your credentials.


I just uninstalled and installed it about 100 times, in a bunch of different combinations and got it to work on one site.. Still working on my second. CROSSING MY FINGERS!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: sammeans on January 24, 2012, 01:19:33 am
v3 is being/is phased out, correct.

I just tested vm112 with my USPSv5-BASIC module and had no issues.  I even used the same weights and source/destination as you.  Post your uspsv5.cfg.php here, be sure to remove your credentials.


I just uninstalled and installed it about 100 times, in a bunch of different combinations and got it to work on one site.. Still working on my second. CROSSING MY FINGERS!

IT WORKS!!! THANK YOU SO MUCH FOR ALL YOUR HELP!!!

Can I send a PayPal donation to your email address [at]lowmips.com?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 24, 2012, 01:48:59 am
Sure :)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: snelson on January 24, 2012, 02:41:33 am
Steve - Thanks for the note, you reminded me that I had intended to come back and post what I did to resolve this situation for my site.

Reggie - I contacted Bob Bloom and got the last version of his "shipping bypass" module but was never able to integrate it successfully. Ultimately, I took your suggestion and modified the function populate() in class.Shipment.php to ignore zero-weight items.

Here's what I'm using for the populate() function.  Note that this will always skip zero-weight items without an error message, so it's essential that anything that needs paid shipping have a weight (and that your admins understand the same!). Reggie may have some suggestions about how to do this better, but it seems to be working for me.

sleepigrl,
Thank you so much for the modified populate() function. It worked perfectly and I tested it on carts with one zero weight product, multiple zero weight products, greater than zero weight products, and both zero and greater than zero weight products. All processed correctly through Checkout.
Steve
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: doozyj on January 25, 2012, 05:47:50 am
I tried the newest Basic version and still no First Class Mail. Please help?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: doozyj on January 25, 2012, 05:55:57 am
<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

define ('USPS_SHOW_DEBUG', '');
define ('USPS_USERNAME', 'XXXXXXXXXXXX');
define ('USPS_SERVER', 'Production.ShippingAPIs.com');
define ('USPS_PATH', '/ShippingAPI.dll');
define ('USPS_PROXYSERVER', '');
define ('USPS_PACKAGESIZE', 'REGULAR');
define ('USPS_TAX_CLASS', '0');
define ('USPS_HANDLINGFEE', '2.00');
define ('USPS_PADDING', '10%');
define ('USPS_INTLHANDLINGFEE', '2.00');
define ('USPS_MACHINABLE', '0');
define ('USPS_SHOW_DELIVERY_QUOTE', '0');
define ('USPS_REPORTERRORS', '0');
define ('USPS_STANDARDSHIPPING', '0');
define ('USPS_PREFIX', 'USPS');
define ('USPS_SHIP0', '0');
define ('USPS_SHIP1', '0');
define ('USPS_SHIP2', '0');
define ('USPS_SHIP3', '0');
define ('USPS_SHIP4', '0');
define ('USPS_SHIP5', '0');
define ('USPS_SHIP6', '0');
define ('USPS_SHIP7', '0');
define ('USPS_SHIP8', '0');
define ('USPS_SHIP9', '1');
define ('USPS_SHIP10', '0');
define ('USPS_SHIP11', '0');
define ('USPS_SHIP12', '0');
define ('USPS_SHIP13', '0');
define ('USPS_SHIP14', '0');
define ('USPS_SHIP15', '0');
define ('USPS_SHIP16', '0');
define ('USPS_SHIP17', '0');
define ('USPS_SHIP18', '0');
define ('USPS_SHIP19', '1');
define ('USPS_SHIP20', '0');
define ('USPS_SHIP21', '1');
define ('USPS_SHIP22', '0');
define ('USPS_SHIP23', '0');
define ('USPS_SHIP0_UPCHARGE', '');
define ('USPS_SHIP1_UPCHARGE', '');
define ('USPS_SHIP2_UPCHARGE', '');
define ('USPS_SHIP3_UPCHARGE', '');
define ('USPS_SHIP4_UPCHARGE', '');
define ('USPS_SHIP5_UPCHARGE', '');
define ('USPS_SHIP6_UPCHARGE', '');
define ('USPS_SHIP7_UPCHARGE', '');
define ('USPS_SHIP8_UPCHARGE', '');
define ('USPS_SHIP9_UPCHARGE', '');
define ('USPS_SHIP10_UPCHARGE', '');
define ('USPS_SHIP11_UPCHARGE', '');
define ('USPS_SHIP12_UPCHARGE', '');
define ('USPS_SHIP13_UPCHARGE', '');
define ('USPS_SHIP14_UPCHARGE', '');
define ('USPS_SHIP15_UPCHARGE', '');
define ('USPS_SHIP16_UPCHARGE', '');
define ('USPS_SHIP17_UPCHARGE', '');
define ('USPS_SHIP18_UPCHARGE', '');
define ('USPS_SHIP19_UPCHARGE', '');
define ('USPS_SHIP20_UPCHARGE', '');
define ('USPS_SHIP21_UPCHARGE', '');
define ('USPS_SHIP22_UPCHARGE', '');
define ('USPS_SHIP23_UPCHARGE', '');
define ('USPS_SHIP0_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP1_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP2_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP3_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP4_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP5_COMMIT', 'Overnight, most locations');
define ('USPS_SHIP6_COMMIT', '1 - 3 Days');
define ('USPS_SHIP7_COMMIT', '1 - 3 Days');
define ('USPS_SHIP8_COMMIT', '1 - 3 Days');
define ('USPS_SHIP9_COMMIT', '1 - 3 Days');
define ('USPS_SHIP10_COMMIT', '1 - 3 Days');
define ('USPS_SHIP11_COMMIT', '1 - 3 Days');
define ('USPS_SHIP12_COMMIT', '2 - 9 Days');
define ('USPS_SHIP13_COMMIT', '2 - 9 Days');
define ('USPS_SHIP14_COMMIT', '2 - 9 Days');
define ('USPS_SHIP15_COMMIT', '2 - 9 Days');
define ('USPS_SHIP16_COMMIT', '2 - 9 Days');
define ('USPS_SHIP17_COMMIT', '');
define ('USPS_SHIP18_COMMIT', '');
define ('USPS_SHIP19_COMMIT', '');
define ('USPS_SHIP20_COMMIT', '');
define ('USPS_SHIP21_COMMIT', '');
define ('USPS_SHIP22_COMMIT', '');
define ('USPS_SHIP23_COMMIT', '');
define ('USPS_INTL0', '0');
define ('USPS_INTL1', '0');
define ('USPS_INTL2', '0');
define ('USPS_INTL3', '0');
define ('USPS_INTL4', '0');
define ('USPS_INTL5', '0');
define ('USPS_INTL6', '0');
define ('USPS_INTL7', '1');
define ('USPS_INTL8', '0');
define ('USPS_INTL9', '0');
define ('USPS_INTL10', '0');
define ('USPS_INTL11', '0');
define ('USPS_INTL12', '0');
define ('USPS_INTL13', '0');
define ('USPS_INTL14', '0');
define ('USPS_INTL15', '0');
define ('USPS_INTL16', '0');
define ('USPS_INTL17', '0');
define ('USPS_INTL18', '0');
define ('USPS_INTL19', '1');
define ('USPS_INTL20', '0');
define ('USPS_INTL0_UPCHARGE', '');
define ('USPS_INTL1_UPCHARGE', '');
define ('USPS_INTL2_UPCHARGE', '');
define ('USPS_INTL3_UPCHARGE', '');
define ('USPS_INTL4_UPCHARGE', '');
define ('USPS_INTL5_UPCHARGE', '');
define ('USPS_INTL6_UPCHARGE', '');
define ('USPS_INTL7_UPCHARGE', '');
define ('USPS_INTL8_UPCHARGE', '');
define ('USPS_INTL9_UPCHARGE', '');
define ('USPS_INTL10_UPCHARGE', '');
define ('USPS_INTL11_UPCHARGE', '');
define ('USPS_INTL12_UPCHARGE', '');
define ('USPS_INTL13_UPCHARGE', '');
define ('USPS_INTL14_UPCHARGE', '');
define ('USPS_INTL15_UPCHARGE', '');
define ('USPS_INTL16_UPCHARGE', '');
define ('USPS_INTL17_UPCHARGE', '');
define ('USPS_INTL18_UPCHARGE', '');
define ('USPS_INTL19_UPCHARGE', '');
define ('USPS_INTL20_UPCHARGE', '');
define ('USPS_SHIP0_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup');
define ('USPS_SHIP1_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP2_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery');
define ('USPS_SHIP3_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope');
define ('USPS_SHIP4_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup');
define ('USPS_SHIP5_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope');
define ('USPS_SHIP6_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope');
define ('USPS_SHIP7_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup');
define ('USPS_SHIP8_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope');
define ('USPS_SHIP9_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP10_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box');
define ('USPS_SHIP11_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box');
define ('USPS_SHIP12_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box');
define ('USPS_SHIP13_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope');
define ('USPS_SHIP14_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope');
define ('USPS_SHIP15_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope');
define ('USPS_SHIP16_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelop');
define ('USPS_SHIP17_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flate Rate Envelope');
define ('USPS_SHIP18_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope');
define ('USPS_SHIP19_TEXT', 'First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Package');
define ('USPS_SHIP20_TEXT', 'First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Envelope');
define ('USPS_SHIP21_TEXT', 'Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP22_TEXT', 'Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP23_TEXT', 'Library Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_INTL0_TEXT', 'Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; (GXG)**');
define ('USPS_INTL1_TEXT', 'Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document Rectangular');
define ('USPS_INTL2_TEXT', 'Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document Non-Rectangular');
define ('USPS_INTL3_TEXT', 'USPS GXG&lt;sup&gt;&amp;trade;&lt;/sup&gt; Envelopes**');
define ('USPS_INTL4_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International');
define ('USPS_INTL5_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Envelope');
define ('USPS_INTL6_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate Envelope');
define ('USPS_INTL7_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International');
define ('USPS_INTL8_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Flat Rate Box');
define ('USPS_INTL9_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate Box');
define ('USPS_INTL10_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Box**');
define ('USPS_INTL11_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International DVD Flat Rate Box**');
define ('USPS_INTL12_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Video Flat Rate Box**');
define ('USPS_INTL13_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Envelope**');
define ('USPS_INTL14_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate Envelope**');
define ('USPS_INTL15_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Padded Flat Rate Envelope**');
define ('USPS_INTL16_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Gift Card Flat Rate Envelope**');
define ('USPS_INTL17_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Envelope**');
define ('USPS_INTL18_TEXT', 'Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Window Flat Rate Envelope**');
define ('USPS_INTL19_TEXT', 'First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Package**');
define ('USPS_INTL20_TEXT', 'First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Envelope**');
?>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: doozyj on January 25, 2012, 05:57:28 am
I also changed the text Package to Parcel for
First Class Mail and First Class International
in the uspsv5.php file As well. I will post the debug next.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: doozyj on January 25, 2012, 06:01:16 am
<?xml version="1.0"?>
<RateV4Response><Package ID="0"><ZipOrigination>90501</ZipOrigination><ZipDestination>90501</ZipDestination><Pounds>0</Pounds><Ounces>5</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="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>25.45</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="57"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes</MailService><Rate>52.45</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="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>31.45</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="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>31.45</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>2.29</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>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on January 25, 2012, 14:32:11 pm
I've updated the modules attached to this thread, in the first post.   To update your USPS, please download the new files, extract the uspsv5.php file, and view the configuration.  Check the new First-Class Parcel option, and be sure to save the config several times (remember some versions have a bug where you need to go out of the config and come back in a few times).

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: doozyj on January 25, 2012, 21:45:45 pm
I've updated the modules attached to this thread, in the first post.   To update your USPS, please download the new files, extract the uspsv5.php file, and view the configuration.  Check the new First-Class Parcel option, and be sure to save the config several times (remember some versions have a bug where you need to go out of the config and come back in a few times).

Reggie

Thanks for the reply and now it mysteriously works now. Never fails. :)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: James Schwartz on February 02, 2012, 00:03:25 am
Reggie,

I just emailed this to you, but in case others run into this problem, I'm repeating it here.

I've installed USPSv5 (5.2011.03.25) in VirtueMart 1.1.9 and now have a problem: when a customer places in his cart a shippable product AND a downloadable product, the shipping page shows UPS (1.0) rates but for USPS we're seeing "Notice: We are unable to ship via USPS at this time. System Error."

You can see this at http://sewingworkshop.com by placing an item in your cart and also placing an item from the Tutorials and Downloads category:
http://sewingworkshop.com/index.php?page=shop.browse&category_id=57&redirected=1&option=com_virtuemart&Itemid=54

Then advance to the shipping page.

I'm happy to pay a donation for your help with this problem.

Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 02, 2012, 02:52:51 am
James,
You're seeing an error because my module bombs out if the product weight is zero (virtual items).  The original ups module does not do this because it bases its rates on total cart weight. 

You may bypass the USPSv5 behavior if you wish, at your own risk.  I cannot test this fix at the moment, but you can try this:

Go to /administrator/components/com_virtuemart/classes/shipping/uspsv5/class.Shipment.php
On lines 61-65 change this:
Code: [Select]
// check for zero weight items
        if ($padded_weight <= 0) {
            $this->error_message .= "Could not process item \"$product_name\" as it has zero weight.";
            return false;
        }

To this:
Code: [Select]
// check for zero weight items
        if ($padded_weight <= 0) {
            //$this->error_message .= "Could not process item \"$product_name\" as it has zero weight.";
            //return false;
            return true;
        }

This removes the zero weight restriction, and effectively skips this product from consideration.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ryno106 on February 02, 2012, 05:36:20 am
I'm running VM 1.1.9, and we just recently installed your module to fix the USPS API update. Domestic first class shipping is working again, but now the International options aren't working. None of my international customers can select first class international right now--just priority.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 02, 2012, 15:18:24 pm
Post your configuration file (remove your credentials) and your debug output from an international checkout.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: James Schwartz on February 02, 2012, 18:16:59 pm
James,
You're seeing an error because my module bombs out if the product weight is zero (virtual items).  The original ups module does not do this because it bases its rates on total cart weight. 

You may bypass the USPSv5 behavior if you wish, at your own risk.  I cannot test this fix at the moment, but you can try this:

Go to /administrator/components/com_virtuemart/classes/shipping/uspsv5/class.Shipment.php
On lines 61-65 change this:
Code: [Select]
// check for zero weight items
        if ($padded_weight <= 0) {
            $this->error_message .= "Could not process item \"$product_name\" as it has zero weight.";
            return false;
        }

To this:
Code: [Select]
// check for zero weight items
        if ($padded_weight <= 0) {
            //$this->error_message .= "Could not process item \"$product_name\" as it has zero weight.";
            //return false;
            return true;
        }

This removes the zero weight restriction, and effectively skips this product from consideration.

Reggie

Reggie, your hack seems to solve the problem! Is there any downside we should be alert for?

I've sent you a donation.

Thanks very much for your prompt attention,

Jim
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 02, 2012, 18:19:16 pm
If only zero-weight products are in the cart, and the module attempts to find rates, it will result in an error on the front end.

Reggie

ps thanks =)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: James Schwartz on February 02, 2012, 21:27:03 pm
If only zero-weight products are in the cart, and the module attempts to find rates, it will result in an error on the front end.

Reggie

ps thanks =)

I've tested the site with zero-weight products only, and it appropriately skips shipping and goes to payment. Maybe the UPS module is making that happen, but somehow I'm not getting an error on the frontend. :D
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: blanderson on February 06, 2012, 04:54:12 am
I've just installed the 'Basic' version of your shipping module and I'm not getting a First Class Mail Parcel rate returned from USPS, but instead I'm getting "Notice: We are unable to ship via USPS at this time. System Error."  Other services such as Priority are returning rates just fine.   I noticed in the USPS Rate Calculation API documentation that a <FirstClassMailType> is required if the Service is FIRST CLASS.  It appears that the <FirstClassMailType> value is not returned in the xml posted to USPS for domestic rates in uspsv5.php.   Could that be the cause of First Class rates not being returned?

update:
In debug mode, I'm not seeing any error messages in the xml results but the First Class rate is not returned.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 06, 2012, 17:21:54 pm
In the API, the "FirstClassMailType" is only required when specifying a certain subset of service levels.  Since my module ask for ALL services (service=ALL), this is not required.  Post your request/reply XML here.  Be sure to remove your credentials from the request.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Morganelia on February 07, 2012, 05:37:25 am
Hi!
I had problems with shipping options on January 1st I install USPSV5.2011-02-09-BASIC and the problem was solved, but now I have the same problem again is that only there are two shipping options (the most expensive) . I have not changed anything in the configuration what could be the problem?. I would appreciate the help you can give me.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 07, 2012, 14:10:20 pm
Put your shop into debug mode. Post your request/reply XML here.  Be sure to remove your credentials from the request.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Morganelia on February 07, 2012, 14:58:29 pm
Hello
Thanks for responding. I was reviewing and comparing the file uspsv5.cfg.php I have in my server, with the original install and there are several differences are the following:

1. I think this line should not be in my file:
Code: [Select]
define ('USPS_SHIP2_TEXT', 'Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery');     
and its presence makes the code sequence in the file, this modified

2. Another difference in my file says:
Code: [Select]
define ('USPS_SHIP19_TEXT', 'First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Parcel'); and should say
Code: [Select]
define ('USPS_SHIP18_TEXT', 'First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Package');
I know that the solution would be to reinstall again, but my question is, why change the file without intervention?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 07, 2012, 15:00:20 pm
USPS changed the service name from "Package" to "Parcel".  It should absolutely read Parcel.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: blanderson on February 07, 2012, 19:10:44 pm
Hi and thank you for your help!  Here is the information you requested:

Post:
Code: [Select]
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="my_user_id" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>a_zip_code</ZipOrigination><ZipDestination>a_zip_code</ZipDestination><Pounds>3</Pounds><Ounces>2</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable> </Package></RateV4Request>
Result:
Code: [Select]
<?xml version="1.0"?>
<RateV4Response><Package ID="0"><ZipOrigination>a_zip_code</ZipOrigination><ZipDestination>a_zip_code</ZipDestination><Pounds>3</Pounds><Ounces>2</Ounces><Size>REGULAR</Size><Machinable>FALSE</Machinable><Zone>2</Zone><Postage CLASSID="3"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>19.85</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>19.85</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>32.35</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="57"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes</MailService><Rate>52.45</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="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>31.45</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="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>31.45</Rate></Postage><Postage CLASSID="1"><MailService>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>6.85</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="4"><MailService>Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>6.17</Rate></Postage><Postage CLASSID="6"><MailService>Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;</MailService><Rate>3.73</Rate></Postage><Postage CLASSID="7"><MailService>Library Mail</MailService><Rate>3.55</Rate></Postage></Package></RateV4Response>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 07, 2012, 20:12:58 pm
blanderson,
the API is not returning First-Class rates.  I have to assume it is due to your source/destination zip.  You'll need to look your source/destination up in the USPS guide and see if First-Class is available between the two.  Otherwise, you'll need to contact USPS for more help.  My module does not see any matching rates for you, therefore it shows the user a generic error.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: blanderson on February 09, 2012, 22:23:43 pm
lowmips,

Thank you for your help.  I've contact USPS tech support and they've said there is no reason on their end that First Class would not be returned.  (shipments are coming from the Atlanta, GA area).  They said it has to be the way the First Class rate is being requested by the shipping module, since all the other rates are being returned just fine. 

Any other ideas?  Thanks!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 09, 2012, 22:38:49 pm
Sorry, I don't know what to tell you.  Clearly, First-Class rates (CLASSID="0") are not being returned in the results.  There's really nothing I can do about this on my end (the shipping module).  Try shipping to/from somewhere else, and see if the rates show up.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: blanderson on February 09, 2012, 22:45:40 pm
lowmips,

I just tested my xml string with <Service>FIRST CLASS</Service>  and  <FirstClassMailType>PARCEL</FirstClassMailType> and the xml error returned said that First Class Mail has to be 13 ounces or less.  So then I changed <Service> back to All and changed the weight to be 13 ounces and the First Class rate was returned.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: blanderson on February 10, 2012, 00:35:02 am
If only zero-weight products are in the cart, and the module attempts to find rates, it will result in an error on the front end.

Reggie

ps thanks =)

I've tested the site with zero-weight products only, and it appropriately skips shipping and goes to payment. Maybe the UPS module is making that happen, but somehow I'm not getting an error on the frontend. :D

I've also implemented this fix for zero-weight products and its working like a charm!  Then I'm using the Standard Shipping module to offer free shipping for products with zero weight so I'm not getting the error message either.  Thanks!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 11, 2012, 22:48:36 pm
I love your software, and have been using it for a few years.  I have a question.  Do you have any idea why a recent  Canadian shopper (I am based in USA) is not allowed to choose a First-Class Mail® International Package** option when they order?  Did I set something up wrong?

First I turned on debug mode, logged in and used this person’s address for shipping and this is what I got:

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 28 (Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.0255 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 8 (Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.051 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 26 (M Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.363375 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49770 , Destination: CA/N5V 1H3, Weight: 0.363375, Value: 26
Debug: uspsv5::get_rates_array() - Using cached rate for US, 49770, CA, N5V 1H3, 0.363375, 26, 3.3, 3.3, 1.1

The shopper only gets these two choices (not sure why the First-Class Mail® International Package* option is not showing:

 USPS Priority Mail® International ($24.25)  -  6 - 10 business days
 USPS Express Mail® International ($30.25)  -  3 - 5 business days

I am using joomla Version 1.5.25
VirtueMart 1.1.9
USPS Shipping module v5.2011.02.10 (only shipping module offered)

USPS Shipping module v5.2011.02.10 configuration
USPS Shipping APU Username: correct
USPS API Server: Production.ShippingAPIs.com
USPS API Path: /ShippingAPI.dll
Package Size: Regular
Tax class: 0
Proxy server: nothing
Weight padding 2%
Handing fee (domestic) .50
Handling Fee (international) 1.00
Machinable Packages: NO
Show deliver days quote: Yes
Report Errors: NO
Show standard shipping options on error or no USPS results? YES
Service Name: USPS

Domestic Service Options
Shipping Method
Express Mail® Hold For Pickup: N
Express Mail®: Y
Express Mail® Flat Rate Envelope: N
Express Mail® Flat Rate Envelope Hold For Pickup: N
Express Mail® Sunday/Holiday Delivery Flat Rate Envelope: N
Express Mail® Legal Flat Rate Envelope: N
Express Mail® Legal Flat Rate Envelope Hold For Pickup: N
Express Mail® Sunday/Holiday Delivery Legal Flat Rate Envelope: N
Priority Mail®: Y
Priority Mail® Large Flat Rate Box: N
Priority Mail® Medium Flat Rate Box: N
Priority Mail® Small Flat Rate Box: N
Priority Mail® Flat Rate Envelope: N
Priority Mail® Legal Flat Rate Envelope: N
Priority Mail® Padded Flat Rate Envelope: N
Priority Mail® Gift Card Flat Rate Envelope: N
Priority Mail® Small Flate Rate Envelope: N
Priority Mail® Window Flat Rate Envelope: N
First-Class Mail® Package: Y
First-Class Mail® Large Envelope: N
Parcel Post®: Y
Media Mail®: N
Library Mail®: N
International Service Options
Shipping Method

Global Express Guaranteed® (GXG)**: N
Global Express Guaranteed® Non-Document Rectangular: N
Global Express Guaranteed® Non-Document Non-Rectangular: N
USPS GXG™ Envelopes**: N
Express Mail® International: Y
Express Mail® International Flat Rate Envelope: N
Express Mail® International Legal Flat Rate Envelope: N
Priority Mail® International: Y
Priority Mail® International Large Flat Rate Box: N
Priority Mail® International Medium Flat Rate Box: N
Priority Mail® International Small Flat Rate Box**: N
Priority Mail® International DVD Flat Rate Box**: N
Priority Mail® International Large Video Flat Rate Box**: N
Priority Mail® International Flat Rate Envelope**: N
Priority Mail® International Legal Flat Rate Envelope**: N
Priority Mail® International Padded Flat Rate Envelope**: N
Priority Mail® International Gift Card Flat Rate Envelope**: N
Priority Mail® International Small Flat Rate Envelope**: N
Priority Mail® International Window Flat Rate Envelope**: N
First-Class Mail® International Package**: Y
First-Class Mail® International Large Envelope**: N

Do you have any suggestions to fix this?

Should I offer another shipping method for my USA and Canadian customer that is more reliable (in the event USPS api is not working, which seems to happen every now and then).  Like flex or standard shipping?

Do you know any way of adding a phone number underneath Shipping choices (Something that says “If these shipping prices seem a bit high please call us”.  It would be nice whenever someone tries to order and there is an error (like cannot connect to USPS server) I am automatically notified.  Do you know of such a program?

Can you recommend any other extensions that would help me resolve and shopping cart abandonment issues?

Do I have my product dimensions entered correctly to use with your USPS module:

Product dimensions:
I use child products.  I have zerod out everything in product dimensions in the main list, and child products have this:
I did not put a length in because I have a round tin, like a hockey puck.
So under item and dimension
Length: 3.25
Width: 3.25
Height: 1.094
Unit of Measurment: Inches
Weight 4.0
Unite of Measure: ounces
Unite Piece
Units in a Package: 1(not sure what this meant)
Unites in a Box: 1 (not sure what this meant)

Thank you for your consideration.  I will make a donation to you.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2012, 14:44:24 pm
Nathan,
You'll need to log out, then back in to clear the cached rates.  Then post the XML request/reply (remove any credentials).  Then we can see what is being returned.
As for dimensions, you should always have L/W/H defined when declaring dimensions. It looks like you do have all dimensions declared in your example checkout..3.3/3.3/1.1.
I do not know of any solutions for your other questions.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 13, 2012, 17:42:02 pm
Thank you for your response.
Do I have to do anything else to clear the cache other than login / logout?  But what does post XML request/reply (remove and credentials mean?  Do you mean go into safe mode and repost)? 

Please excuse my ignorance.

As for my dimensions.  This is a circular tin, like a hockey puck or a small round far.  How would I enter that for the L/W/H (or does it appear the way I have them is correct?)

Thank you.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2012, 17:59:32 pm
The module does rate caching, meaning it stores info for exact same requests in order to make the checkout process go faster.  The first post showed that the rates were cached, and therefore the xml request/reply was not shown.  Try the same checkout with debug mode on right after logging out and then back in.  You should see much more data in the debug output..... Post that here.

As for dimensions for round objects, approximate a bounding rectangle like a box that would hold the object.  What you have seems OK for that particular product...
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 13, 2012, 19:15:14 pm
Here is what I got:

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 28 (Nojmak Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.0255 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 8 (Ginee Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.051 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 26 (Minagin - Natural Pain Relief Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.363375 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49770 , Destination: CA/N5V 1H3, Weight: 0.363375, Value: 26
Debug: uspsv5::get_rates_array() - Calculating international shipping.

Debug: XML Post:

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=IntlRateV2&XML=<IntlRateV2Request USERID="********" ><Package ID="0"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><ValueOfContents>26</ValueOfContents><Country>Canada</Country><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth></Package>

XML Result:

<?xml version="1.0"?><br />
<IntlRateV2Response><Package ID="0"><Prohibitions>An issue of a publication in which more than 5 percent of its total advertising space is primarily directed to a Canadian market and which indicates:<br />
(a) Specifically where goods or services may be obtained in Canada, or <br />
(b) Specific items or conditions relating to the sale or provision of goods or services in Canada. <br />
All alcoholic beverages including wines, etc.<br />
An issue of a publication that contains an advertisement primarily directed to a Canadian market is a prohibited import if that advertisement does not appear in identical form in all editions of the issue distributed in the country of origin.<br />
Articles so marked as to create the false impression that they were made in Canada, Great Britain or any other British country.<br />
Commercial tags of metal.<br />
Firearms, except as follows: Firearms may be mailed to Canada provided that they meet the requirements in DMM 601.11.1, 601.11.2, 601.11.3, and 601.11.6 and that the importer has the required documentation. Customers must visit http://cbsa-asfc.gc.ca/publications/pub/bsf5044-eng.html prior to mailing for Canadian import requirements.<br />
Gold bullion, gold dust, and nonmanufactured precious metals.<br />
Non-refillable lighters or any other lighter that contains fuel. New lighters with no fuel may be sent.<br />
Oleomargarine and other butter substitutes, including altered or renovated butter.<br />
Perishable infectious biological substances.<br />
Perishable noninfectious biological substances.<br />
Plumage and skins of wild birds.<br />
Prison-made goods being sold or intended for sale by a person or firm.<br />
Radioactive materials.<br />
Replica or inert munitions, as well as other devices that simulate explosive devices or munitions, including replica or inert grenades or other simulated military munitions, whether or not such items are for display purposes.<br />
Reprints of Canadian or British works copyrighted in Canada.<br />
Reproductions of Canadian postage stamps unless printed in publications in black and white only and with a defacing line drawn across each reproduction.<br />
Shipments bearing caution labels indicating the contents are flammable.<br />
Smoke-making devices for motor vehicles and boats.<br />
Used or secondhand hives or bee supplies.</Prohibitions><Restrictions>Coins; banknotes; currency notes; securities payable to bearer; traveler's checks; gold, silver, platinum, manufactured or not; jewelry; and other valuable articles may be sent only in registered items. <br />
Exceptions:<br />
Coins sent to or from collectors or dealers may be mailed in ordinary (uninsured) parcels.<br />
Drugs and medicines must comply with Canadian law.<br />
Eggs for hatching must be packed in new, clean containers and accompanied by a certificate issued by a veterinarian of the U.S. Department of Agriculture, or one issued by a State veterinarian and endorsed by a veterinarian of that Bureau, stating that to the best of his or her knowledge the eggs come from a flock that is free from Newcastle disease, fowl pest, or fowl typhoid. See 135.3 for method of packing.<br />
Meat and meat food products must be accompanied by an export certificate issued by the U.S. Department of Agriculture and labeled in accordance with Canadian regulations. Exception to these requirements are:<br />
1. bona fide sample shipments weighing less than 10 kg; <br />
2. meat products addressed to a government department or agency; <br />
3. meat products intended for personal consumption when they enter Canada in the possession of the importer. <br />
Precious stones, set or not set; all items used as dress ornaments and coming under the term "jewelry" including articles of gold or other precious metal for personal use such as cigarette holders, cases, powder cases, card cases, opera glasses, fountain pens, watches, etc., are permitted in insured parcels provided the articles have value not over $5 U.S. A parcel containing a number of such articles valued at $5 or less may be insured for the total value of the contents up to a maximum of $200.<br />
Veterinary biological products including serums and vaccines must be accompanied by a permit issued by the Veterinary Director General, Ministry of Agriculture of Canada.</Restrictions><Observations>1. Banknotes valued at $100 or more must be put up in a compact package and securely tied with strong twine before wrapping. The wrapper must be linen or other strong, woven material, linen lined paper, or two thicknesses of strong kraft paper. After wrapping, the package must be again securely tied or stitched and sealed at the points of closing. <br />
2. The name of the Canadian province in which the office of destination is located must appear as part of the address. <br />
3. The following must not be accepted for insurance: <br />
Bees, postage stamps (canceled and uncanceled) and albums in which they are mounted, and parcels addressed to CFPOs. <br />
4. Canadian Forces Mail (CFPO) is processed through Canadian military post offices and must be addressed in the following manner: <br />
(a) NUMBER, RANK, NAME UNIT <br />
(b) CFPO (NUMBER) <br />
(c) BELLEVILLE ON K0K 3R0 <br />
(d) CANADA <br />
Maximum weight limits for mail addressed to members of the Canadian Forces based outside of Canada (CFPO) is 22 pounds. Parcels for CFPO addresses may not be insured. Direct sacks of printed matter (M-bags) are not permitted for CFPO addresses.<br />
5. A letter fully prepaid and bearing the same address as that of a parcel may be tied or otherwise securely attached to the outside of the parcel. Stamps to cover postage on the parcel must be affixed to the wrapper of the parcel. Stamps to pay postage on the letter must be affixed to the envelope thereof. <br />
6. Certain types of merchandise must be marked to show country of origin in the manner prescribed by the Canadian customs regulations. <br />
7. Goods valued under 20 Canadian dollars are duty and excise tax exempt. Goods over 20 Canadian dollars will be subject to the applicable duties and excise taxes. Gift shipments received by mail that are valued under 60 Canadian dollars are duty and excise tax exempt. <br />
8. For all casual and commercial items valued under 1,600 Canadian dollars, Canada Post will collect the assessed duties and excise taxes and a handling fee of 5 Canadian dollars from the addressee. For Express Mail International items, the handling fee is 8 Canadian dollars. All commercial mail items over 1,600 Canadian dollars will be held by Canada Customs and Excise until proper invoice and accounting documentation is provided by the addressee. <br />
9. The Canada Customs Invoice can be obtained from stationery, office supply, or printing companies. If mailers are unable to obtain the Canada Customs Invoice locally, they should visit the following Web site: www.canadapost.ca. In addition, commercial invoices are acceptable provided that each invoice has the required information for customs purposes. <br />
10. Information on Canadian customs regulations may be obtained from the Office of International Marketing/223, Bureau of International Commerce, Department of Commerce, Washington, DC 20230, or any field office of that Department. <br />
Obtaining post code information: <br />
11. Information on Canadian post code directories can be obtained from: <br />
(a) NATIONAL PHILATELIC CENTER<br />
CANADA POST CORPORATION <br />
STATION 1 <br />
ANTIGONISH NS B2G 2R8 <br />
Telephone: 1-800-565-4362 <br />
Fax: 1-902-863-6796<br />
(b) To obtain Canadian post codes for specific addresses, call the General Information line at 1-416-979-8822 or access the Canada Post Corporation web site on the Internet at http://www.canadapost.ca. <br />
12. Pursuant to the Canada Customs Act and a need to heighten border security, Canada will deny entry of all postal items (except postcards) that do not bear complete sender and addressee information in roman letters and arabic numerals. </Observations><CustomsForms>First-Class Mail International items and Priority Mail International Flat Rate Envelopes and Small Flat Rate Boxes: <br />
PS Form 2976 (see 123.61)<br />
Priority Mail International parcels:<br />
PS Form 2976-A inside 2976-E (envelope)</CustomsForms><ExpressMail>Country Code:<br />
CA<br />
<br />
Reciprocal Service Name: <br />
There is no reciprocal service. <br />
<br />
Required Customs Form/Endorsement<br />
1. Business papers and commercial documents.<br />
PS Form 2976, Customs - CN 22 and Sender's Declaration.<br />
 <br />
2. Merchandise samples and gift shipments (non-commercial parcels). <br />
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91. <br />
 <br />
3. Merchandise (commercial shipments) and all articles subject to customs duty. <br />
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.<br />
 <br />
<br />
<br />
Notes:<br />
1. Gift shipments (non-commercial parcels) require a sales receipt, invoice or other documentation to support the declared value. <br />
2. Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Express Mail International shipments to Canada. <br />
3. Express Mail shipments may have a street address or a post office box address. A local telephone number for the addressee MUST be provided for shipments addressed to a post office box address. A local telephone number for the addressee should be provided if possible for shipments to a street address. <br />
<br />
Areas Served: All</ExpressMail><AreasServed>Please reference Express Mail for Areas Served.</AreasServed><AdditionalRestrictions>No Additional Restrictions Data found.</AdditionalRestrictions><Service ID="12"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>44.00</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>0.00</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>USPS GXG&lt;sup&gt;&amp;trade;&lt;/sup&gt; Envelopes**</SvcDescription><MaxDimensions>USPS-Produced Cardboard Envelope has a dimension of 12-1/2" x 9-1/2" and GXG Tyvek envelope has a dimension of 15-1/2" x 12-1/2" and Legal-sized envelope has a dimension of 15" x 9-1/2"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="1"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>29.25</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>0.00</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International</SvcDescription><MaxDimensions>Max. length 42", max. length plus girth combined 79"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="26"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>59.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>0.00</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Boxes</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="2"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>23.25</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.45</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><ParcelIndemnityCoverage>26.00</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International</SvcDescription><MaxDimensions>Max. length 79", max. length plus girth 108"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="11"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>39.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.45</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><ParcelIndemnityCoverage>26.00</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 23-11/16" x 11-3/4" x 3" or 12" x 12" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="9"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>32.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.45</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><ParcelIndemnityCoverage>26.00</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="16"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>12.95</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Box: 8-5/8" x 5-3/8" x 1-5/8"<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="24"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>12.95</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International DVD Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Box: 7-9/16" x 5-7/16" x 5/8"<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="25"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>12.95</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Video Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Box: 9-1/4" x 6-1/4" x 2"<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="15"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>3.75</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>Varies by destination</SvcCommitments><SvcDescription>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Parcel**</SvcDescription><MaxDimensions>Other than rolls: Max. length 24", max length, height and depth (thickness) combined 36"<br>Rolls: Max. length 36". Max length and twice the diameter combined 42"</MaxDimensions><MaxWeight>4</MaxWeight></Service></Package></IntlRateV2Response><br />

USPS Priority Mail® International ($24.25)  -  6 - 10 business days
USPS Express Mail® International ($30.25)  -  3 - 5 business days
(again only two opinions giving, no international mail shipping - which is much cheaper)


What do I need to do to get rid of " WARNING - product dimensions assumed to be INCHES", I have products listed as inches in dimensions?

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2012, 19:59:47 pm
open /administrator/components/com_virtuemart/classes/shipping/uspsv5.php

find:
Code: [Select]
First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Package**
replace with:
Code: [Select]
First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Parcel**
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 13, 2012, 22:39:54 pm
Did this, confirmed parcel was in there, loged out of both front and back end.  Tried it again.  Only given these two choices:
USPS Priority Mail® International ($24.25)  -  6 - 10 business days
USPS Express Mail® International ($30.25)  -  3 - 5 business days

Here is debug info:

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 28 (Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.0255 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 8 (Lip Balm) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.051 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 26 (Relief Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.363375 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49770 , Destination: CA/N5V 1H3, Weight: 0.363375, Value: 26
Debug: uspsv5::get_rates_array() - Calculating international shipping.

Debug: XML Post:

http://Production.ShippingAPIs.com/ShippingAPI.dll?API=IntlRateV2&XML=<IntlRateV2Request USERID="******" ><Package ID="0"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><ValueOfContents>26</ValueOfContents><Country>Canada</Country><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth></Package></IntlRateV2Request>

XML results:

<?xml version="1.0"?><br />
<IntlRateV2Response><Package ID="0"><Prohibitions>An issue of a publication in which more than 5 percent of its total advertising space is primarily directed to a Canadian market and which indicates:<br />
(a) Specifically where goods or services may be obtained in Canada, or <br />
(b) Specific items or conditions relating to the sale or provision of goods or services in Canada. <br />
All alcoholic beverages including wines, etc.<br />
An issue of a publication that contains an advertisement primarily directed to a Canadian market is a prohibited import if that advertisement does not appear in identical form in all editions of the issue distributed in the country of origin.<br />
Articles so marked as to create the false impression that they were made in Canada, Great Britain or any other British country.<br />
Commercial tags of metal.<br />
Firearms, except as follows: Firearms may be mailed to Canada provided that they meet the requirements in DMM 601.11.1, 601.11.2, 601.11.3, and 601.11.6 and that the importer has the required documentation. Customers must visit http://cbsa-asfc.gc.ca/publications/pub/bsf5044-eng.html prior to mailing for Canadian import requirements.<br />
Gold bullion, gold dust, and nonmanufactured precious metals.<br />
Non-refillable lighters or any other lighter that contains fuel. New lighters with no fuel may be sent.<br />
Oleomargarine and other butter substitutes, including altered or renovated butter.<br />
Perishable infectious biological substances.<br />
Perishable noninfectious biological substances.<br />
Plumage and skins of wild birds.<br />
Prison-made goods being sold or intended for sale by a person or firm.<br />
Radioactive materials.<br />
Replica or inert munitions, as well as other devices that simulate explosive devices or munitions, including replica or inert grenades or other simulated military munitions, whether or not such items are for display purposes.<br />
Reprints of Canadian or British works copyrighted in Canada.<br />
Reproductions of Canadian postage stamps unless printed in publications in black and white only and with a defacing line drawn across each reproduction.<br />
Shipments bearing caution labels indicating the contents are flammable.<br />
Smoke-making devices for motor vehicles and boats.<br />
Used or secondhand hives or bee supplies.</Prohibitions><Restrictions>Coins; banknotes; currency notes; securities payable to bearer; traveler's checks; gold, silver, platinum, manufactured or not; jewelry; and other valuable articles may be sent only in registered items. <br />
Exceptions:<br />
Coins sent to or from collectors or dealers may be mailed in ordinary (uninsured) parcels.<br />
Drugs and medicines must comply with Canadian law.<br />
Eggs for hatching must be packed in new, clean containers and accompanied by a certificate issued by a veterinarian of the U.S. Department of Agriculture, or one issued by a State veterinarian and endorsed by a veterinarian of that Bureau, stating that to the best of his or her knowledge the eggs come from a flock that is free from Newcastle disease, fowl pest, or fowl typhoid. See 135.3 for method of packing.<br />
Meat and meat food products must be accompanied by an export certificate issued by the U.S. Department of Agriculture and labeled in accordance with Canadian regulations. Exception to these requirements are:<br />
1. bona fide sample shipments weighing less than 10 kg; <br />
2. meat products addressed to a government department or agency; <br />
3. meat products intended for personal consumption when they enter Canada in the possession of the importer. <br />
Precious stones, set or not set; all items used as dress ornaments and coming under the term "jewelry" including articles of gold or other precious metal for personal use such as cigarette holders, cases, powder cases, card cases, opera glasses, fountain pens, watches, etc., are permitted in insured parcels provided the articles have value not over $5 U.S. A parcel containing a number of such articles valued at $5 or less may be insured for the total value of the contents up to a maximum of $200.<br />
Veterinary biological products including serums and vaccines must be accompanied by a permit issued by the Veterinary Director General, Ministry of Agriculture of Canada.</Restrictions><Observations>1. Banknotes valued at $100 or more must be put up in a compact package and securely tied with strong twine before wrapping. The wrapper must be linen or other strong, woven material, linen lined paper, or two thicknesses of strong kraft paper. After wrapping, the package must be again securely tied or stitched and sealed at the points of closing. <br />
2. The name of the Canadian province in which the office of destination is located must appear as part of the address. <br />
3. The following must not be accepted for insurance: <br />
Bees, postage stamps (canceled and uncanceled) and albums in which they are mounted, and parcels addressed to CFPOs. <br />
4. Canadian Forces Mail (CFPO) is processed through Canadian military post offices and must be addressed in the following manner: <br />
(a) NUMBER, RANK, NAME UNIT <br />
(b) CFPO (NUMBER) <br />
(c) BELLEVILLE ON K0K 3R0 <br />
(d) CANADA <br />
Maximum weight limits for mail addressed to members of the Canadian Forces based outside of Canada (CFPO) is 22 pounds. Parcels for CFPO addresses may not be insured. Direct sacks of printed matter (M-bags) are not permitted for CFPO addresses.<br />
5. A letter fully prepaid and bearing the same address as that of a parcel may be tied or otherwise securely attached to the outside of the parcel. Stamps to cover postage on the parcel must be affixed to the wrapper of the parcel. Stamps to pay postage on the letter must be affixed to the envelope thereof. <br />
6. Certain types of merchandise must be marked to show country of origin in the manner prescribed by the Canadian customs regulations. <br />
7. Goods valued under 20 Canadian dollars are duty and excise tax exempt. Goods over 20 Canadian dollars will be subject to the applicable duties and excise taxes. Gift shipments received by mail that are valued under 60 Canadian dollars are duty and excise tax exempt. <br />
8. For all casual and commercial items valued under 1,600 Canadian dollars, Canada Post will collect the assessed duties and excise taxes and a handling fee of 5 Canadian dollars from the addressee. For Express Mail International items, the handling fee is 8 Canadian dollars. All commercial mail items over 1,600 Canadian dollars will be held by Canada Customs and Excise until proper invoice and accounting documentation is provided by the addressee. <br />
9. The Canada Customs Invoice can be obtained from stationery, office supply, or printing companies. If mailers are unable to obtain the Canada Customs Invoice locally, they should visit the following Web site: www.canadapost.ca. In addition, commercial invoices are acceptable provided that each invoice has the required information for customs purposes. <br />
10. Information on Canadian customs regulations may be obtained from the Office of International Marketing/223, Bureau of International Commerce, Department of Commerce, Washington, DC 20230, or any field office of that Department. <br />
Obtaining post code information: <br />
11. Information on Canadian post code directories can be obtained from: <br />
(a) NATIONAL PHILATELIC CENTER<br />
CANADA POST CORPORATION <br />
STATION 1 <br />
ANTIGONISH NS B2G 2R8 <br />
Telephone: 1-800-565-4362 <br />
Fax: 1-902-863-6796<br />
(b) To obtain Canadian post codes for specific addresses, call the General Information line at 1-416-979-8822 or access the Canada Post Corporation web site on the Internet at http://www.canadapost.ca. <br />
12. Pursuant to the Canada Customs Act and a need to heighten border security, Canada will deny entry of all postal items (except postcards) that do not bear complete sender and addressee information in roman letters and arabic numerals. </Observations><CustomsForms>First-Class Mail International items and Priority Mail International Flat Rate Envelopes and Small Flat Rate Boxes: <br />
PS Form 2976 (see 123.61)<br />
Priority Mail International parcels:<br />
PS Form 2976-A inside 2976-E (envelope)</CustomsForms><ExpressMail>Country Code:<br />
CA<br />
<br />
Reciprocal Service Name: <br />
There is no reciprocal service. <br />
<br />
Required Customs Form/Endorsement<br />
1. Business papers and commercial documents.<br />
PS Form 2976, Customs - CN 22 and Sender's Declaration.<br />
 <br />
2. Merchandise samples and gift shipments (non-commercial parcels). <br />
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91. <br />
 <br />
3. Merchandise (commercial shipments) and all articles subject to customs duty. <br />
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.<br />
 <br />
<br />
<br />
Notes:<br />
1. Gift shipments (non-commercial parcels) require a sales receipt, invoice or other documentation to support the declared value. <br />
2. Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Express Mail International shipments to Canada. <br />
3. Express Mail shipments may have a street address or a post office box address. A local telephone number for the addressee MUST be provided for shipments addressed to a post office box address. A local telephone number for the addressee should be provided if possible for shipments to a street address. <br />
<br />
Areas Served: All</ExpressMail><AreasServed>Please reference Express Mail for Areas Served.</AreasServed><AdditionalRestrictions>No Additional Restrictions Data found.</AdditionalRestrictions><Service ID="12"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>44.00</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>0.00</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>USPS GXG&lt;sup&gt;&amp;trade;&lt;/sup&gt; Envelopes**</SvcDescription><MaxDimensions>USPS-Produced Cardboard Envelope has a dimension of 12-1/2" x 9-1/2" and GXG Tyvek envelope has a dimension of 15-1/2" x 12-1/2" and Legal-sized envelope has a dimension of 15" x 9-1/2"</MaxDimensions><MaxWeight>70</MaxWeight></Service><Service ID="1"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>29.25</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>0.00</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International</SvcDescription><MaxDimensions>Max. length 42", max. length plus girth combined 79"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="26"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>59.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>0.00</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><SvcCommitments>3 - 5 business days</SvcCommitments><SvcDescription>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Boxes</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="2"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>23.25</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.45</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><ParcelIndemnityCoverage>26.00</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International</SvcDescription><MaxDimensions>Max. length 79", max. length plus girth 108"</MaxDimensions><MaxWeight>66</MaxWeight></Service><Service ID="11"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>39.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.45</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><ParcelIndemnityCoverage>26.00</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 23-11/16" x 11-3/4" x 3" or 12" x 12" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="9"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>32.95</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>2.45</Price></ExtraService></ExtraServices><ValueOfContents>26.00</ValueOfContents><ParcelIndemnityCoverage>26.00</ParcelIndemnityCoverage><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate Box</SvcDescription><MaxDimensions>USPS-Produced Box: 13-5/8" x 11-7/8" x 3-3/8" or 11" x 8-1/2" x 5-1/2"<br>Maximum weight 20 pounds.</MaxDimensions><MaxWeight>20</MaxWeight></Service><Service ID="16"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>12.95</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Box: 8-5/8" x 5-3/8" x 1-5/8"<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="24"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>12.95</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International DVD Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Box: 7-9/16" x 5-7/16" x 5/8"<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="25"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>12.95</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>6 - 10 business days</SvcCommitments><SvcDescription>Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Video Flat Rate Box**</SvcDescription><MaxDimensions>USPS-Produced Box: 9-1/4" x 6-1/4" x 2"<br>Maximum weight 4 pounds.</MaxDimensions><MaxWeight>4</MaxWeight></Service><Service ID="15"><Pounds>0</Pounds><Ounces>6</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>3.75</Postage><ExtraServices/><ValueOfContents>26.00</ValueOfContents><InsComment>SERVICE</InsComment><SvcCommitments>Varies by destination</SvcCommitments><SvcDescription>First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Parcel**</SvcDescription><MaxDimensions>Other than rolls: Max. length 24", max length, height and depth (thickness) combined 36"<br>Rolls: Max. length 36". Max length and twice the diameter combined 42"</MaxDimensions><MaxWeight>4</MaxWeight></Service></Package></IntlRateV2Response><br />

USPS Priority Mail® International ($24.25)  -  6 - 10 business days
USPS Express Mail® International ($30.25)  -  3 - 5 business days
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 13, 2012, 22:54:59 pm
Save your config a few times..sometimes it does not go into the config file the first time.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 13, 2012, 23:04:22 pm
This is what I pulled from what is on the server:

      "USPS_INTL19_TEXT" => "First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Parcel**", // SERVICE ID 15

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 14, 2012, 01:16:07 am
What do you mean save the config file a few times?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 14, 2012, 02:13:39 am
Go into the module configuration, click "Save".  Go somewhere else in VM.  Go back to the module, click "Save". 
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 14, 2012, 03:10:17 am
That did the trick.   Any way of adding a line on the shipping choice page where I can say  "If your having problems please call 555-555-5555"?

 What e-mail address do I use for the donation?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 14, 2012, 18:26:38 pm
There are still a few shipping options not showing up when both a USA address and an International address are used. Here is a USA address:

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 26 (Relief Salve) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.312375 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49770 , Destination: US/49746, Weight: 0.312375, Value: 20
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.

Debug: XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="******" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>49770</ZipOrigination><ZipDestination>49746</ZipDestination><Pounds>0</Pounds><Ounces>5</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable></Package></RateV4Request>
XML Results:
<?xml version="1.0"?><br />
<RateV4Response><Package ID="0"><ZipOrigination>49770</ZipOrigination><ZipDestination>49746</ZipDestination><Pounds>0</Pounds><Ounces>5</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="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>25.45</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="57"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes</MailService><Rate>52.45</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="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>31.45</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="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>31.45</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>2.29</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><br />
USPS Parcel Post® ($5.70)
 USPS Priority Mail® ($5.70)  -  1 - 3 Days
 USPS Express Mail® ($13.45)  -  Overnight, most locations

Whats missing for USA addresses are these options (in config file):
First-Class Mail® Package: Y

I see in the XML post it says: First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Parcel</MailService><Rate>2.29</Rate>  That is what I would like to display

This is missing from the International Service Options:

Priority Mail® International Padded Flat Rate Envelope**

What do I need to fix?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: blanderson on February 15, 2012, 16:17:05 pm
Hi lowmips,

How would I go about turning off the modules cache feature ... at least for product weight?  It seems to be caching too much.  Its not fetching a new rate when the items in the cart change during a 'purchasing session'.  It only fetches a new rate when the zip code is changed, which in a real purchasing session wouldn't normally occur.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on February 15, 2012, 16:46:24 pm
blanderson,
the cache feature is a session based mechanism that caches based on weight, dimensions, and source/destination zip.  For instructions on how to disable caching, you'll need to post your module version.

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Nathan on February 20, 2012, 08:18:29 am
lowmips can you please respond to my last post?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips 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
Title: usps5 not working with vm119
Post by: jagadish 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]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips 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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jagadish 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
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips 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
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jagadish 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.




Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips 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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jagadish 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
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips 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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jagadish 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]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips 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.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jagadish 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
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips 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
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER 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?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: jagadish 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
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 19, 2012, 13:01:18 pm
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>

You should be seeing the Priority mail and Express mail options, as they are being returned.  Can you post your uspsv5.cfg.php (remove your user credentials first)?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 19, 2012, 14:12:31 pm
Here is the uspsv5.cfg.php:
Code: [Select]
<?php
if( !defined'_VALID_MOS' ) && !defined'_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); 

define ('USPS_SHOW_DEBUG''');
define ('USPS_USERNAME''###RETRACTED###');
define ('USPS_SERVER''Production.ShippingAPIs.com');
define ('USPS_PATH''/ShippingAPI.dll');
define ('USPS_PROXYSERVER''');
define ('USPS_PACKAGESIZE''REGULAR');
define ('USPS_TAX_CLASS''0');
define ('USPS_HANDLINGFEE''.50');
define ('USPS_PADDING''15%');
define ('USPS_INTLHANDLINGFEE''5.00');
define ('USPS_MACHINABLE''0');
define ('USPS_SHOW_DELIVERY_QUOTE''1');
define ('USPS_REPORTERRORS''1');
define ('USPS_STANDARDSHIPPING''0');
define ('USPS_PREFIX''USPS');
define ('USPS_SHIP0''0');
define ('USPS_SHIP1''1');
define ('USPS_SHIP2''0');
define ('USPS_SHIP3''0');
define ('USPS_SHIP4''0');
define ('USPS_SHIP5''0');
define ('USPS_SHIP6''0');
define ('USPS_SHIP7''0');
define ('USPS_SHIP8''0');
define ('USPS_SHIP9''1');
define ('USPS_SHIP10''0');
define ('USPS_SHIP11''0');
define ('USPS_SHIP12''0');
define ('USPS_SHIP13''0');
define ('USPS_SHIP14''0');
define ('USPS_SHIP15''0');
define ('USPS_SHIP16''0');
define ('USPS_SHIP17''0');
define ('USPS_SHIP18''0');
define ('USPS_SHIP19''0');
define ('USPS_SHIP20''0');
define ('USPS_SHIP21''0');
define ('USPS_SHIP22''0');
define ('USPS_SHIP23''0');
define ('USPS_SHIP0_UPCHARGE''');
define ('USPS_SHIP1_UPCHARGE''');
define ('USPS_SHIP2_UPCHARGE''');
define ('USPS_SHIP3_UPCHARGE''');
define ('USPS_SHIP4_UPCHARGE''');
define ('USPS_SHIP5_UPCHARGE''');
define ('USPS_SHIP6_UPCHARGE''');
define ('USPS_SHIP7_UPCHARGE''');
define ('USPS_SHIP8_UPCHARGE''');
define ('USPS_SHIP9_UPCHARGE''');
define ('USPS_SHIP10_UPCHARGE''');
define ('USPS_SHIP11_UPCHARGE''');
define ('USPS_SHIP12_UPCHARGE''');
define ('USPS_SHIP13_UPCHARGE''');
define ('USPS_SHIP14_UPCHARGE''');
define ('USPS_SHIP15_UPCHARGE''');
define ('USPS_SHIP16_UPCHARGE''');
define ('USPS_SHIP17_UPCHARGE''');
define ('USPS_SHIP18_UPCHARGE''');
define ('USPS_SHIP19_UPCHARGE''');
define ('USPS_SHIP20_UPCHARGE''');
define ('USPS_SHIP21_UPCHARGE''');
define ('USPS_SHIP22_UPCHARGE''');
define ('USPS_SHIP23_UPCHARGE''');
define ('USPS_SHIP0_COMMIT''Overnight, most locations');
define ('USPS_SHIP1_COMMIT''Overnight, most locations');
define ('USPS_SHIP2_COMMIT''Overnight, most locations');
define ('USPS_SHIP3_COMMIT''Overnight, most locations');
define ('USPS_SHIP4_COMMIT''Overnight, most locations');
define ('USPS_SHIP5_COMMIT''Overnight, most locations');
define ('USPS_SHIP6_COMMIT''1 - 3 Days');
define ('USPS_SHIP7_COMMIT''1 - 3 Days');
define ('USPS_SHIP8_COMMIT''1 - 3 Days');
define ('USPS_SHIP9_COMMIT''1 - 3 Days');
define ('USPS_SHIP10_COMMIT''1 - 3 Days');
define ('USPS_SHIP11_COMMIT''1 - 3 Days');
define ('USPS_SHIP12_COMMIT''2 - 9 Days');
define ('USPS_SHIP13_COMMIT''2 - 9 Days');
define ('USPS_SHIP14_COMMIT''2 - 9 Days');
define ('USPS_SHIP15_COMMIT''2 - 9 Days');
define ('USPS_SHIP16_COMMIT''2 - 9 Days');
define ('USPS_SHIP17_COMMIT''');
define ('USPS_SHIP18_COMMIT''');
define ('USPS_SHIP19_COMMIT''');
define ('USPS_SHIP20_COMMIT''');
define ('USPS_SHIP21_COMMIT''');
define ('USPS_SHIP22_COMMIT''');
define ('USPS_SHIP23_COMMIT''');
define ('USPS_INTL0''0');
define ('USPS_INTL1''0');
define ('USPS_INTL2''0');
define ('USPS_INTL3''0');
define ('USPS_INTL4''1');
define ('USPS_INTL5''0');
define ('USPS_INTL6''0');
define ('USPS_INTL7''1');
define ('USPS_INTL8''0');
define ('USPS_INTL9''0');
define ('USPS_INTL10''0');
define ('USPS_INTL11''0');
define ('USPS_INTL12''0');
define ('USPS_INTL13''0');
define ('USPS_INTL14''0');
define ('USPS_INTL15''0');
define ('USPS_INTL16''0');
define ('USPS_INTL17''0');
define ('USPS_INTL18''0');
define ('USPS_INTL19''0');
define ('USPS_INTL20''0');
define ('USPS_INTL0_UPCHARGE''');
define ('USPS_INTL1_UPCHARGE''');
define ('USPS_INTL2_UPCHARGE''');
define ('USPS_INTL3_UPCHARGE''');
define ('USPS_INTL4_UPCHARGE''');
define ('USPS_INTL5_UPCHARGE''');
define ('USPS_INTL6_UPCHARGE''');
define ('USPS_INTL7_UPCHARGE''');
define ('USPS_INTL8_UPCHARGE''');
define ('USPS_INTL9_UPCHARGE''');
define ('USPS_INTL10_UPCHARGE''');
define ('USPS_INTL11_UPCHARGE''');
define ('USPS_INTL12_UPCHARGE''');
define ('USPS_INTL13_UPCHARGE''');
define ('USPS_INTL14_UPCHARGE''');
define ('USPS_INTL15_UPCHARGE''');
define ('USPS_INTL16_UPCHARGE''');
define ('USPS_INTL17_UPCHARGE''');
define ('USPS_INTL18_UPCHARGE''');
define ('USPS_INTL19_UPCHARGE''');
define ('USPS_INTL20_UPCHARGE''');
define ('USPS_SHIP0_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup');
define ('USPS_SHIP1_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP2_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery');
define ('USPS_SHIP3_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope');
define ('USPS_SHIP4_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope Hold For Pickup');
define ('USPS_SHIP5_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope');
define ('USPS_SHIP6_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope');
define ('USPS_SHIP7_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope Hold For Pickup');
define ('USPS_SHIP8_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope');
define ('USPS_SHIP9_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP10_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Flat Rate Box');
define ('USPS_SHIP11_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Medium Flat Rate Box');
define ('USPS_SHIP12_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flat Rate Box');
define ('USPS_SHIP13_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Flat Rate Envelope');
define ('USPS_SHIP14_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Legal Flat Rate Envelope');
define ('USPS_SHIP15_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Padded Flat Rate Envelope');
define ('USPS_SHIP16_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Gift Card Flat Rate Envelop');
define ('USPS_SHIP17_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Small Flate Rate Envelope');
define ('USPS_SHIP18_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Window Flat Rate Envelope');
define ('USPS_SHIP19_TEXT''First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Parcel');
define ('USPS_SHIP20_TEXT''First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Large Envelope');
define ('USPS_SHIP21_TEXT''Parcel Post&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP22_TEXT''Media Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_SHIP23_TEXT''Library Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt;');
define ('USPS_INTL0_TEXT''Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; (GXG)**');
define ('USPS_INTL1_TEXT''Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document Rectangular');
define ('USPS_INTL2_TEXT''Global Express Guaranteed&lt;sup&gt;&amp;reg;&lt;/sup&gt; Non-Document Non-Rectangular');
define ('USPS_INTL3_TEXT''USPS GXG&lt;sup&gt;&amp;trade;&lt;/sup&gt; Envelopes**');
define ('USPS_INTL4_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International');
define ('USPS_INTL5_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Envelope');
define ('USPS_INTL6_TEXT''Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate Envelope');
define ('USPS_INTL7_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International');
define ('USPS_INTL8_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Flat Rate Box');
define ('USPS_INTL9_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Medium Flat Rate Box');
define ('USPS_INTL10_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Box**');
define ('USPS_INTL11_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International DVD Flat Rate Box**');
define ('USPS_INTL12_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Video Flat Rate Box**');
define ('USPS_INTL13_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Flat Rate Envelope**');
define ('USPS_INTL14_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Legal Flat Rate Envelope**');
define ('USPS_INTL15_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Padded Flat Rate Envelope**');
define ('USPS_INTL16_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Gift Card Flat Rate Envelope**');
define ('USPS_INTL17_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Small Flat Rate Envelope**');
define ('USPS_INTL18_TEXT''Priority Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Window Flat Rate Envelope**');
define ('USPS_INTL19_TEXT''First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Package**');
define ('USPS_INTL20_TEXT''First-Class Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; International Large Envelope**');
?>
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 19, 2012, 14:43:42 pm
I've tested a checkout using the same setup as you (weight, zip codes, module config) and had no issues.  I'm not sure if it was an issue with my module archive, maybe some old versions of the files were in there.  I've rebuilt the archive and uploaded it to the first post in this thread.  Try downloading it and copy over the files.   Reconfigure the module, save the settings a few times, and try again.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 20, 2012, 01:18:27 am
Hmmm. I overwrote the files with the new download and no change. I just went into the mySQL and ran statements to make sure all weights are set, the the weight UOM is ounces. Previously, I was testing with only a single product I had made sure was set properly.

I'm going to try the other module to see if it works better for me. I won't have a need for unbundling, but I can override that.

Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 20, 2012, 01:40:12 am
No change. The XML Results still show the correct rates, but it looks like the shipping module can't read them.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 20, 2012, 02:36:49 am
Not sure what to tell you Spyker...again, I tried the exact same checkout with the latest module and it worked for me.  Very weird.
Are you any good with PHP? Maybe throw a few debug echo's in there to see what's going on.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 20, 2012, 02:50:30 am
Maybe throw a few debug echo's in there to see what's going on.

Yeah, that's what I've been looking into. It seems to get to the point of pulling the XML, but then has a problem with the get_rates_array after the XML is returned. I'm focusing on this bit of code to start:
Code: [Select]
uspsv5::debugLog($debug_str);
$this->rates = $this->uspsv5->get_rates_array(
$this->source['country'],
$this->source['zip'],
$this->destination['country'],
$this->destination['zip'],
$this->weight,
$this->value,
$declare_dims,$this->dimensions_arr['length'], $this->dimensions_arr['width'], $this->dimensions_arr['height']
);

if ($this->rates == null){
uspsv5::debugLog("Package::query_rates() - Rate query returned null results.");
return false;
}
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 20, 2012, 12:54:30 pm
Let me suggest in the get_rates_array() function, right before this line:

Code: [Select]
if (in_array($serviceName, $usps_ship_active)){echo $serviceName.'<br/>';

and right before this line further up:
Code: [Select]
for ($i = 0; $i < $matchingNodes->getLength(); $i++) {
echo '<pre>'.var_export( $usps_ship_active,true).'</pre>';
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 21, 2012, 01:20:43 am
Those returned the following:
Code: [Select]
array (
  0 => 'Express Mail<sup>&reg;</sup>',
  'Express Mail<sup>&reg;</sup>' =>
  array (
    0 => 'Overnight, most locations',
    'upcharge' => '',
  ),
  1 => 'Priority Mail<sup>&reg;</sup>',
  'Priority Mail<sup>&reg;</sup>' =>
  array (
    0 => '1 - 3 Days',
    'upcharge' => '',
  ),
  2 => 'First-Class Mail<sup>&reg;</sup> Parcel',
  'First-Class Mail<sup>&reg;</sup> Parcel' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  3 => 'First-Class Mail<sup>&reg;</sup> Large Envelope',
  'First-Class Mail<sup>&reg;</sup> Large Envelope' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  4 => 'Parcel Post<sup>&reg;</sup>',
  'Parcel Post<sup>&reg;</sup>' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  5 => 'Media Mail<sup>&reg;</sup>',
  'Media Mail<sup>&reg;</sup>' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  6 => 'Library Mail<sup>&reg;</sup>',
  'Library Mail<sup>&reg;</sup>' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
)

Express Maillt;supgt;amp;reg;lt;/supgt;
Express Maillt;supgt;amp;reg;lt;/supgt; Hold For Pickup
Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Boxes
Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Boxes Hold For Pickup
Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope
Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope Hold For Pickup
Express Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope
Express Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope Hold For Pickup
Priority Maillt;supgt;amp;reg;lt;/supgt;
Priority Maillt;supgt;amp;reg;lt;/supgt; Large Flat Rate Box
Priority Maillt;supgt;amp;reg;lt;/supgt; Medium Flat Rate Box
Priority Maillt;supgt;amp;reg;lt;/supgt; Small Flat Rate Box
Priority Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope
Priority Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope
Priority Maillt;supgt;amp;reg;lt;/supgt; Padded Flat Rate Envelope
Priority Maillt;supgt;amp;reg;lt;/supgt; Gift Card Flat Rate Envelope
Priority Maillt;supgt;amp;reg;lt;/supgt; Small Flat Rate Envelope
Priority Maillt;supgt;amp;reg;lt;/supgt; Window Flat Rate Envelope
First-Class Maillt;supgt;amp;reg;lt;/supgt; Parcel
First-Class Maillt;supgt;amp;reg;lt;/supgt; Letter
First-Class Maillt;supgt;amp;reg;lt;/supgt; Postcards
First-Class Maillt;supgt;amp;reg;lt;/supgt; Large Postcards
Parcel Postlt;supgt;amp;reg;lt;/supgt;
Media Maillt;supgt;amp;reg;lt;/supgt;
Library Mail
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 21, 2012, 01:33:07 am
add a '<pre>' and '</pre>' to the serviceName echo.  It looks like they are different, but I think it's just a display interpretation thing.  If they are not exactly the same, that could be the issue (although I doubt it).
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 21, 2012, 01:54:52 am
Looks the same. I think it's the interperter.
Code: [Select]
array (
  0 => 'Express Mail<sup>&reg;</sup> Hold For Pickup',
  'Express Mail<sup>&reg;</sup> Hold For Pickup' =>
  array (
    0 => 'Overnight, most locations',
    'upcharge' => '',
  ),
  1 => 'Express Mail<sup>&reg;</sup>',
  'Express Mail<sup>&reg;</sup>' =>
  array (
    0 => 'Overnight, most locations',
    'upcharge' => '',
  ),
  2 => 'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery',
  'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery' =>
  array (
    0 => 'Overnight, most locations',
    'upcharge' => '',
  ),
  3 => 'Express Mail<sup>&reg;</sup> Flat Rate Envelope',
  'Express Mail<sup>&reg;</sup> Flat Rate Envelope' =>
  array (
    0 => 'Overnight, most locations',
    'upcharge' => '',
  ),
  4 => 'Express Mail<sup>&reg;</sup> Flat Rate Envelope Hold For Pickup',
  'Express Mail<sup>&reg;</sup> Flat Rate Envelope Hold For Pickup' =>
  array (
    0 => 'Overnight, most locations',
    'upcharge' => '',
  ),
  5 => 'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery Flat Rate Envelope',
  'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery Flat Rate Envelope' =>
  array (
    0 => 'Overnight, most locations',
    'upcharge' => '',
  ),
  6 => 'Express Mail<sup>&reg;</sup> Legal Flat Rate Envelope',
  'Express Mail<sup>&reg;</sup> Legal Flat Rate Envelope' =>
  array (
    0 => '1 - 3 Days',
    'upcharge' => '',
  ),
  7 => 'Express Mail<sup>&reg;</sup> Legal Flat Rate Envelope Hold For Pickup',
  'Express Mail<sup>&reg;</sup> Legal Flat Rate Envelope Hold For Pickup' =>
  array (
    0 => '1 - 3 Days',
    'upcharge' => '',
  ),
  8 => 'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery Legal Flat Rate Envelope',
  'Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery Legal Flat Rate Envelope' =>
  array (
    0 => '1 - 3 Days',
    'upcharge' => '',
  ),
  9 => 'Priority Mail<sup>&reg;</sup>',
  'Priority Mail<sup>&reg;</sup>' =>
  array (
    0 => '1 - 3 Days',
    'upcharge' => '',
  ),
  10 => 'Priority Mail<sup>&reg;</sup> Large Flat Rate Box',
  'Priority Mail<sup>&reg;</sup> Large Flat Rate Box' =>
  array (
    0 => '1 - 3 Days',
    'upcharge' => '',
  ),
  11 => 'Priority Mail<sup>&reg;</sup> Medium Flat Rate Box',
  'Priority Mail<sup>&reg;</sup> Medium Flat Rate Box' =>
  array (
    0 => '1 - 3 Days',
    'upcharge' => '',
  ),
  12 => 'Priority Mail<sup>&reg;</sup> Small Flat Rate Box',
  'Priority Mail<sup>&reg;</sup> Small Flat Rate Box' =>
  array (
    0 => '2 - 9 Days',
    'upcharge' => '',
  ),
  13 => 'Priority Mail<sup>&reg;</sup> Flat Rate Envelope',
  'Priority Mail<sup>&reg;</sup> Flat Rate Envelope' =>
  array (
    0 => '2 - 9 Days',
    'upcharge' => '',
  ),
  14 => 'Priority Mail<sup>&reg;</sup> Legal Flat Rate Envelope',
  'Priority Mail<sup>&reg;</sup> Legal Flat Rate Envelope' =>
  array (
    0 => '2 - 9 Days',
    'upcharge' => '',
  ),
  15 => 'Priority Mail<sup>&reg;</sup> Padded Flat Rate Envelope',
  'Priority Mail<sup>&reg;</sup> Padded Flat Rate Envelope' =>
  array (
    0 => '2 - 9 Days',
    'upcharge' => '',
  ),
  16 => 'Priority Mail<sup>&reg;</sup> Gift Card Flat Rate Envelop',
  'Priority Mail<sup>&reg;</sup> Gift Card Flat Rate Envelop' =>
  array (
    0 => '2 - 9 Days',
    'upcharge' => '',
  ),
  17 => 'Priority Mail<sup>&reg;</sup> Small Flate Rate Envelope',
  'Priority Mail<sup>&reg;</sup> Small Flate Rate Envelope' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  18 => 'Priority Mail<sup>&reg;</sup> Window Flat Rate Envelope',
  'Priority Mail<sup>&reg;</sup> Window Flat Rate Envelope' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  19 => 'First-Class Mail<sup>&reg;</sup> Parcel',
  'First-Class Mail<sup>&reg;</sup> Parcel' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  20 => 'First-Class Mail<sup>&reg;</sup> Large Envelope',
  'First-Class Mail<sup>&reg;</sup> Large Envelope' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  21 => 'Parcel Post<sup>&reg;</sup>',
  'Parcel Post<sup>&reg;</sup>' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  22 => 'Media Mail<sup>&reg;</sup>',
  'Media Mail<sup>&reg;</sup>' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
  23 => 'Library Mail<sup>&reg;</sup>',
  'Library Mail<sup>&reg;</sup>' =>
  array (
    0 => '',
    'upcharge' => '',
  ),
)Express Maillt;supgt;amp;reg;lt;/supgt;

Express Maillt;supgt;amp;reg;lt;/supgt; Hold For Pickup

Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Boxes

Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Boxes Hold For Pickup

Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope

Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope Hold For Pickup

Express Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope

Express Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope Hold For Pickup

Priority Maillt;supgt;amp;reg;lt;/supgt;

Priority Maillt;supgt;amp;reg;lt;/supgt; Large Flat Rate Box

Priority Maillt;supgt;amp;reg;lt;/supgt; Medium Flat Rate Box

Priority Maillt;supgt;amp;reg;lt;/supgt; Small Flat Rate Box

Priority Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope

Priority Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope

Priority Maillt;supgt;amp;reg;lt;/supgt; Padded Flat Rate Envelope

Priority Maillt;supgt;amp;reg;lt;/supgt; Gift Card Flat Rate Envelope

Priority Maillt;supgt;amp;reg;lt;/supgt; Small Flat Rate Envelope

Priority Maillt;supgt;amp;reg;lt;/supgt; Window Flat Rate Envelope

First-Class Maillt;supgt;amp;reg;lt;/supgt; Parcel

First-Class Maillt;supgt;amp;reg;lt;/supgt; Letter

First-Class Maillt;supgt;amp;reg;lt;/supgt; Postcards

First-Class Maillt;supgt;amp;reg;lt;/supgt; Large Postcards

Parcel Postlt;supgt;amp;reg;lt;/supgt;

Media Maillt;supgt;amp;reg;lt;/supgt;

Library Mail
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 21, 2012, 14:17:20 pm
OK, how about this...find the section where the $ship_service_active array is built:

Code: [Select]
if ($ship_option_text !== ""){
$usps_ship_active[] = $ship_option_text;
$usps_ship_active[$ship_option_text][0] = $ship_option_commit;

$usps_ship_active[$ship_option_text]['upcharge'] = $ship_option_upcharge;
}

put in an echo for $ship_option_text.  Then try using the htmlentities function to force $ship_option_text to be fully converted to entities.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 23, 2012, 19:22:45 pm
I added this before both instances that looked like your example:
Code: [Select]
htmlentities($ship_option_text);
echo $ship_option_text.'<br/>';

Got this:
Express Mail<sup>&reg;</sup> Hold For Pickup
Express Mail<sup>&reg;</sup>
Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery
Express Mail<sup>&reg;</sup> Flat Rate Envelope
Express Mail<sup>&reg;</sup> Flat Rate Envelope Hold For Pickup
Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery Flat Rate Envelope
Express Mail<sup>&reg;</sup> Legal Flat Rate Envelope
Express Mail<sup>&reg;</sup> Legal Flat Rate Envelope Hold For Pickup
Express Mail<sup>&reg;</sup> Sunday/Holiday Delivery Legal Flat Rate Envelope
Priority Mail<sup>&reg;</sup>
Priority Mail<sup>&reg;</sup> Large Flat Rate Box
Priority Mail<sup>&reg;</sup> Medium Flat Rate Box
Priority Mail<sup>&reg;</sup> Small Flat Rate Box
Priority Mail<sup>&reg;</sup> Flat Rate Envelope
Priority Mail<sup>&reg;</sup> Legal Flat Rate Envelope
Priority Mail<sup>&reg;</sup> Padded Flat Rate Envelope
Priority Mail<sup>&reg;</sup> Gift Card Flat Rate Envelop

and still have :
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.

I'm wondering if any other modules installed might be messing with things?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 23, 2012, 19:25:41 pm
I should have tested if the name matching was even working....right after this line:

Code: [Select]
if (in_array($serviceName, $usps_ship_active)){
add:
echo "found service $serviceName <br/>";

That should tell us if it's a matching issue or not, if it does not match the services you've selected and that are present in the reply.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: SPyKER on March 24, 2012, 04:32:44 am
It's a matching issue. Putting it after the line gave no results. So I looped the $usps_active_ship and displayed it, then placed your line ABOVE the if statement:

Code: [Select]
echo "Ship Active:";
foreach($usps_ship_active as $item) {
        echo $item."</br>";
}

for ($i = 0; $i < $matchingNodes->getLength(); $i++) {
$thisPostage = 0;

// get the service name
$currNode =& $matchingNodes->item($i);
$serviceName = $currNode->getElementsByTagName("MailService");
$serviceName = $serviceName->item(0);
$serviceName = $serviceName->getText();

echo "Found service $serviceName<br/>";

//if service in XML is contained in active service array add as option
if (in_array($serviceName, $usps_ship_active)){

Results:
Ship Active:Express Mail<sup>&reg;</sup>
Array
Priority Mail<sup>&reg;</sup>
Array
Found service Express Maillt;supgt;amp;reg;lt;/supgt;
Found service Express Maillt;supgt;amp;reg;lt;/supgt; Hold For Pickup
Found service Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Boxes
Found service Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Boxes Hold For Pickup
Found service Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope
Found service Express Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope Hold For Pickup
Found service Express Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope
Found service Express Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope Hold For Pickup
Found service Priority Maillt;supgt;amp;reg;lt;/supgt;
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Large Flat Rate Box
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Medium Flat Rate Box
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Small Flat Rate Box
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Flat Rate Envelope
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Legal Flat Rate Envelope
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Padded Flat Rate Envelope
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Gift Card Flat Rate Envelope
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Small Flat Rate Envelope
Found service Priority Maillt;supgt;amp;reg;lt;/supgt; Window Flat Rate Envelope
Found service First-Class Maillt;supgt;amp;reg;lt;/supgt; Parcel
Found service First-Class Maillt;supgt;amp;reg;lt;/supgt; Letter
Found service First-Class Maillt;supgt;amp;reg;lt;/supgt; Postcards
Found service First-Class Maillt;supgt;amp;reg;lt;/supgt; Large Postcards
Found service Parcel Postlt;supgt;amp;reg;lt;/supgt;
Found service Media Maillt;supgt;amp;reg;lt;/supgt;
Found service Library Mail


UPDATE: I put in this code right after the $serviceName code and it is working. It's a hack, so I'd still like to find the best solution.
Code: [Select]
$serviceName = str_replace('lt;supgt;amp;reg;lt;/supgt;','&lt;sup&gt;&amp;reg;&lt;/sup&gt;',$serviceName);
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 24, 2012, 14:03:18 pm
Very weird.  I'm not familiar enough with PHP settings to know if it's a setting it to interpret that way.  Maybe a PHP.ini option?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: ProgrammerJen on March 27, 2012, 00:12:59 am
I've installed your module, and I'm getting the following errors:

Warning: constant() [function.constant]: Couldn't find constant USPS_SHIP24_UPCHARGE in /home/movewit6/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 374

Warning: constant() [function.constant]: Couldn't find constant USPS_SHIP25_UPCHARGE in /home/movewit6/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 374

Warning: constant() [function.constant]: Couldn't find constant USPS_SHIP26_UPCHARGE in /home/movewit6/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 374

Warning: constant() [function.constant]: Couldn't find constant USPS_SHIP27_UPCHARGE in /home/movewit6/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 374

Warning: constant() [function.constant]: Couldn't find constant USPS_SHIP28_UPCHARGE in /home/movewit6/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 374

Warning: constant() [function.constant]: Couldn't find constant USPS_SHIP29_UPCHARGE in /home/movewit6/public_html/administrator/components/com_virtuemart/classes/shipping/uspsv5.php on line 374
Notice: We are unable to ship via USPS at this time. System Error.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on March 27, 2012, 13:32:03 pm
Your error reporting settings are too high. lower them.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: trikey on April 19, 2012, 14:21:12 pm
Hello! I have a problem with USPS International shipping rates calculation.
Here is xml post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=IntlRateV2&XML=<IntlRateV2Request USERID="" ><Package ID="0"><Pounds>67</Pounds><Ounces>4</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><ValueOfContents>67.2</ValueOfContents><Country>Canada</Country><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth></Package></IntlRateV2Request>

Response:

<?xml version="1.0"?>
<IntlRateV2Response><Package ID="0"><Prohibitions>An issue of a publication in which more than 5 percent of its total advertising space is primarily directed to a Canadian market and which indicates:
(a) Specifically where goods or services may be obtained in Canada, or
(b) Specific items or conditions relating to the sale or provision of goods or services in Canada.
All alcoholic beverages including wines, etc.
An issue of a publication that contains an advertisement primarily directed to a Canadian market is a prohibited import if that advertisement does not appear in identical form in all editions of the issue distributed in the country of origin.
Articles so marked as to create the false impression that they were made in Canada, Great Britain or any other British country.
Commercial tags of metal.
Firearms, except as follows: Firearms may be mailed to Canada provided that they meet the requirements in DMM 601.11.1, 601.11.2, 601.11.3, and 601.11.6 and that the importer has the required documentation. Customers must visit http://cbsa-asfc.gc.ca/publications/pub/bsf5044-eng.html prior to mailing for Canadian import requirements.
Gold bullion, gold dust, and nonmanufactured precious metals.
Non-refillable lighters or any other lighter that contains fuel. New lighters with no fuel may be sent.
Oleomargarine and other butter substitutes, including altered or renovated butter.
Perishable infectious biological substances.
Perishable noninfectious biological substances.
Plumage and skins of wild birds.
Prison-made goods being sold or intended for sale by a person or firm.
Radioactive materials.
Replica or inert munitions, as well as other devices that simulate explosive devices or munitions, including replica or inert grenades or other simulated military munitions, whether or not such items are for display purposes.
Reprints of Canadian or British works copyrighted in Canada.
Reproductions of Canadian postage stamps unless printed in publications in black and white only and with a defacing line drawn across each reproduction.
Shipments bearing caution labels indicating the contents are flammable.
Smoke-making devices for motor vehicles and boats.
Used or secondhand hives or bee supplies.</Prohibitions><Restrictions>Coins; banknotes; currency notes; securities payable to bearer; traveler's checks; gold, silver, platinum, manufactured or not; jewelry; and other valuable articles may be sent only in registered items.
Exceptions:
Coins sent to or from collectors or dealers may be mailed in ordinary (uninsured) parcels.
Drugs and medicines must comply with Canadian law.
Eggs for hatching must be packed in new, clean containers and accompanied by a certificate issued by a veterinarian of the U.S. Department of Agriculture, or one issued by a State veterinarian and endorsed by a veterinarian of that Bureau, stating that to the best of his or her knowledge the eggs come from a flock that is free from Newcastle disease, fowl pest, or fowl typhoid. See 135.3 for method of packing.
Meat and meat food products must be accompanied by an export certificate issued by the U.S. Department of Agriculture and labeled in accordance with Canadian regulations. Exception to these requirements are:
1. bona fide sample shipments weighing less than 10 kg;
2. meat products addressed to a government department or agency;
3. meat products intended for personal consumption when they enter Canada in the possession of the importer.
Precious stones, set or not set; all items used as dress ornaments and coming under the term "jewelry" including articles of gold or other precious metal for personal use such as cigarette holders, cases, powder cases, card cases, opera glasses, fountain pens, watches, etc., are permitted in insured parcels provided the articles have value not over $5 U.S. A parcel containing a number of such articles valued at $5 or less may be insured for the total value of the contents up to a maximum of $200.
Veterinary biological products including serums and vaccines must be accompanied by a permit issued by the Veterinary Director General, Ministry of Agriculture of Canada.</Restrictions><Observations>1. Banknotes valued at $100 or more must be put up in a compact package and securely tied with strong twine before wrapping. The wrapper must be linen or other strong, woven material, linen lined paper, or two thicknesses of strong kraft paper. After wrapping, the package must be again securely tied or stitched and sealed at the points of closing.
2. The name of the Canadian province in which the office of destination is located must appear as part of the address.
3. The following must not be accepted for insurance:
Bees, postage stamps (canceled and uncanceled) and albums in which they are mounted, and parcels addressed to CFPOs.
4. Canadian Forces Mail (CFPO) is processed through Canadian military post offices and must be addressed in the following manner:
(a) NUMBER, RANK, NAME UNIT
(b) CFPO (NUMBER)
(c) BELLEVILLE ON K0K 3R0
(d) CANADA
Maximum weight limits for mail addressed to members of the Canadian Forces based outside of Canada (CFPO) is 22 pounds. Parcels for CFPO addresses may not be insured. Direct sacks of printed matter (M-bags) are not permitted for CFPO addresses.
5. A letter fully prepaid and bearing the same address as that of a parcel may be tied or otherwise securely attached to the outside of the parcel. Stamps to cover postage on the parcel must be affixed to the wrapper of the parcel. Stamps to pay postage on the letter must be affixed to the envelope thereof.
6. Certain types of merchandise must be marked to show country of origin in the manner prescribed by the Canadian customs regulations.
7. Goods valued under 20 Canadian dollars are duty and excise tax exempt. Goods over 20 Canadian dollars will be subject to the applicable duties and excise taxes. Gift shipments received by mail that are valued under 60 Canadian dollars are duty and excise tax exempt.
8. For all casual and commercial items valued under 1,600 Canadian dollars, Canada Post will collect the assessed duties and excise taxes and a handling fee of 5 Canadian dollars from the addressee. For Express Mail International items, the handling fee is 8 Canadian dollars. All commercial mail items over 1,600 Canadian dollars will be held by Canada Customs and Excise until proper invoice and accounting documentation is provided by the addressee.
9. The Canada Customs Invoice can be obtained from stationery, office supply, or printing companies. If mailers are unable to obtain the Canada Customs Invoice locally, they should visit the following Web site: www.canadapost.ca. In addition, commercial invoices are acceptable provided that each invoice has the required information for customs purposes.
10. Information on Canadian customs regulations may be obtained from the Office of International Marketing/223, Bureau of International Commerce, Department of Commerce, Washington, DC 20230, or any field office of that Department.
Obtaining post code information:
11. Information on Canadian post code directories can be obtained from:
(a) NATIONAL PHILATELIC CENTER
CANADA POST CORPORATION
STATION 1
ANTIGONISH NS B2G 2R8
Telephone: 1-800-565-4362
Fax: 1-902-863-6796
(b) To obtain Canadian post codes for specific addresses, call the General Information line at 1-416-979-8822 or access the Canada Post Corporation web site on the Internet at http://www.canadapost.ca.
12. Pursuant to the Canada Customs Act and a need to heighten border security, Canada will deny entry of all postal items (except postcards) that do not bear complete sender and addressee information in roman letters and arabic numerals. </Observations><CustomsForms>First-Class Mail International items and Priority Mail International Flat Rate Envelopes and Small Flat Rate Boxes:
PS Form 2976 (see 123.61)
Priority Mail International parcels:
PS Form 2976-A inside 2976-E (envelope)</CustomsForms><ExpressMail>Country Code:
CA

Reciprocal Service Name:
There is no reciprocal service.

Required Customs Form/Endorsement
1. Business papers and commercial documents.
PS Form 2976, Customs - CN 22 and Sender's Declaration.
 
2. Merchandise samples and gift shipments (non-commercial parcels).
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.
 
3. Merchandise (commercial shipments) and all articles subject to customs duty.
PS Form 2976-A, Customs Declaration and Dispatch Note CP 72, inside a PS Form 2976-E, Customs Declaration Envelope CP 91.
 


Notes:
1. Gift shipments (non-commercial parcels) require a sales receipt, invoice or other documentation to support the declared value.
2. Coins; banknotes; currency notes, including paper money; securities of any kind payable to bearer; traveler's checks; platinum, gold, and silver; precious stones; jewelry; watches; and other valuable articles are prohibited in Express Mail International shipments to Canada.
3. Express Mail shipments may have a street address or a post office box address. A local telephone number for the addressee MUST be provided for shipments addressed to a post office box address. A local telephone number for the addressee should be provided if possible for shipments to a street address.

Areas Served: All</ExpressMail><AreasServed>Please reference Express Mail for Areas Served.</AreasServed><AdditionalRestrictions>No Additional Restrictions Data found.</AdditionalRestrictions><Service ID="12"><Pounds>67</Pounds><Ounces>4</Ounces><Machinable>FALSE</Machinable><MailType>Package</MailType><Container>RECTANGULAR</Container><Size>REGULAR</Size><Width>0</Width><Length>0</Length><Height>0</Height><Girth>0</Girth><Country>CANADA</Country><Postage>307.10</Postage><ExtraServices><ExtraService><ServiceID>1</ServiceID><ServiceName>Insurance</ServiceName><Available>True</Available><Price>0.00</Price></ExtraService></ExtraServices><ValueOfContents>67.20</ValueOfContents><SvcCommitments>1 - 3 business days</SvcCommitments><SvcDescription>USPS GXG&lt;sup&gt;&amp;trade;&lt;/sup&gt; Envelopes**</SvcDescription><MaxDimensions>USPS-Produced regular size cardboard envelope (12-1/2" x 9-1/2"), the legal-sized cardboard envelope (15" x 9-1/2") and the GXG Tyvek envelope (15-1/2" x 12-1/2")</MaxDimensions><MaxWeight>70</MaxWeight></Service></Package></IntlRateV2Response>

Please, I need help :)
As the result I have following notice: "We were unable to obtain any USPS shipping rates at this time."
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on April 19, 2012, 14:52:22 pm
Hi,
The USPS API is only returning a rate for envelope level services, which obviously cannot accommodate a 67 lb item (the API is not very smart, is it?).  You should check the USPS shipping guide to determine if you can ship your package to Canada or not.  If you can, you may want to approach USPS as to why the API is not returning a valid rate.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Forrest on May 25, 2012, 19:34:24 pm
There is an issue with domestic/international shipping (in uspsv4, have not checked v5), when the Vendor is always outside of country (ship from addy). The code is just checking ship TO for US/PR/VI addy, not ship from as well. A store in Canada was having issues because of this. Just check the Vendor addy as well before chosing XML sript to send ( please see my previous post under http://forum.virtuemart.net/index.php?topic=58445.0)
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: caseyzman on June 06, 2012, 22:32:58 pm
Hello,
I am using "vm1.1.x-uspsv5.2011-02-09-basic.zip" and all works great on my localhost as well as on my testing servers (at godaddy) however, when I go to publish the live site to my clients hosting account (on iPage Hosting),  I get the "Notice: We are unable to ship via USPS at this time. System Error." Everything seems fine in debug until after the XML results, i get:

Debug: Package::query_rates() - Rate query returned null results.
Debug: Shipment::populate() - query_rates() failed.
Debug: uspsv5::list_rates() - shipment->populate() failed!

Like I said, all works great on my godaddy account, the problem seems to be somewhere within the hosting(maybe  php version or something, IDK), but they are of course lacking in any type of assistance. And while I really appreciate the USPS module, and usually try to avoid bothering the creators of free modules with questions, I really can't seem to find a solution.

and some sever info if it helps:
iPage hosting

CGI:
    Active
Platform Type:
    Debian
MySQL Version:
    5.0.91-log
Perl Version:
    5.8.8
PHP Version:
    5.2.12
Path to Perl:
    /usr/bin/perl
Path to PHP:
    /usr/local/bin/php
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 06, 2012, 22:39:09 pm
Hi,
Be sure to log in as an administrator with VirtueMart debug mode ON.  This will give you a ton more info!  Also, be aware that rate caching may kick in, so log out and back in to view the actual request and reply sent to and received from the USPS API.

Reggie
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: caseyzman on June 06, 2012, 22:47:51 pm
Hello,
Thanks for the quick reply, below is the extended info if it helps:

Debug: Starting Shipping module: uspsv5
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 29 (test pac 1) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.337875
Debug: Package::addItem() - ***** Adding item 29 (test pac 1) to package #1 *****
Debug: Package::addItem() - Package weight is now: 0.67575
Debug: Package::query_rates() - Querying for Source: US/67218 , Destination: US/67217, Weight: 0.67575, Value: 49.98
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.

XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="HIDDEN" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>67218</ZipOrigination><ZipDestination>67217</ZipDestination><Pounds>0</Pounds><Ounces>11</Ounces><Container /><Size>REGULAR</Size><Machinable>FALSE</Machinable>   </Package></RateV4Request>
XML Result:
<?xml version="1.0"?>
<RateV4Response><Package ID="0"><ZipOrigination>67218</ZipOrigination><ZipDestination>67217</ZipDestination><Pounds>0</Pounds><Ounces>11</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>14.95</Rate></Postage><Postage CLASSID="2"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Hold For Pickup</MailService><Rate>14.95</Rate></Postage><Postage CLASSID="23"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery</MailService><Rate>27.45</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="57"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Boxes</MailService><Rate>52.45</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="25"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Flat Rate Envelope</MailService><Rate>31.45</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="32"><MailService>Express Mail&lt;sup&gt;&amp;reg;&lt;/sup&gt; Sunday/Holiday Delivery Legal Flat Rate Envelope</MailService><Rate>31.45</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>3.31</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>

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 again in advance!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 06, 2012, 23:11:18 pm
Did you select some services to offer in the module config?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: caseyzman on June 06, 2012, 23:25:02 pm
Yeah, thats another thing. I'll set the services to offer and when I hit save, it sometimes flashes the default selections and I'll have to hit save again to get it to accept the changes. I thought this was strange, so I downloaded the "uspsv5.cfg.php" to check, and my settings are in there correct. So I'm not sure, either way my selections or the default selections should register I would think.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: caseyzman on June 06, 2012, 23:38:56 pm
Ok, its even stranger than i thought, I'll hit save in the module configuration, and it resets all feilds to default, I hit save again and all feilds now have my selection, I hit save for a third time and the selections are back to the defaults. It just keeps switching back and forth when i hit save. Driving me crazy  ???
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 06, 2012, 23:58:00 pm
It's a virtuemart bug.  Save the config, go completely out of the shipping module page (go somewhere else in the store config) then go back.  The settings should be correct.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: caseyzman on June 07, 2012, 00:40:09 am
Yep, all is where it should be when I navigate away and come back to the config. Any ideas on why its working on one hosting and not the other? I matched the php.ini files. Not sure where else to look? I mean it looks like the rates are being processed properly in the XML results, they just aren't being posted, and debug picks up at "query_rates" with null results. Thanks again for your help, I understand alot of these types of issues can be quite unique.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on June 07, 2012, 01:10:12 am
Which services did you select?
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: caseyzman on June 07, 2012, 18:42:26 pm
Well, I've tried it multiple ways, first I left the defaults selected, then I tried the basics (just priority and expres), then I tried all. No-go on any of these configurations.
-Thanks
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on July 31, 2012, 16:47:06 pm
**** UPDATE ****

vm119-lowmips.2011.08.22 public release
Includes UPSv2, USPSv5, and FedExv2, all ported to vm119 code.
Download from my website, under "Free Software", "Shipping", then "Other" (http://www.lowmips.com/joomla/free-software/category/7-other).
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: arueder on August 03, 2012, 21:48:35 pm
Im having a problem with USPS v5 for 1.1.9.

Everything works fine when using a domestic address. Once I use an international address with both UPS and USPS activated, I get a table appearing above where you select your shipping options. It removes UPS (which i would expect) but replaces it with this table with a choice of USPS $0.00 that you can select (see attached image).

[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: arueder on August 03, 2012, 21:52:42 pm
When I disable the UPS v2 module, everything is fine (again, using a foreign address)(see image).

Also, when selecting the "Ground shipping only" option, and setting the config to show the image on the flypage for ground shipping only, no image is displayed.

[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 03, 2012, 22:06:04 pm
Hi,
This means some error is occurring, and you have the "show standard shipping module on error" option enabled.  Try using VirtueMart debug mode to get more info about the error.

Reggie

Im having a problem with USPS v5 for 1.1.9.

Everything works fine when using a domestic address. Once I use an international address with both UPS and USPS activated, I get a table appearing above where you select your shipping options. It removes UPS (which i would expect) but replaces it with this table with a choice of USPS $0.00 that you can select (see attached image).
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: arueder on August 03, 2012, 22:10:20 pm
WOW! what a fast reply! You are correct. I had the "show .... on error" option set to yes. That problem is now solved thank you!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: arueder on August 03, 2012, 22:12:33 pm
Do you happen to know of a reason UPS Ground is not showing a transit time (see image)?

[attachment cleanup by admin]
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 03, 2012, 22:26:08 pm
UPS Ground never shows transit time

-R
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: arueder on August 03, 2012, 22:33:05 pm
Ah understood. Thank you!!!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Ribbit21 on August 10, 2012, 23:29:39 pm
Just installed your newest bundle.  I have VM 1.1.9 and Joomla 1.5.26

I am getting the following errors when trying to save products.  The errors are all on the Product Status page.

Debug: VM_PRODUCT_INVALID_ATTRIBUTE_PROPERTY is missing in language file.
Debug: VM_PRODUCT_FORM_ADDON_LBL is missing in language file.
Debug: VM_PRODUCT_FORM_ADDON_MAX_LBL is missing in language file.
Debug: VM_PRODUCT_FORM_ADDON_MAX_PER_LBL is missing in language file.
 Debug: VM_PRODUCT_FORM_ADDON_MAX_PER_ORDER is missing in language file.
Debug: VM_PRODUCT_FORM_ADDON_MAX_PER_MAIN is missing in language file.
Debug: VM_PRODUCT_FORM_ADDON_MAX_PER_SELECTED_PROD is missing in language file.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 11, 2012, 14:24:05 pm
Did all the language files get uploaded? check that first.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: Ribbit21 on August 12, 2012, 01:05:53 am
I re-downloaded the file and re-uploaded everything.  Something must have gotten corrupted during my last download.  It works fine now.  Thanks!
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: commonangle on August 15, 2012, 16:55:03 pm
Getting error message when order is over 70 lbs.
Using VM 1.1.9 - J 1.5.26
Shipping options are set for Priority Mail only for both domestic and international shipping.

One product in the cart that exceeds 70 lbs

Debug: Starting Shipping module: uspsv5
Debug: uspsv5::__construct() - Starting module version 5.2011.08.22
Debug: uspsv5::list_rates() - Starting
Debug: Shipment::populate() - addItem failed for pid 52
Debug: uspsv5::list_rates() - shipment->populate() failed!
Notice: We are unable to ship via USPS at this time. System Error.

Two products in the cart - each is 50 lbs so total with padding is 102 lbs
Debug: Starting Shipping module: uspsv5
Debug: uspsv5::__construct() - Starting module version 5.2011.08.22
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 71 (McIntosh Amp Preamplifier Processor CD Player modifications) to package #1 *****
Debug: Package::addItem() - Package weight is now: 51 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::addItem() - ***** Adding item 71 (McIntosh Amp Preamplifier Processor CD Player modifications) to package #1 *****
Debug: Package::addItem() - Package weight is now: 102 LBS
Debug: Package::addItem() - WARNING - product dimensions assumed to be INCHES
Debug: Package::query_rates() - Querying for Source: US/49740 , Destination: US/49770, Weight: 102, Value: 2998
Debug: uspsv5::get_rates_array() - forcing package size to LARGE due to large dimensions.
Debug: uspsv5::get_rates_array() - Calculating domestic shipping.

Debug: XML Post:
http://Production.ShippingAPIs.com/ShippingAPI.dll?API=RateV4&XML=<RateV4Request USERID="425THEUP1801" ><Revision /><Package ID="0"><Service>All</Service><ZipOrigination>49740</ZipOrigination><ZipDestination>49770</ZipDestination><Pounds>102</Pounds><Ounces>0</Ounces><Container>RECTANGULAR</Container><Size>LARGE</Size><Width>24</Width><Length>26</Length><Height>12</Height>

XML Result:
Error: USPS was not able to process the Shipping Rate Request
Error Code: -2147219499
Error Description: Warning - The package weight cannot exceed 70 pounds.
Title: Re: USPS v5 - Bundled and Unbundled shipping
Post by: lowmips on August 15, 2012, 17:22:19 pm
The first error is expected - USPS cannot handle packages > 70lbs over the API.

The second error is an old bug.  Open class.Package.php, find the hasRoom() function, and change this line:

Code: [Select]
if (  $padded_weight >= $this->maxWeight) {to this:
Code: [Select]
if ( ($this->weight + $padded_weight) >= $this->maxWeight) {