For some reason the cart never returns the shipping quote back to me, I have the debug turned on and when going to another page the SOAP response and request are showing up just fine at the top of the page in green.

When the shipments error out I the progress bar disappears and displays an empty box, but when there is a valid soap response, the progress bar just stays.

I've attached a copy of my soap request and response with account number etc xxx'd out.

This is with the WEEKDAY_DELIVERY default option removed from the module's code in both of the first two instances.

CommentFileSizeAuthor
tessite.txt21.42 KBworldcoast

Comments

tr’s picture

Because the SOAP request is successful, I think it's unlikely that the problem is with this module (not impossible, just not the most likely suspect at this time). The progress bar on the checkout page will spin while the uc_quote JavaScript makes an AJAX request for quotes and waits for the response back from web server. So the first thing you should do is try shipping quotes with just one Flat Rate enabled (flat rate methods are computed locally on the web server and do not connect to another host to obtain a quote, like FedEx does). If the flat rate exhibits the same behavior, you know you have bigger problems. Likewise, try it with JUST FedEx enabled, no other methods. The progress bar will spin until *all* the quote methods have finished, so if one of them is holding things up then you will never get a response, even if FedEx succeeds in getting a quote.

I think the most likely problem is a JavaScript problem - things like jQuery Update occasionally interfere with the proper execution of the uc_quote and other JavaScript on the checkout page. Use the Firebug console on the checkout page to examine the AJAX request/response and to look for JavaScript errors on the page. I can take a look at the checkout page for you if you PM me a link to your site.

worldcoast’s picture

first thing to try - flat rate

Enabled flat rate quote, disabled fedex quote

Nothing seemed to be working at all even though flat rate was disabled before, so I went through made sure every module was up to date, nothing working! gah!

I created a new "flat rate" quote type and suddenly it's working although the default flat rate of "shipping" wasn't showing up anywhere.

Suddenly everything works (with the weekday_delivery option disabled of course)

Huzzah!

Must have been some weird database error, thanks for your help.

In firebug there just wasn't any response being delivered by the ajax.

tr’s picture

Perhaps a cache issue then...

So can this issue be marked as fixed/closed?

worldcoast’s picture

Okay I found the problem after playing with every setting.

I'm trying to return the discounted account prices and it will only return list prices. Returning discounted account prices stalls out. I guess reinstalling the fedex module makes it default to List Prices, so in essence the Discount Account Prices isn't working for me :)

tr’s picture

Try changing this:

        // ACCOUNT quotes return only ACCOUNT rates
        $ratedetail = $options->RatedShipmentDetails[0];

To this:

        // ACCOUNT quotes may return either ACCOUNT rates only OR
        // ACCOUNT rates and LIST rates.  Check.
        if (is_array($options->RatedShipmentDetails)) {
          $ratedetail = $options->RatedShipmentDetails[0];
        }
        else {
          $ratedetail = $options->RatedShipmentDetails;
        }
worldcoast’s picture

with that change it works.

I'd make a patch file but I don't know how!

tr’s picture

Fixed in 6.x-1.x-dev. 6.x-2.x-dev has always had this bit of code.

worldcoast’s picture

Status: Active » Closed (fixed)