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)

CommentFileSizeAuthor
#8 data.txt7.19 KBnesalc

Comments

zarudnyi’s picture

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

Baart’s picture

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.

Baart’s picture

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

dreadfulcode’s picture

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....

longwave’s picture

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..

summit’s picture

Subscribing, Greetings Martijn

nesalc’s picture

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:

Luxux Nederdel i et meget enkelt og elegant snit.</p>

<p>

&nbsp;</p>

<p>

Materiale: Silke</p>

<p>

Farve: R&aring;hvid</p>

";s:6:"teaser";s:138:"<p>

Luxux Nederdel i et meget enkelt og elegant snit.</p>

<p>

&nbsp;</p>

<p>

Materiale: Silke</p>

<p>

Farve: R&aring;hvid</p>

";s:3:"log";s:0:"";s:18:"revision_timestamp";s:10:"1300303583";s:6:"format";s:1:"1";s:4:"name";s:5:"mette";s:7:"picture";s:0:"";s:10:"list_price";s:7:"0.00000";s:10:"sell_price";s:9:"600.00000";s:12:"weight_units";s:2:"kg";s:6:"length";s:1:"0";s:5:"width";s:1:"0";s:6:"height";s:1:"0";s:12:"length_units";s:2:"cm";s:7:"pkg_qty";s:1:"1";s:11:"default_qty";s:1:"1";s:11:"unique_hash";s:32:"7c13785b0e813a42bf036c1ce01ff36f";s:8:"ordering";s:1:"0";s:9:"shippable";s:1:"1";s:17:"field_image_cache";a:1:{i:0;a:10:{s:3:"fid";s:3:"241";s:3:"uid";s:1:"3";s:8:"filename";s:9:"Lux13.jpg";s:8:"filepath";s:31:"sites/default/files/Lux13_0.jpg";s:8:"filemime";s:10:"image/jpeg";s:8:"filesize";s:7:"1948885";s:6:"status";s:1:"1";s:9:"timestamp";s:10:"1300303467";s:4:"list";s:1:"1";s:4:"data";a:2:{s:3:"alt";s:0:"";s:5:"title";s:0:"";}}}s:10:"attributes";a:2:{i:3;O:8:"stdClass":13:{s:3:"aid";s:1:"3";s:4:"name";s:11:"kjole_farve";s:13:"default_label";s:16:"Farve på kjolen";s:16:"default_ordering";s:1:"0";s:16:"default_required";s:1:"1";s:15:"default_display";s:1:"1";s:11:"description";s:23:"Vælg farven på kjolen";s:5:"label";s:16:"Farve på kjolen";s:14:"default_option";s:2:"22";s:8:"required";s:1:"1";s:8:"ordering";s:1:"0";s:7:"display";s:1:"1";s:7:"options";a:1:{i:22;O:8:"stdClass":8:{s:3:"nid";s:3:"103";s:3:"oid";s:2:"22";s:4:"cost";s:7:"0.00000";s:5:"price";s:7:"0.00000";s:6:"weight";s:1:"0";s:8:"ordering";s:3:"-50";s:4:"name";s:15:"Råhvid / Ivory";s:3:"aid";s:1:"3";}}}i:2;O:8:"stdClass":13:{s:3:"aid";s:1:"2";s:4:"name";s:16:"kjole_stoerrelse";s:13:"default_label";s:16:"Kjole størrelse";s:16:"default_ordering";s:1:"0";s:16:"default_required";s:1:"1";s:15:"default_display";s:1:"1";s:11:"description";s:17:"Vælg størrelse ";s:5:"label";s:16:"Kjole størrelse";s:14:"default_option";s:2:"14";s:8:"required";s:1:"1";s:8:"ordering";s:1:"0";s:7:"display";s:1:"1";s:7:"options";a:1:{i:14;O:8:"stdClass":8:{s:3:"nid";s:3:"103";s:3:"oid";s:2:"14";s:4:"cost";s:7:"0.00000";s:5:"price";s:7:"0.00000";s:6:"weight";s:1:"0";s:8:"ordering";s:1:"0";s:4:"name";s:2:"38";s:3:"aid";s:1:"2";}}}}s:22:"last_comment_timestamp";s:10:"1300303583";s:17:"last_comment_name";N;s:13:"comment_count";s:1:"0";s:8:"taxonomy";a:1:{i:2;O:8:"stdClass":5:{s:3:"tid";s:1:"2";s:3:"vid";s:1:"1";s:4:"name";s:19:"Konfirmationskjoler";s:11:"description";s:0:"";s:6:"weight";s:1:"0";}}s:8:"flatrate";a:0:{}s:13:"shipping_type";s:13:"small_package";s:16:"shipping_address";O:8:"stdClass":10:{s:10:"first_name";s:0:"";s:9:"last_name";s:0:"";s:7:"company";s:17:"Freja Brudekjoler";s:7:"street1";s:11:"Thorsgade 2";s:7:"street2";s:0:"";s:4:"city";s:7:"Herning";s:4:"zone";s:1:"0";s:11:"postal_code";s:4:"7400";s:7:"country";s:3:"208";s:5:"phone";s:0:"";}}}" />

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

nesalc’s picture

StatusFileSize
new7.19 KB

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

nesalc’s picture

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

nesalc’s picture

Status: Postponed (maintainer needs more info) » Active

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

sittard’s picture

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

Anonymous’s picture

Priority: Normal » Critical

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

rolfmeijer’s picture

subscribe

gillisig’s picture

Subscribing

whizzkid’s picture

I have the same problem - are there any workarounds?

sittard’s picture

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.

Aleksey Zubko’s picture

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;
}
loparr’s picture

Thank you @drucode. That worked.

velpan’s picture

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