uc_fedex?

Posts: 104
Joined: 09/07/2007
Uber Donor

Greetings,

In two places:

http://www.ubercart.org/shipping
http://www.ubercart.org/docs/user/295/installing_ubercart_modules

I see clear mentions of support for Fedex, but yet there is no uc_fedex module in the Ubercart pacakge I downloaded. Am I missing something?

Thanks!

jimi

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Aye, that's why we need to do another release. Sticking out tongue

I thought we'd be able to push one out today, but I haven't been able to do any clean install testing. The FedEx module has been added to our code repository and will be in the next released version on Drupal.org.

Posts: 99
Joined: 08/08/2007
Getting busy with the Ubercode.Not Kulvik

might I add that it works pretty well too! you can grab it now from the Bazaar

Posts: 104
Joined: 09/07/2007
Uber Donor

Thanks guys!

Ryan - does that mean the new release is forthcoming in a matter of days? Because I can wait that long to test, but not much longer.

I haven't done the Bazaar thing - do I need some special software to download from it? It wasn't particularly straightforward on first glance.

Thanks again.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Yeah, we were hoping to put out Alpha 7c from the current code this evening but just couldn't make it happen. I expect to do it early next week, I'm just in the middle of redesigning the checkout pane API. Look for it late Monday or Tuesday.

Posts: 99
Joined: 08/08/2007
Getting busy with the Ubercode.Not Kulvik

there are two ways to access the Bazaar content:

1) use the Bazaar application -- get more info here: http://www.ubercart.org/bazaar
2) go straight to the bazaar repo itself via a web browser: http://bazaar.ubercart.org/ubercart/alpha/ubercart/
*note: the potx* files have to do with bazaar and not ubercart, don't download them.

subnote: if you want to get an update of all the modules, its best to use the bzr checkout application. If you're looking for a particular module and only need a few files, then the web index method should work fine.

Posts: 104
Joined: 09/07/2007
Uber Donor

Thanks guys! Almost up and running.

Now it's saying it can't find my account # - but I know that one works because I had it working in a Zen Cart (shudder) configuration recently. Hmm..........

Posts: 104
Joined: 09/07/2007
Uber Donor

Is it possible this has to do with it being in testing mode? For some reason I can't switch it into production mode like I can with USPS (which, incidentally, I also haven't got working yet).

Posts: 104
Joined: 09/07/2007
Uber Donor

Okay - update:

I got it into production mode by doing some hacking of uc_fedex.module. This validated my account number correctly and got me a meter number. However, I'm still not receiving quotes. Any thoughts?

Posts: 104
Joined: 09/07/2007
Uber Donor

I've been messing around with uc_fedex some more and still can't seem to get it to work.

I changed some settings in the uc_fedex.module in order to get production mode an option along with test mode. Switching it to production mode obviously connected it with a server because my fedex account # was validated and it got a meter #.

Looking at uc_fedex.module, I don't see anywhere the production server is defined - only the testing server.

I'm not receiving any quotes.

Any ideas? I know it's the weekend so lots of folks aren't around. I'd like to be helpful in getting this working for the whole community and would be willing to offer up a bounty if it comes to that.

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

If I'm remembering correctly, there was some extra validation and testing that FedEx wanted to do before they would give me a production URL. Since I didn't know what it was, I didn't put it into the module. Also, since we're not using FedEx in house, it stopped being a priority.

If anybody is willing to figure out how to get this working, I think that would be awesome. I just have too much other stuff to do right now.

Posts: 104
Joined: 09/07/2007
Uber Donor

Understood. Thanks for your reply Lyle.

I have a production URL that was included in a Zen Cart fedex module that I had working that I could plug in if I knew where to do so without screwing it up. I tried to put in a few places that looked appropriate but didn't get anywhere.

japerry, do you have any helpful hints since you seem to have got it working yourself?

ETA: I'd be more than happy to be the pointman to help get this working for everyone - just might need a little guidance since I'm more of a codehacker than a real coder Eye-wink

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

I have fedex running on my store.., though i have made a lot of changes (and complications.. for handling packaging).

I have the production URL and seems to be a little of issue as for now ,

I really dont have the time to get this module out as a package, but if someone wanna play and remove unnecessary stuff i have i can send it over. (I have lot of packaging stuff in it).

Regards
cosmo83

http://www.vingowine.com

Posts: 104
Joined: 09/07/2007
Uber Donor

Hi Cosmo - I'd love to take a look if you'd be willing to send it over. I'll send you my email address as a PM.

Thanks!

Posts: 104
Joined: 09/07/2007
Uber Donor

Progress (kind of): instead of spinning and spinning, the bar now disappears and leaves nothing in the quote space.

I have FireBug but have no idea how to parse the errors it produces (any help there?).

When I went to review the order after not getting a quote, it said: Error calculating shipping: $0.00

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

You have to include a lot of drupal_set_messages to get the debug working fine..

Laughing out loud:D

http://www.vingowine.com

Posts: 104
Joined: 09/07/2007
Uber Donor

I think I found it:

getTax is not defined
sites/all/modules/ubercart/uc_quote/uc_quote.js
Line 136

Any ideas?

Thanks.

Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Enable the tax module but don't set any tax rules. This is a known bug, sorry it's been bothering you. Sad

Posts: 104
Joined: 09/07/2007
Uber Donor

Not a problem! Thanks for the tip. As an aside, does this mean I can't charge tax?

With that out of the way, I'm getting a brand new XML error from FedEx...really making some progress now!

