Commerce Module Tuesday: Commerce Cart Ajax

Commerce Cart Ajax is a contributed module for Drupal Commerce that provides a way to "ajaxify" the cart so the cart page is not reloaded when changing the quantities of a product or removing it.

It takes advantage of Commerce's cart being a View and with a really simple option you get the user experience enhancement out of the box. You just need to enable the the Views' setting "Uses Ajax" and enjoy.

Posted April 3, 2012

Comments

Submitted by elena_fran (not verified) on

I originally made this module while I thought Commerce Cart Ajax would only handle the add to cart form page, not the cart block itself.
I keep using mine atm as it allows to have an AJAX behavior on the cart block even when the cart is empty - Eventually i'll switch to Commerce Cart Ajax when #1316644: Add to cart button will be fixed.
IMO The big avantage of Commerce Cart Ajax is that it inserts drupal_message() in the page as well, my module does not.
I've viewed the similar situation while visiting online roulette australia.
But anyway thanks for the opportunities.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Type the characters you see in this picture.
Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.