FedEx module not working on WebFaction?

7 views
Skip to first unread message

kcharvey

unread,
Aug 5, 2009, 6:01:56 PM8/5/09
to Satchmo users
Hello all,

I'm trying to set up the FedEx module on a Satchmo installation to no
avail. I've set up everything according to this page:
http://www.satchmoproject.com/docs/svn/shipping.html?highlight=fedex

In test mode, after entering shipping and billing information, I get
the CC input form but no shipping options. I got shipping options when
I used both flat rate and per item shipping. I've installed the tired
shipping module (but haven't set it up), and still nothing. Anything
else I can check?

Also, I used the search box to search this forum for "fedex" and got
no results. I know there are FedEx related posts. Is the search
function working properly?

Thanks in advance.

Kevin

Chris Moffitt

unread,
Aug 5, 2009, 9:19:03 PM8/5/09
to satchm...@googlegroups.com
Take a look at your satchmo log file and see if you see any errors that might point us to where the problem is.

-Chris

kcharvey

unread,
Aug 6, 2009, 10:53:17 AM8/6/09
to Satchmo users
I've got a few errors in the log file like this one (quoted below). I
saw your post about the abbreviated state name (http://bitbucket.org/
chris1610/satchmo/issue/658/fedex-shipping-module-requires-
abbreviated), but I typed in "TN" for state. We need to be able to
ship to Canada, so what do we need to do? Thanks for your help!

2009-08-05 17:05:16,967 fedex.shipper: DEBUG Starting fedex
calculations
2009-08-05 17:05:16,968 fedex.shipper: DEBUG Calculating fedex with
type=FEDEXGROUND, packaging=YOURPACKAGING
2009-08-05 17:05:16,970 fedex.shipper: DEBUG Using single-box
method for fedex calculations.
2009-08-05 17:05:17,427 fedex.shipper: INFO Fedex Error:
org.xml.sax.SAXParseException: Datatype error: In element
'StateOrProvinceCode' : Value '' does not match regular expression
facet '[A-Z]{2}'.. - Code: 2106
2009-08-05 17:05:17,427 fedex.shipper: DEBUG Fedex request: <?xml
version="1.0" encoding="UTF-8" ?>
<FDXRateRequest xmlns:api="http://www.fedex.com/fsmapi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="FDXRateRequest.xsd"><RequestHeader><AccountNumber>3*******0</
AccountNumber><MeterNumber>1*******9</MeterNumber><CarrierCode>FDXG</
CarrierCode></RequestHeader><Service>FEDEXGROUND</
Service><Packaging>YOURPACKAGING</Packaging><WeightUnits>LBS</
WeightUnits><Weight>0.1</Weight><OriginAddress><StateOrProvinceCode></
StateOrProvinceCode><PostalCode></PostalCode><CountryCode>US</
CountryCode></
OriginAddress><DestinationAddress><StateOrProvinceCode>TN</
StateOrProvinceCode><PostalCode>37215</PostalCode><CountryCode>US</
CountryCode></DestinationAddress><Payment><PayorType>SENDER</
PayorType></Payment><DeclaredValue><Value>150.00</
Value><CurrencyCode>USD</CurrencyCode></DeclaredValue><PackageCount>1</
PackageCount></FDXRateRequest>

2009-08-05 17:05:17,427 fedex.shipper: DEBUG Fedex response: <?xml
version="1.0" encoding="UTF-8"?>
<Error>
<Code>2106</Code>
<Message>org.xml.sax.SAXParseException: Datatype error: In element
'StateOrProvinceCode' : Value '' does not match regular expression
facet '[A-Z]{2}'..</Message>
</Error>

On Aug 5, 8:19 pm, Chris Moffitt <ch...@moffitts.net> wrote:
> Take a look at your satchmo log file and see if you see any errors that
> might point us to where the problem is.
>
> -Chris
>

Zene

unread,
Aug 6, 2009, 11:12:40 AM8/6/09
to Satchmo users
It looks like you don't have a store configuration setup, so the FedEx
module does not know where to ship from. As you can see in your
request XML, it is blank: ...<OriginAddress><StateOrProvinceCode></
StateOrProvinceCode> ... You need to add a store configuration for
your site (admin > Shop > Store Configuration). When you do this make
sure that you add the state as its two digit code, not the spelled out
name, as that is what FedEx expects.

Kevin Harvey

unread,
Aug 6, 2009, 11:17:09 AM8/6/09
to satchm...@googlegroups.com
Oh my god, that's embarrassing. Had it in my dev environment, didn't transfer it to my production. Thanks, and sorry to waste your time.

Kevin
--
Kevin Harvey
Web Developer
615-686-8238
kcha...@gmail.com

kcharvey

unread,
Aug 6, 2009, 11:47:59 AM8/6/09
to Satchmo users
But wait, there's more: I'm only getting a FedEx ground option. I'd
like to offer Standard overnight and 2 day as well. I have them
selected in the Fedex settings under site settings. Here's my new
logfile:

2009-08-06 10:25:27,700 fedex.shipper: DEBUG Fedex response: <?xml
version="1.0" encoding="UTF-8"?><FDXRateReply xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="FDXRateReply.xsd"><ReplyHeader></
ReplyHeader><EstimatedCharges><DimWeightUsed>false</
DimWeightUsed><Oversize>false</Oversize><CurrencyCode>USD</
CurrencyCode><BilledWeight>1.0</BilledWeight><DimWeight>0.0</
DimWeight><DiscountedCharges><BaseCharge>5.36</
BaseCharge><TotalDiscount>0.79</
TotalDiscount><Surcharges><DeclaredValue>1.95</
DeclaredValue><DeliverySignatureOptions>0.00</
DeliverySignatureOptions></Surcharges><TotalSurcharge>2.11</
TotalSurcharge><NetCharge>6.68</NetCharge><ShipmentNetCharge>0.00</
ShipmentNetCharge><EarnedDiscount>0.039999999999999813</
EarnedDiscount></DiscountedCharges><EffectiveNetDiscount>0.00</
EffectiveNetDiscount><OversizeClass>0</OversizeClass></
EstimatedCharges><SignatureOption>NONE</
SignatureOption><Routing><TimeInTransit>4</TimeInTransit></Routing></
FDXRateReply>
2009-08-06 10:25:27,710 l10n.utils : DEBUG setting locale: ('en',
'utf-8')
2009-08-06 10:25:27,944 l10n.utils : DEBUG setting locale: ('en',
'utf-8')
t></Routing></FDXRateReply>
Thu, 06 Aug 2009 10:25:27 l10n.utils DEBUG setting locale: ('en',
'utf-8')
Thu, 06 Aug 2009 10:25:27 l10n.utils DEBUG setting locale: ('en',
'utf-8')
> kchar...@gmail.com

robo

unread,
Sep 9, 2009, 2:33:33 PM9/9/09
to Satchmo users
Hey Harvey,

I'm dealing with the same problem you had. You said you're only
getting the FEDEX Ground option on checkout? Mine only shows "Please
choose your preferred shipping method" but doesn't give any shipping
options to choose from. In the admin, I have FEDEX enabled with valid
account and meter numbers.

Someone also mentioned setting up the store config. I've already done
this and the state is a 2-letter-abbreviation. However, there's
something weird: right under the zip code, there's a "country" field,
but with no text input field for me to enter anything. Then below
that, "Default country for customers" and "Shipping Countries" also
have the same problem. Could this be causing it?

Can anyone help?

Thanks,
Richie

On Aug 6, 8:47 am, kcharvey <kchar...@gmail.com> wrote:
> But wait, there's more: I'm only getting aFedExground option. I'd
> like to offer Standard overnight and 2 day as well. I have them
> selected in theFedexsettings under site settings. Here's my new
> logfile:
>
> 2009-08-06 10:25:27,700fedex.shipper: DEBUG    Fedexresponse: <?xml
> > > > 2009-08-05 17:05:17,427fedex.shipper: DEBUG    Fedexrequest: <?xml
> > > > version="1.0" encoding="UTF-8" ?>
> > > >   <FDXRateRequest xmlns:api="http://www.fedex.com/fsmapi"
> > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
> > > xsi:noNamespaceSchemaLocation="FDXRateRequest.xsd"><RequestHeader><AccountNumber>3*******0</
> > > > AccountNumber><MeterNumber>1*******9</MeterNumber><CarrierCode>FDXG</
> > > > CarrierCode></RequestHeader><Service>FEDEXGROUND</
> > > > Service><Packaging>YOURPACKAGING</Packaging><WeightUnits>LBS</
> > > > WeightUnits><Weight>0.1</Weight><OriginAddress><StateOrProvinceCode></
> > > > StateOrProvinceCode><PostalCode></PostalCode><CountryCode>US</
> > > > CountryCode></
> > > > OriginAddress><DestinationAddress><StateOrProvinceCode>TN</
> > > > StateOrProvinceCode><PostalCode>37215</PostalCode><CountryCode>US</
> > > > CountryCode></DestinationAddress><Payment><PayorType>SENDER</
> > > > PayorType></Payment><DeclaredValue><Value>150.00</
> > > > Value><CurrencyCode>USD</CurrencyCode></DeclaredValue><PackageCount>1</
> > > > PackageCount></FDXRateRequest>
>
> > > > 2009-08-05 17:05:17,427fedex.shipper: DEBUG    Fedexresponse: <?xml
> > > > version="1.0" encoding="UTF-8"?>
> > > > <Error>
> > > > <Code>2106</Code>
> > > > <Message>org.xml.sax.SAXParseException: Datatype error: In element
> > > > 'StateOrProvinceCode' : Value '' does not match regular expression
> > > > facet '[A-Z]{2}'..</Message>
> > > > </Error>
>
> > > > On Aug 5, 8:19 pm, Chris Moffitt <ch...@moffitts.net> wrote:
>
> > > > > Take a look at your satchmo log file and see if you see any errors that
> > > > > might point us to where the problem is.
>
> > > > > -Chris
>
> > > > > On Wed, Aug 5, 2009 at 5:01 PM, kcharvey <kchar...@gmail.com> wrote:
>
> > > > > > Hello all,
>
> > > > > > I'm trying to set up theFedExmodule on a Satchmo installation to no
> > > > > > avail. I've set up everything according to this page:
> > > > > >http://www.satchmoproject.com/docs/svn/shipping.html?highlight=fedex
>
> > > > > > In test mode, after enteringshippingand billing information, I get
> > > > > > the CC input form but noshippingoptions. I gotshippingoptions
> > > when
> > > > > > I used both flat rate and per itemshipping. I've installed the tired
> > > > > >shippingmodule (but haven't set it up), and still nothing. Anything
> > > > > > else I can check?
>
> > > > > > Also, I used the search box to search this forum for "fedex" and got
> > > > > > no results. I know there areFedExrelated posts. Is the search

Bruce Kroeze

unread,
Sep 9, 2009, 2:37:31 PM9/9/09
to satchm...@googlegroups.com
On Wed, Sep 9, 2009 at 11:33 AM, robo <longd...@gmail.com> wrote:
>>
> Someone also mentioned setting up the store config. I've already done
> this and the state is a 2-letter-abbreviation. However, there's
> something weird: right under the zip code, there's a "country" field,
> but with no text input field for me to enter anything. Then below
> that, "Default country for customers" and "Shipping Countries" also
> have the same problem. Could this be causing it?

You need to install the countries and such.

"manage.py satchmo_load_l10n"

--
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

robo

unread,
Sep 9, 2009, 3:20:57 PM9/9/09
to Satchmo users
Thanks Bruce. I have loaded the countries, but there's still nothing
showing up for the fields I mentioned. Any other ideas?

On Sep 9, 11:37 am, Bruce Kroeze <bkro...@gmail.com> wrote:
> On Wed, Sep 9, 2009 at 11:33 AM, robo <longday...@gmail.com> wrote:
>
> > Someone also mentioned setting up the store config. I've already done
> > this and the state is a 2-letter-abbreviation. However, there's
> > something weird: right under the zip code, there's a "country" field,
> > but with no text input field for me to enter anything. Then below
> > that, "Default country for customers" and "Shipping Countries" also
> > have the same problem. Could this be causing it?
>
> You need to install the countries and such.
>
> "manage.py satchmo_load_l10n"
>
> --
> Bruce Kroezehttp://www.ecomsmith.com

robo

unread,
Sep 14, 2009, 4:46:37 PM9/14/09
to Satchmo users
Ok I got it to work. Here's how.

For the FEDEX shipping optiosn to show up, you need the following:
1. The items in your cart must have a weight of at least 0.1 pounds,
this means you need to put the weight amount, and for "Weight units"
you need to put in "LB". FEDEX will calculate the shipping cost based
on these fields before the options can show up.
2. Configure your store's settings under admin->shop->store
configurations, and make sure the store address is filled out. For the
"country" field, mine still doesn't show anything, but the shipping
options are available now.

If you still can't get it working, satchmo.log should give you plenty
of information about what's wrong.

Richie

On Sep 9, 12:20 pm, robo <longday...@gmail.com> wrote:
> Thanks Bruce. I have loaded the countries, but there's still nothing
> showing up for the fields I mentioned. Any other ideas?
>
> On Sep 9, 11:37 am, Bruce Kroeze <bkro...@gmail.com> wrote:
>
> > On Wed, Sep 9, 2009 at 11:33 AM, robo <longday...@gmail.com> wrote:
>
> > > Someone also mentioned setting up the store config. I've already done
> > > this and the state is a 2-letter-abbreviation. However, there's
> > > something weird: right under the zip code, there's a "country" field,
> > > but with no text input field for me to enter anything. Then below
> > > that, "Default country for customers" and "ShippingCountries" also
Reply all
Reply to author
Forward
0 new messages