2106
org.xml.sax.SAXParseException: Datatype error: In element 'SignatureOption' : Value '' must be one of [NONE, DELIVERWITHOUTSIGNATURE, INDIRECT, DIRECT, ADULT].

This one is puzzling because I don't see anywhere to set this option, in the code or in the settings. This one might take a while.

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

<?php
$schema
.= '<SignatureOption>'. $signature_option .'</SignatureOption>';
?>

Check this line. Generally the signature_option shd be achieved thru some variable_get methods like
<?php
$signature_option
= variable_get('uc_fedexvingo_signature','ADULT');
?>

PS: And there i loose my juice..

http://www.vingowine.com

Posts: 104
Joined: 09/07/2007
Uber Donor

Thanks Vingo...onward to the next error:

org.xml.sax.SAXParseException: The content of element type "FDXRateRequest" must match "(RequestHeader,ReturnShipmentIndicator?,ShipDate?,DropoffType?,Service,Packaging,WeightUnits,Weight,ListRate?,OriginAddress,DestinationAddress,Payment,Dimensions?,DeclaredValue?,SpecialServices?,HomeDelivery?,PackageCount,VariableHandlingCharges?,International?,##any*)".

The strange thing is that your code matches mine very closely other than a few things that shouldn't affect this in this section...perplexing thus far.

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

I need to know which code u r working on ??

This is the tricky part.. Fedex stupidly doesnt tell where Iam doing the mistake..

Can you send it to me .. I will also nail this out today ...

http://www.vingowine.com

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

I have the uc_fedex module, running on my test site.

Please backup ur DB
remove any uc_fedex tables in the Database before u do anything.

This thing doesnt work in the cart page(See screenshots), because fedex needs more than just the zip code to get the quotes . (You need to disable this pane) or u need to use the location module (find the city) and then send the details.

http://www.vingowine.com

AttachmentSize
Screenshot-3.png102.94 KB
Screenshot-2.png146.25 KB
uc_fedex.tar.gz8.36 KB
Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

SOrry wrong file attached

http://www.vingowine.com

AttachmentSize
uc_fedex.tar.gz8.32 KB
Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

Havent checked a small bug in the previous package.. Here it goes again...

PS: Iam grabbing my juice back .. Laughing out loud

http://www.vingowine.com

AttachmentSize
uc_fedex.tar.gz8.29 KB
Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

Very nice work, cosmo. I'm going to look into folding this into the core module. If you want, I can give credit to you in the source.

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

Well half of the work was done by you guys. Just had a couple of changes (Thanks to jim089 store). Assumption was that every store had fax number. So had another small patch and am updating.

Is there a better way to update it in the bazaar ?

I want to shoot in the uc_googlecheckout. This module is heavily interesting, integrating it at level 2. (Lot Of XML API stuff, and ofcourse lot of debugging).

http://www.vingowine.com

AttachmentSize
uc_fedex.tar.gz8.25 KB
Posts: 5269
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I'd say create a contribution here on the site for now until we can get it plugged into the repository. We need to figure out how to get a contribution bazaar repository up and running in the future I imagine.

Posts: 6
Joined: 09/12/2007

I am currently testing/using this module. I ran into a missing function error. _convert_zip_code2() was not in uc_fedex.tar_3.gz. I think I know what you are trying to do here. I've worked around this for now.

Also I could not get to admin/store/settings/quotes/fedex without changing a MENU_DEFAULT_LOCAL_TASK in uc_quote. BTW, I am using code directly from the development repository. This is probably why.

Why is 'Shipper #' disabled in the admin interface? Would you mind explaining the process you went through with FedEx to get setup for testing?

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

Ebter your account number and say what all services you want. Save the fedex properties and then goto Store Administration. You should see something like the following Fedex Services are enabled.

What happens internally is that the meter number is got from the procedure whenevr you click store administration and saved as the meter number.

http://www.vingowine.com

Posts: 6
Joined: 09/12/2007

Thanks! Now I am getting 'Account number not in database' in status messages. I am using the Testing server. Does FedEx need to set me up on the testing server?

Posts: 110
Joined: 08/08/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Not Kulvik

I suggest you use the production, If you have an a/c number.

Getting the account number from FEDEX is a big pain

http://www.vingowine.com

Posts: 6
Joined: 09/12/2007

I switched to Production and everything is working. I found a small error.

In the function _uc_fedex_service_list() 'INTERNATIONALPRIORITY FREIGHT' & 'INTERNATIONALECONOMY FREIGHT' should be 'INTERNATIONALPRIORITYFREIGHT' & 'INTERNATIONALECONOMYFREIGHT' respectively.

Nice work!

Posts: 6
Joined: 09/12/2007

I got cart quotes to work by commenting out the line which adds the StateOrProvinceCode if the Zone is unknown.

function uc_fedex_admin_settings(){

. . .

if(!$destination->zone){
//$schema .= '<StateOrProvinceCode>'. _convert_zip_code2($destination->postal_code) .'</StateOrProvinceCode>';
}
else{
$schema .= '<StateOrProvinceCode>'. $destination->zone .'</StateOrProvinceCode>';
}

. . .

I checked this with:
FedEx Ground -- Office Address
FedEx Ground -- Home Address
FedEx 2nd Day
Standard Overnight
International Economy Freight
International Priority Freight

Posts: 99
Joined: 08/08/2007
Getting busy with the Ubercode.Not Kulvik

wow looks what happens when I'm away from ubercart for a week! anywho, the version on the bazaar was only working in testing version, since we hadn't gone live yet on our site. I'll start putting my brain into it as well and see how it works.