Jquery 1.4.2 and Ubercart

dollar_dad's picture

The idea is to create some form of discussion/log of implement Ubertcart with JQuery 1.4.2 so that it will help others and (me the next time).

I'm an experienced programmer but new to the Drupal way.

Please feel free to chip in any useful comments or help (unhelpful or stupid comments will result in me send my mother-in-law to stay with you for 2 weeks)

What I'm I doing:

  • I have a current (dev - but tested) commerical site that I have built with a shopping cart and Paypal Checkout.
  • The site was built on codeigniter and Jquery 1.4.2.
  • The store will have nearly a thousand items of which some will have options.
  • Each product has a different shipping price.
  • Store owner has very limited computer skills but needs to update content and products.

I've reviewed Ubercart and I am happy that it can technically handle this.

  • Default Jquery is 1.2.6 => I need to upgrade this to 1.4.2 so that I can harness JQuery UI 1.8
  • The default product create page has too many fields => I want to create a limited input form
  • Need a simple process to create categories and sub catergories

Upgrading Jquery

I've upgraded core JQuery(1.2.6) to 1.4.2 using the patch from http://drupal.org/files/issues/jquery142.patch

Installed JQuery_ui http://drupal.org/project/jquery_ui

Downloaded JQuery UI 1.8rc3 from http://jqueryui.com/download - Yes I know it's only a release candidate but lets live wild.

Rename the download from Jquery to jquery.ui and place in the module/jquery_ui director.

Activate module - Bugger, not working

jquery_ui calls for /version.txt which is the Jquery development-bundle -> drag file up to jquery.ui director

Looks to be working!!!

Bad news - Breaks AJAX in views

Think I'll leave this alone for now

Can someone please delete this discussion - thanks

Comments

Ubercart implementation

hi dollar_dad,

Cool username.
Anyway.

Have a look at this setup http://www.rodesign.co.nz/catalog

Is this along the lines of what you want?

If you want I can give you access to a test site so you can have a look at the back end too and how its setup e.g. what modules I used and the way I've setup categories.

cheers,

Ben

Hey kiwifellows...

New to Drupal too..

Was wondering if I could have a look at the set up in your test site in regards to Ubercart..

Cheers
M

I updated Drupal to jquery

I updated Drupal to jquery 1.4.2 and of course it broke the ajax for getting shipping quotes. After doing a bit of debugging I figured out that it was because drupal_json() was returning malformed json, and jquery 1.4.2 uses strict json filtering, and was throwing a parse error. So what I did was switched drupal_json($return_quotes); on line 71 in uc_quote.pages.inc to use PHP's json encoding -- print(json_encode($return_quotes)); and we're back in business.

New Zealand

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week