I was checking out the cart system in the adobe store and when something is added to the cart it doesnt refresh the page but does some effect on the cart block to let the user clearly know something was added to the cart. The only thing preventing me from using this module is confusing the customer and thinking the site is broke because they clicked add to cart and nothing happened.

Also there is a module that does this for messages, maybe you can migrate some of the code?

http://drupal.org/project/messagefx

Cheers

Comments

erik seifert’s picture

Yes i think you are right. Next version will have an option "Display customer notification". This should be easily integrated.

RikiB’s picture

Thanks. Also I was checking out this module called Ajax Comments:

http://drupaldance.com/ajax_comments

Once you submit the comment it does a slight flashing of the comment and its extremely well done and would work perfectly with Ajax Cart. They have a demo you can see in action.

RikiB’s picture

Just a bump..I hope all is well. :)

erik seifert’s picture

I think about something like blockUI

http://malsup.com/jquery/block/

RikiB’s picture

Yeah that could work great I think. :)

RikiB’s picture

Just a tiny bump, I hope to use this soon :)

hankpalan.com’s picture

How come on the Demo site http://shaque.net/catalog the add to cart button actually works the way is supposed to? You click it and then the item shows up in the cart. I've been waiting for 6 months for my cart to work.

RikiB’s picture

This thread is about added an effect with that happens. Which I hope will be in the near future :)

RikiB’s picture

Time is fleeting, I sent you an email through the drupal contact form. I hope you can respond :)

erik seifert’s picture

Status: Active » Postponed (maintainer needs more info)

Please have a look on 2.0 alpha

RikiB’s picture

I was just checking it out and I think this will work, however there is just 1 thing. Currently it says something that the end user wont understand, (Cart link product action: p87_q1_a1o1). Is there any way to have that just say Successfully added to cart?

hankpalan.com’s picture

This works better than I imagined it would. Thank you soooooooo much!

erik seifert’s picture

Ah thanks. I will add a support for product links. Also there will be a success message.

RikiB’s picture

Thanks Erik

erik seifert’s picture

New Alpha Release:

http://drupal.org/node/612702

Have fun ;- )

RikiB’s picture

Im not sure why but the add to cart ajax isnt working anymore. The remove from cart works with the popup and ajax, but when I add something to the cart it refreshes the page and no popup or ajax.

I tried disabling/enabling the module but it still does it.

On a good note, the remove from cart looks perfect :D

erik seifert’s picture

Hmm, do you have more informations for me ? Or do you have a possibility for look on your test enviroment ?

RikiB’s picture

Sure, I went ahead and made a fresh site to make sure real quick. It still doesnt work with a new install. You can see here that adding to the cart doesnt do ajax, but removing it does.

http://riki.us/dev/node/2

erik seifert’s picture

jquery.cookie.js is not loaded. Thats's the problem.

RikiB’s picture

oh cool, so is that an easy fix? Could I patch it on my end pretty easily?

erik seifert’s picture

You got an 406 Status Code:

See here: http://www.checkupdown.com/status/E406.html
I doesnt know why you got this error. I think your apache/webserver installation block this script. You should should contact your hoster.

erik seifert’s picture

Here your response:

Not Acceptable

An appropriate representation of the requested resource /dev/sites/all/modules/uc_ajax_cart/js/jquery.cookie.js could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

So jquery.cookie.js is missing.

RikiB’s picture

OH, well thats really strange. Im on a dedicated server, any ideas what I could change to get this working? Ill do some tests.

erik seifert’s picture

Please have a look on your Server:

This file

/dev/sites/all/modules/uc_ajax_cart/js/jquery.cookie.js

Must exists.

RikiB’s picture

ahh, well I double checked and the file is indeed there. I also tested this from 2 different sites on 2 different domains. The strange thing is it worked right before upgrading to the latest version. Ill do some more digging, sounds like the problem is on my end somehow if its working for you.

RikiB’s picture

After a bit of research it looks like mod security is blocking only that file because of the way its named.

More info here:
http://drupal.org/node/522646
http://drupal.org/node/271463

Could you point me to where I could hack this module to look for jquery_cookie.js instead of jquery.cookie.js? As soon as I change the name of that file it should work.

http://riki.us/dev/sites/all/modules/uc_ajax_cart/js/jquery_cookie.js

erik seifert’s picture

I was afraid of this. So you can rename this file and load it over template.php .

Or you ask your hoster to slacken the rules.

erik seifert’s picture

But if there some problems anythere, i will rename this file in next release.

RikiB’s picture

I was able to work around it. Hopefully this thread will help others out there if they run across this. :)

RikiB’s picture

I hate to bring up tons of small requests but I think this is another good one and hopefully easy.

Currently it flashes the screen twice when you hit add to cart. The first time is very fast and its hard to even read what it says but its saying

Please Wait
Add Product to Cart

It would be much better to just skip that altogether and go straight to the 2nd message, is there an elegant way to do this? Currently its just a bit too jarring.

Thanks again for the hard work on this!!

erik seifert’s picture

First Message is because , sometime Request could be a little lame . So first Message is "Cart Update: Please wait". It could be configurable , for better expierence.

RikiB’s picture

Cool, yeah if there was an option to remove the first one that would rule!

RikiB’s picture

Status: Postponed (maintainer needs more info) » Active

Hi again, just wondering if its possible to only have 1 notification display instead of 2, its still very jarring.

tunic’s picture

Status: Active » Fixed

Last release solves the double message flickering. The two messages are displayes, but there's no flickering becasue no fader effect is used to dispaly second message.

The first messge can't be removed because it gives information to user (hey, your request is being processed), the same for the second (ok, your request has been processed). If server si slow first message wuold be much apreciated.

I hope that without flickering behavior is ok.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.