Ajax Cart simple

Contrib type: 
Module
Status: 
Initial upload
Moderation: 
Not ready for moderation
Latest version: 
beta1
Compatibility: 
Ubercart 1.x

This is lighted up version of netslaves's Ajax Cart for drupal 6.x, Ubercart 6.x-2.0, Views 6.x-2.2

- removed drag'n'drop functionality due to need of more modules
- no need of jquery_update
- made Views working after Views's ajax query (pathched js included)
- made ajax on uc_catalog_buy_it_now_form (Views catalog) working

Installations: as normal module, plus if using views 6.x-2.2 replace ajax_view.js with file included in js directory of views module.

TODO: made cart views update working through ajax.

NEW: uc_ajax_cart_simple_1.1 supports Ubercart 6.x-2.0 beta 4 and Views 6.x-2.3 (new patched ajax_view.js included)

PreviewAttachmentSize
uc_ajax_cart_simple.zip17.39 KB
uc_ajax_cart_simple_1.1.zip12.54 KB
Joined: 07/16/2008
Juice: 66

Can you post a link to some demo of this module?
Thanks

Joined: 01/30/2009
Juice: 8

HI Aks,

I've also been working on the same issue with views to no success.

I've add your patch and it still does a page reload when you click 'add to cart' after an ajax query. once the query has callback it's works until you change an exposed filter.

Did you find a solution to this? do I need to configure my cart is a certain way?

Best regards

Botty1

aks
aks's picture
Joined: 01/28/2009
Juice: 20

Demo link: http://89.113.222.117/catalog/cartridges/laser_cartridges - it's views page, "add to cart" works(russian)

aks
aks's picture
Joined: 01/28/2009
Juice: 20

Hi Botty1,

I use Views 6.x-2.2 with patch I've included. Patch just re-adds onclick events on "add to cart" buttons after Views page reload via ajax, so may be I missed handler on exposed filter change. Just look into ajax_view.js to find handler for exposed filter chage via ajax page reload, it's easely (I've included comments), and of course this should work with Ajax Cart simple. (see sample above, after sorting by column ajax works)

Joined: 01/30/2009
Juice: 8

Aks,

As soon as I change an exposed filter the 'add to cart. button will do 1 page load. then the ajax cart will work again. I can see your demo works extremely well. could you send me the ajax_view.js code with the exposed filter fix

Thanks

Botty1

aks
aks's picture
Joined: 01/28/2009
Juice: 20

Hi Botty1!

Consider upgrading to Ubercart 6.x-2.0 beta 4 and Views 6.x-2.3, las one has updated js code, hope you will be satisfied!

Best regards, aks.

Joined: 07/13/2009
Juice: 2

For a view with the "add to cart" button with options and quantity field it stalls after hitting the button, cart isn't even updated. Can you include this one aswell?

Joined: 09/21/2009
Juice: 19

Hi AKS, great module thanks for all the work and share. I wonder if there is a way to modify it so attribute adjustments are used instead of the base price. I know that it is counter to the way Ubercart suppose to function but given the less than ideal attribute system it will help my current project tremendously.

Thanks,

ahimsauzi