Download & Extend

Conflict with Ubercart checkout order preview pane module

Project:Ubercart Simple Shipping Quotes
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

Hi, Thank You for module!
Now I trying to use that module with Ubercart checkout order preview pane module, but I can't. Work only one from them.
It's would be nice if You can help me with that issue.
One more Thanks)

Comments

#1

Ok, that module doesn't work.
With Ubercart Simple Shipping Quotes pane enabled I can't see order total on core Ubercart pane too.
:/

#2

I have the same problem.

The javascriptfile uc_payment/uc_payment.js contains the function render_line_items(), which does a POST-request to /cart/checkout/line_items. That POST-request should return the line-items table. Currently, the request gets sent but it returns nothing... That sounds like a problem (well, more an incompatibility) in uc_cart.

Will look further tomorrow.

#3

Can't locate the problem. That means that this module is disabled in my ubercart-store :(

#4

Have the same problem too.

Would be nice to fix since this module could prove to be very helpful! I am using only one shipping rate, and this module would be perfect if it worked correctly....

#5

Status:active» postponed (maintainer needs more info)

Does the same issue occur with http://drupal.org/project/uc_checkout_tweaks ? I haven't seen this problem myself..

#6

Subscribing, Greetings Martijn

#7

I am having the same problem.
I have tried investigating what Baart wrote about the call to /cart/checkout/line_items
The problem is what is being sent in this post request.

With normal shipping costs enabled the checkout page contains a variable with content like this:

This is what is being sent in the post request.

But with "Ubercart Simple Shipping Quotes" used, this variable contains this with the same product chosen:

It seems to be the entire product description.
Maybe this can help to solve the problem?

#8

It didn't like the html I included.
Now the data is attached in a file.

AttachmentSize
data.txt 7.19 KB

#9

I researched a bit more.

The hidden cart_contents value which contains the wrong value is set in uc_cart.pages.inc
The value set is what is returned from the function uc_cart_get_contents() in uc_cart.module

So somehow the value returned from uc_cart_get_contents() is wrong when using "Ubercart Simple Shipping Quotes".

I haven't been able to figure out why.

/Claus

#10

Status:postponed (maintainer needs more info)» active

Changed the status to active, maybe maintainer got the needed info now.

#11

This issue appears to only occur with some products on our website, so I ran a number of tests to isolate the issue.

We have a product node with a CCK field (text area with text processing set to plan text) if this field contains a line break then the order total preview is empty. Remove the line break and the checkout works fine.

See also:
http://drupal.org/node/1117134
http://drupal.org/node/1165184

#12

Priority:normal» critical

Since this module causes problems with the standard ubercart functionality, I changed the priority to critical.

#13

subscribe

#14

Subscribing

#15

I have the same problem - are there any workarounds?

#16

A temporary workaround would be to regularly remove line breaks from the database.

UPDATE your_content_type SET field_your_cck_field = REPLACE(field_your_cck_field , CHAR(10), ' ');
UPDATE your_content_type SET field_your_cck_field  = REPLACE(field_your_cck_field , CHAR(13), ' ');

Seems to work for me.

#17

same issue. Temporarily we can fix them in our hook_form_alter.

/**
* Implementation of hook_form_alter()
*/
function mymodule_form_uc_cart_checkout_form_alter(&$form, &$form_state) {
  $string = $form['cart_contents']['#value'];
  $string = str_replace("\r", " ", $string);
  $string = str_replace("\n", " ", $string);
  $form['cart_contents']['#value'] = $string;
}

#18

Thank you @drucode. That worked.

#19

I think this issue is similar (comes from the same bug) to http://drupal.org/node/1504174

nobody click here