Order Edit Fails to Function if Shipping Quote Panel Enabled & Ship to is always blank.

Project:Ubercart Contributions
Component:Code
Category:
Priority:critical
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

I have a working site and everything was ok. I just moved everything over to a new / larger server because sales have been good and stability with the old host have not.

In the process, I upgraded to 1.0 RC / RC 5 posted on may 16th and some funky stuff was happening. I then ditched the upgrade and created a new server from scratch from the drupal / ubercart tar on the site. I then imported the images and imported the theme.

Other that the standard ubercart modules, I am also using the uc_cim for authorize.net.

I have enabled both bill to and ship to, but ship to never shows up on any screen but the edit where it is blank.

If ship quotes pane is enabled for the edit page, the page will not retrieve the items on the order and gives me a "javascript error". I have enabled flat rate

Here is the error,

li_titles is not defined
[Break on this error] for (key in li_titles) {
uc_taxes.js (line 52)

I know that you are using it for ajax form retrieval, but how and why? I am lost.

I need to bring up the site this evening or find some other alternative.

Any advice would be greatly appreciated..... I am dying.

Thanks,
David

Version: 
rc
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Order Edit Fails to Function if Shipping Quote Panel Enabled

Not sure man... perhaps you just need to enable the payment module? Seems like a weird interdependency, but I haven't heard of the issue before.

dstrickland's picture
Offline
Joined: 01/14/2008
Juice: 83
I actually figured this one out
Assigned to:Ryan» dstrickland

Sorry for the confusion, I figured this one out.

I used the uc_importer to move products form the old store to the new store. The export / import did not carry the shippable attribute. All the products were made shippable by SQL. The issue when away.

If you have a mix of shippable and non-shippable products, you may see this exact same issue. I believe that this is a defect, but it is very low priority (for me) since all my products are shippable.

Thanks,
David

David Strickland
Delante Solutions

henrrrik@drupal.org's picture
Offline
Joined: 01/03/2009
Juice: 22
li_titles isn't defined in
Assigned to:dstrickland» henrrrik@drupal.org

li_titles isn't defined in uc_taxes.js, only in uc_payment.js. If uc_payment.js isn't loaded it triggers the error. This breaks the product listings and admin comment collapsible fieldset on the edit order page.

Adding a definition above the for loop on line 114 in uc_taxes.js fixes the problem:

  var li_titles = {};
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: li_titles isn't defined in
Assigned to:henrrrik@drupal.org» Ryan

(Just a quick note to say we've also introduced a dependency in the taxes module on the payment module to try and help folks avoid this error.)