close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart 5.0.3 and FedEx Shipping Rates Not Displaying

Thread began 2/16/2012 3:06 pm by jhorrell91285 | Last modified 2/23/2012 12:36 pm by Jason Byrnes | 3278 views | 12 replies |

jhorrell91285

eCart 5.0.3 and FedEx Shipping Rates Not Displaying

I recently started using eCart 5.0.3 and while i have entered by FedEx Account and Meter information, shipping does not calculate. There is no error, it is just that the line for shipping does not appear on my CONFIRM.PHP page.

1.) Is there something simple i am doing wrong?
2.) If i entered my account information wrong, would i get an error?

Thank for any assistance.

Sign in to reply to this post

Jason ByrnesWebAssist

1) No way to tell at this point how simple or complex the problem is.

2) Not necessarily, but we can add code to the confirm page to help us troubleshoot.

on the confirm page, add the following code just before the closing </html> tag:

php:
<?php

@session_start();
     echo 
"<p>FedEX: <br />"
     echo 
"Full Request: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullRequest"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullRequest"]):"n/a")."<br />";  
     echo 
"Full Response: ".(isset($_SESSION["WA_Store_Cart_FedEx_FullResponse"])?htmlentities($_SESSION["WA_Store_Cart_FedEx_FullResponse"]):"n/a")."<br /></p>";  
?>



this will show the request being sent to fedex and the response coming back from them to help us see what may be wrong.

Sign in to reply to this post

jhorrell91285

THANKS for the fast response. i added the code snippet and this is what was returned:

FedEX:
Full Request: n/a
Full Response: n/a

does that help?

Sign in to reply to this post

Jason ByrnesWebAssist

sorry, I forgot to mention that in the code i provided, you will need to change "WA_Store_Cart" with the name of your eCart object.

Sign in to reply to this post

jhorrell91285

FedEx Full Response error

Below is what i received. I see it says invalid account or meter. You can see my account number entered was 4910-9476-1. SHould that be WITHOUT dashes? Also, i did not see a place to enter my meter number.

<?xml version="1.0"?><FDXRateRequest xmlns:api="http://www.fedex.com/fsmapi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FDXRateRequest.xsd"><RequestHeader><AccountNumber>4910-9476-1</AccountNumber><MeterNumber>103675886</MeterNumber><CarrierCode>FDXG</CarrierCode></RequestHeader><ReturnShipmentIndicator>PRINTRETURNLABEL</ReturnShipmentIndicator><Service>FEDEXGROUND</Service><Packaging>YOURPACKAGING</Packaging><WeightUnits>LBS</WeightUnits><Weight>20.0</Weight><OriginAddress><StateOrProvinceCode>TX</StateOrProvinceCode><PostalCode>76426</PostalCode><CountryCode>US</CountryCode></OriginAddress><DestinationAddress><StateOrProvinceCode>TX</StateOrProvinceCode><PostalCode>77498</PostalCode><CountryCode></CountryCode></DestinationAddress><Payment><PayorType>SENDER</PayorType></Payment><Dimensions><Length>2</Length><Width>18</Width><Height>4</Height><Units>IN</Units></Dimensions><DeclaredValue><Value>9.99</Value><CurrencyCode>USD</CurrencyCode></DeclaredValue><PackageCount>1</PackageCount></FDXRateRequest>
Full Response: <?xml version="1.0" encoding="UTF-8"?> <FDXRateReply xsi:noNamespaceSchemaLocation="FDXRateReply.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://com/fedex/ws/transform"> <ReplyHeader/> <Error> <Code>8024</Code> <Message>Invalid account or meter number</Message> </Error> </FDXRateReply>

Sign in to reply to this post

jhorrell91285

I see the meter number

Sorry, i do recall entering the meter number and i see it in the error message

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to contact fed ex to determine why they are rejecting the account and meeter number you entered.

Sign in to reply to this post

jhorrell91285

Good News \ Update

So i went in an took the DASHES out the FedEx account number and no more errors, it actually looked like it calcuated (see below) but it did not create a SHIPPING line on the Order Confirmation page. Did i miss something?



SHOW RESPONSES

FedEX:
Full Request: <?xml version="1.0"?><FDXRateRequest xmlns:api="http://www.fedex.com/fsmapi" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FDXRateRequest.xsd"><RequestHeader><AccountNumber>491094761</AccountNumber><MeterNumber>103675886</MeterNumber><CarrierCode>FDXG</CarrierCode></RequestHeader><ReturnShipmentIndicator>PRINTRETURNLABEL</ReturnShipmentIndicator><Service>FEDEXGROUND</Service><Packaging>YOURPACKAGING</Packaging><WeightUnits>LBS</WeightUnits><Weight>20.0</Weight><OriginAddress><StateOrProvinceCode>TX</StateOrProvinceCode><PostalCode>76426</PostalCode><CountryCode>US</CountryCode></OriginAddress><DestinationAddress><StateOrProvinceCode>TX</StateOrProvinceCode><PostalCode>77498</PostalCode><CountryCode>US</CountryCode></DestinationAddress><Payment><PayorType>SENDER</PayorType></Payment><Dimensions><Length>2</Length><Width>18</Width><Height>4</Height><Units>IN</Units></Dimensions><DeclaredValue><Value>9.99</Value><CurrencyCode>USD</CurrencyCode></DeclaredValue><PackageCount>1</PackageCount></FDXRateRequest>
Full Response: <?xml version="1.0" encoding="UTF-8"?> <FDXRateReply xsi:noNamespaceSchemaLocation="FDXRateReply.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://com/fedex/ws/transform"> <ReplyHeader/> <EstimatedCharges> <DimWeightUsed>false</DimWeightUsed> <CurrencyCode>USD</CurrencyCode> <BilledWeight>20.0</BilledWeight> <DiscountedCharges> <BaseCharge>10.07</BaseCharge> <TotalDiscount>0.00</TotalDiscount> <Surcharges> <DeclaredValue>0.00</DeclaredValue> <Fuel>0.76</Fuel> <ReturnLabel>0.50</ReturnLabel> </Surcharges> <TotalSurcharge>1.26</TotalSurcharge> <NetCharge>11.33</NetCharge> <ShipmentNetCharge>11.33</ShipmentNetCharge> <TotalRebate>0.00</TotalRebate> </DiscountedCharges> </EstimatedCharges> <SignatureOption>NONE</SignatureOption> <IneligibleForMoneyBackGuarantee>false</IneligibleForMoneyBackGuarantee> <Routing> <ServiceCommitment>A2</ServiceCommitment> <TimeInTransit>1</TimeInTransit> <OriginServiceArea>A6</OriginServiceArea> </Routing> </FDXRateReply>

Sign in to reply to this post

Jason ByrnesWebAssist

in the eCart object is there a rule for Fed Ex shipping on the shipping tab to use the rate that is returned?


there should be a rule that is set up as follows:
triggers:
"Based on fedEx shipping quote value"
FedEx shipping quote value is ">" a value of "0"

Calculation:
"Based on fedEx shipping quote value"
FedEx shipping quote "plus" "0"

Sign in to reply to this post

jhorrell91285

Double check my work

I think i do have that set:

ecart1_PHP.php shows the following:

//eCart Rule
function WAEC_eCart1_FEDEXCALC() {
$totalShipping = 0;
if (true && (("FedEx"=="FedEx")&&(isset($_SESSION["eCart1_FedEx_Quote"]))&&(floatval($_SESSION["eCart1_FedEx_Quote"]) > 0))) {
$totalShipping += floatval($_SESSION["eCart1_FedEx_Quote"]) + 0;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...