Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: 1 ... 27 28 [29]   Go Down
Print
Author Topic: USPS v5 - Bundled and Unbundled shipping  (Read 62651 times)
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #420 on: April 22, 2011, 09:32:32 AM »

go to:
/administrator/components/com_virtuemart/classes/shipping/uspsv5/class.Package.php. 

On line 167, uncomment the echo line:
Code:
// echo $message.'<br/>;

So it is now like this:
Code:
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.
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
jclawson01
Newbie
*
Posts: 14


« Reply #421 on: April 22, 2011, 22:55:00 PM »

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
« Last Edit: April 24, 2011, 00:01:47 AM by jclawson01 » Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #422 on: April 23, 2011, 07:27:53 AM »

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.
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
jclawson01
Newbie
*
Posts: 14


« Reply #423 on: April 24, 2011, 22:37:36 PM »

the user id is the same as what I login into usps.com with right? or is there a different one that they issue?
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #424 on: April 25, 2011, 07:52:55 AM »

No, it should be the key they give you when you sign up for the API.
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
jclawson01
Newbie
*
Posts: 14


« Reply #425 on: April 28, 2011, 22:49:48 PM »

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
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #426 on: April 29, 2011, 07:22:51 AM »

You're still not seeing the XML reply?
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
jclawson01
Newbie
*
Posts: 14


« Reply #427 on: May 02, 2011, 09:39:09 AM »

I figured out my issue, I missed placing the "/" on the dll file. Thanks for the help
Logged
piperpilot
Newbie
*
Posts: 41


« Reply #428 on: June 06, 2011, 07:56:47 AM »

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:
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.



* USPS International Response.doc (42.5 KB - downloaded 53 times.)
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #429 on: June 06, 2011, 08:21:32 AM »

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
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
piperpilot
Newbie
*
Posts: 41


« Reply #430 on: June 06, 2011, 08:28:19 AM »

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
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #431 on: June 06, 2011, 08:32:17 AM »

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
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
piperpilot
Newbie
*
Posts: 41


« Reply #432 on: June 06, 2011, 08:39:01 AM »

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.
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #433 on: June 06, 2011, 08:41:35 AM »

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. Wink

Good luck!
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
Pages: 1 ... 27 28 [29]   Go Up
Print
Jump to: