4 replies [Last post]
Robin Monks@drupal.org's picture
Offline
Joined: 01/07/2009
Juice: 5
Was this information Helpful?

I have flat rate shipping set up, and it works correctly when viewing the cart and using the shipping estimator. But, during checkout shipping does not appear, not even after clicking the recalculate shipping button.

Any ideas?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Shipping (flat rate) calculates in cart, but not in checkout

I don't suppose you have Firefox / Firebug and can check to see what the response from the AJAX request is? Puzzled

This issue crops up every now and then but I can never remember the exact reason. :-/

Robin Monks@drupal.org's picture
Offline
Joined: 01/07/2009
Juice: 5
Error

I get this error when checkout loads:

ret[ret.length - 1] is undefined
e("input#edit-submit", Document checkout)jquery.js (line 2)
e(Document checkout)jquery.js (line 2)
e(Object length=1 0=document jquery=1.1.2, function())jquery.js (line 2)
e("form#uc-cart-checkout-review-form input#edit-submit")jquery.js (line 2)
e("form#uc-cart-checkout-review-form input#edit-submit", undefined)jquery.js (line 2)
e("form#uc-cart-checkout-review-form input#edit-submit", undefined)jquery.js (line 2)
(?)()uc_cart.js?47596 (line 12)
e()jquery.js (line 2)
e()jquery.js (line 2)
e([function(), function(), function(), 12 more...], function(), undefined)jquery.js (line 2)
e()jquery.js (line 2)
[Break on this error] eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a...

and the same error if I click the calculate shipping button:

ret[ret.length - 1] is undefined
[Break on this error] eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a...

Robin

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Error

What version of Ubercart are you using? I'm not sure where ret or ret.length is coming from. It's might be used inside jQuery somewhere....

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
also having related problems

I'm also having this problem...
Versions Installed:
Drupal 6.13
Ubercart 2.0-rc3
JQuery 6.x-2.x-dev

I have checked off each product to be:
- everything under checkout panes is enabled
- shippable
- set flat rate settings
- added address for the company on store information
- added address to shipping area
- enabled default modules that should be enabled in the order they should be enabled in
- enabled to make sure UPS and Canadian post shipping types have been enabled
- tax has been setup(configured) as well
- i'm using flat rate so i set -1 for each and every product in the inventory list

No errors in logs and no other problems are occuring with the Ubercart or Drupal
- i ran cron and updated database
- i tried to disable all modules and reenabled everything starting with drupal core, core options, views, panels, cck, image (at least everything it told me to enable on the Ubercart setup page.

I can't figure out what i'm doing wrong i've gone through every page in the configuration area, persmissions area for the Users, module page to check if i left anything "unchecked".

Firebug shows this error on the checkout page:
1. uncaught exception: Syntax error, unrecognized expression: [@name*=delivery_]

Line 0
2. [Exception... "'Syntax error, unrecognized expression: [@value=---0]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]

Line 0