5 replies [Last post]
mimetic2's picture
Offline
Joined: 08/07/2007
Juice: 478
Was this information Helpful?

Ok so I have an upgraded installation of Ubercart 8. And everything works fine except the shipping quotes dont work. Not even watchdog shows up. It just comes up as blank.

So i installed a fresh ubercart and it works? It used to work in 7e and i dont understand why its not working. I have workflow and all the required modules.

Anyone have any ideas? I can give a L/P if that will help.

Any suggestions would be very helpful.

jorditr's picture
Offline
Getting busy with the Ubercode.
Joined: 10/31/2007
Juice: 256
Re: Shipping Quotes not working on old site but they do on new s

Hi mimentic2. Considering that it worked previously and now it's not working and that workflow-ng has been adopted, I suspect after looking at the code that it's something related with workflow-ng and the way it's managing actions. It doesn't look an easy module (code) to me and I haven't understood what exactly is not working, if not proper actions have been declared, to verify that suspiction.

mimetic2's picture
Offline
Joined: 08/07/2007
Juice: 478
Re: Re: Shipping Quotes not working on old site but they do on n

I actually dont know if it ever worked. Before i used flatrate and I never used ups or USPS.

SO i dont think its worflow-ng.

So that brings me to my next question, is it possible to import products, and order history from an old version of ubercart to a new one? On a clean install? I tried to install migrate all the informationover and it's still not working so I am completely stumped and the tables are different from the old one and the new one.

Can anyone help? I'll Pay! heh im stumped =/

-Aaron

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: Re: Re: Shipping Quotes not working on old site but they do

Some things to check for shipping quotes:

  1. Is your USPS account number entered?
  2. Is your Store address set?
  3. If you're using the devel module, is it turned off?
  4. Did you enable the debug information in admin/store/settings/quotes/edit ?

If it's one of these please let us know - this should probably be a FAQ!

As far as using the old database on a clean install, you should be able to just copy over the database then do an update.php. If you copy the database first then install Drupal and try to run the install script it will tell you it's already installed, so all you have to do is the update, which should rebuild any tables that have changed between the old version and new version.

<tr>.
mimetic2's picture
Offline
Joined: 08/07/2007
Juice: 478
TR-

TR-

Both ahve the saem exact store settings. All these things are working. I used the update.php. It works in my other drupal installs i just dont see why its not working on these =/.

EDIT: when i try to click "show XML error" or "put error into watchdog" it still comes up as empty and i dont get an XML output nor do i get an error in watchdog.

EDIT #2: I unsinstalled al the tables (shipping, shipping quotes, flatrate, ups, etc) and then reinstalled and it still didng work =/

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: TR-

Well, then I guess it's time to dive deep and see exactly what is being sent and returned.

First, try entering a USPS rate request by hand in your browser as I describe at: http://www.ubercart.org/forum/support/1756/usps_webtools

If that doesn't work, you won't get anywhere with Ubercart USPS shipping quotes! This is going to confirm that your developer credentials are correct and provide an example of what you should be seeing for both the request and the response.

If that does work, go ahead and add these lines in uc_usps.module:
Replace:

  $result = drupal_http_request($connection_url, array(), 'POST', $request);

by:

  drupal_set_message('<pre>' . check_plain(var_export($request, true)) . '</pre>');
  $result = drupal_http_request($connection_url, array(), 'POST', $request);
  drupal_set_message('<pre>' . check_plain(var_export($response, true)) . '</pre>');

Then try to check out. After you click "Calculate Shipping", watch the progress bar spin for a little while then click on one of the navigation links in the sidebar - when a new page comes up you will see the messages at the top with the complete request/response. Read through the request to make sure your developer credentials are being passed, and your store zip is showing up, and the destination zip, etc. Then examine the response to see what is being returned. This should help you pinpoint where the error lies.

<tr>.