Ajax Cart simple

Contrib type: 
Module
Status: 
Initial upload
Moderation: 
Not ready for moderation
Latest version: 
beta1

Downloads

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
cloudmine's picture
Offline
Joined: 07/16/2008
Juice: 72
Re: Ajax Cart simple

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

Botty1's picture
Offline
Joined: 01/30/2009
Juice: 8
View's working after ajax query

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
Offline
Joined: 01/28/2009
Juice: 30
Re: Re: Ajax Cart simple

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

aks
aks's picture
Offline
Joined: 01/28/2009
Juice: 30
Hi Botty1, I use Views

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)

Botty1's picture
Offline
Joined: 01/30/2009
Juice: 8
Could you paste the code

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
Offline
Joined: 01/28/2009
Juice: 30
Hi Botty1! Consider

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.

dawick's picture
Offline
Joined: 07/13/2009
Juice: 2
Re: Ajax Cart simple

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?

ahimsauzi's picture
Offline
Joined: 09/21/2009
Juice: 51
Call attribute adjsutment instead of base price

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

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1113
Re: Ajax Cart simple

Can someone explain what an Ajax cart is? How does it differ, what does it do, why would I use it? (the demo link has long since expired)

Thank you very much for your simple answers!

BigMike

EDIT: I found a working demo: http://shaque.net/cart ................WOW THAT IS AWESOME!

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1113
Re: Ajax Cart simple

I understand this module was released about 2 years ago, but I'd like to share that this does not work for D6.20 and U2.4. At least for me, when I click on Add to Cart, the waterwheel icon just spins forever and nothing ever gets added to the cart. This is like a Add to Cart disabler for my installation of D and UC.

I recommend the 2.x branch of Ajax Driven Cart instead.

Regards,
BigMike