5 replies [Last post]
gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
Was this information Helpful?

Versions Installed:
Drupal 6.13
Ubercart 1.7
JQuery 6.x-2.x-dev

Path of error:
site.com/admin/store/settings/checkout/edit/panes

I've been trying to get "shipping options" to show in the Checkout Settings > Checkout Panes area. It's not even listed as an option for me to check.

I have checked off each product to be:
- 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

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
bump

has anyone ran into this problem?

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

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

The checkout page makes extensive use of JavaScript. When you have JavaScript errors, things break.

The reason you have JavaScript errors is because you're using jQuery 1.3.x. Ubercart was written and tested with the version of jQuery distributed with Drupal 6, which is jQuery 1.2.x. Version 1.3 of jQuery made some syntax changes which break Ubercart's JavaScript. If you really must use jQuery 1.3 for some reason, then look for the patch Lyle posted in the Ubercart issue queue at drupal.org. If you can test that patch and provide feedback that it works then perhaps it will get committed.

<tr>.
gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
Re: gizmatix wrote: Firebug

I made a typo by writing "Ubercart 1.7" since i was very sleepy when i wrote the post. I ment to write Ubercart 2.0-rc3.

gizmatix's picture
Offline
Joined: 09/09/2008
Juice: 159
Re: Re: gizmatix wrote: Firebug

This error as TR said is related to the JQuery Module where its not compatible with the Ubercart 2.0-rx3. Where as it causes the "shipping options" to error.

I've pasted my problems in two other posts related to it so developers could compile it with others having the same problem...

Located here:
http://www.ubercart.org/forum/support/8691/update_failure_choose_credit_...

http://www.ubercart.org/forum/support/8316/shipping_flat_rate_calculates...

I'd like to thank TR for the help and quick response! Your awesome ;p

mizerydearia's picture
Offline
Joined: 09/01/2009
Juice: 12
Re: gizmatix wrote: Firebug

I'm not sure, but I think this is the patch by Lyle that TR referenced:

http://drupal.org/node/513746

Also, the patch doesn't seem to be correct the following:

payment/uc_payment/uc_payment.js:  var products = $("[@name=cart_contents]").val();
payment/uc_payment/uc_payment.js:  var p_email = $("input[@name*=primary_email]").val() || '';
payment/uc_payment/uc_payment.js:  var s_f_name = $("input[@name*=delivery_first_name]").val() || '';
payment/uc_payment/uc_payment.js:  var s_l_name = $("input[@name*=delivery_last_name]").val() || '';
payment/uc_payment/uc_payment.js:  var s_street1 = $("input[@name*=delivery_street1]").val() || '';
payment/uc_payment/uc_payment.js:  var s_street2 = $("input[@name*=delivery_street2]").val() || '';
payment/uc_payment/uc_payment.js:  var s_city = $("input[@name*=delivery_city]").val() || '';
payment/uc_payment/uc_payment.js:  var s_zone = $("select[@name*=delivery_zone]").val() || '0';
payment/uc_payment/uc_payment.js:  var s_code = $("input[@name*=delivery_postal_code]").val() || '';
payment/uc_payment/uc_payment.js:  var s_country = $("select[@name*=delivery_country]").val() || '0';
payment/uc_payment/uc_payment.js:  var b_f_name = $("input[@name*=billing_first_name]").val() || '';
payment/uc_payment/uc_payment.js:  var b_l_name = $("input[@name*=billing_last_name]").val() || '';
payment/uc_payment/uc_payment.js:  var b_street1 = $("input[@name*=billing_street1]").val() || '';
payment/uc_payment/uc_payment.js:  var b_street2 = $("input[@name*=billing_street2]").val() || '';
payment/uc_payment/uc_payment.js:  var b_city = $("input[@name*=billing_city]").val() || '';
payment/uc_payment/uc_payment.js:  var b_zone = $("select[@name*=billing_zone]").val() || '0';
payment/uc_payment/uc_payment.js:  var b_code = $("input[@name*=billing_postal_code]").val() || '';
payment/uc_payment/uc_payment.js:  var b_country = $("select[@name*=billing_country]").val() || '0';