Good to hear, are you having any other issues with it.. cause once I got that working, I ran into all SORTS of wierd issues with the USPS stuff that I will drop here for documentation sake and hopefully help any other people if they get the issues.
I have found a couple of errors that I have submitted using the bug tracker. There looks to be an error in the way CubeCart is sending the XML sheet to USPS when you have more then one USPS shipping type available. [From what I see, it looks like the XML datasheet is closing itself out too quickly.]
Anyways, here is what I found
QUOTE
Request XML:
--------------------------------------------------------------------------------
<RateV2Request USERID="XXXXXXX" PASSWORD="XXXXXXX"><Package ID="0"><Service>EXPRESS</Service><ZipOrigination>76201</ZipOrigination>
<ZipDestination>76201</ZipDestination><Pounds>2</Pounds>
<Ounces>0</Ounces><Container>Flat Rate Envelope</Container>
<Size>Regular</Size></Package></RateV2Request>
<Package ID="1"><Service>PRIORITY</Service>
<ZipOrigination>76201</ZipOrigination><ZipDestination>76201</ZipDestination><Pounds>2</Pounds><Ounces>0</Ounces>
<Container>Flat Rate Box</Container><Size>Regular</Size></Package>
</RateV2Request>
--------------------------------------------------------------------------------
Return XML:
--------------------------------------------------------------------------------
<?xml version="1.0"?>
<Error><Number>-2147219093</Number><Source>GetXML;SolServerRates.RateV2Respond</Source><Description>-2147219093Only one top level element is allowed in an XML document.
</Description><HelpFile></HelpFile><HelpContext>1000440</HelpContext></Error>
This happens if you are offering more then one shipping level on USPS. If you look at the XML send, you can see that </RateV2Request> is being sent twice without reopening it. Thus the XML data sheet errors out on the USPS side.
You may also get this error when trying to use Parcel Post in the USPS Module.
CODE
One of the following variables was empty. service = 'PARCEL', ziporigin = '76201', zipdest = '', pounds = '2', size = 'REGULAR'
On line 130 there is this entry in calc.php in the USPS Package
'zipdest' => $$zipdest,
By changing it to this fixes the problem
'zipdest' => $zip_dest,
PS - As a side note, due to the amount of time the USPS Module takes to actually fetch it's rates [I assume this is a USPS issue], is it possible that cube cart could display a screen that simply says "Please wait while we calculate the shipping options available for your order"?
~k1