This is an alternative to the Ubercart AJAX Cart module.
This module uses Drupal's AJAX framework as much as possible, that leads to cleaner code, less JS and a nice user experience.
It was also created with caching in mind from the outset, so I expect it to perform very well on cached sites as there's no dynamic content whatsoever when rendering the page.
All is done with JS and there's no degrading alternative, other than the usual ubercart experience without this module.
It probably has a bit less functionality than the original AJAX cart, but I wanted to keep this module simple both to maintain and to extend.
Out of the box, this module does the following:
- Adds a new "Shopping cart (AJAX) block" that, when placed in the site, pulls its content from the non-AJAX original Ubercart shopping cart block, only updating it dynamically via AJAX
- It also modifies the "Cart" link in menus and navigation with a configurable text with tokens. This is useful for small mini cart menu items. This can be disabled.
- It enables AJAX on the cart view page to remove items and update quantities.
All of the theming comes form Uberart, this module adds no new markup except of the block placeholder HTML which is very basic.
Installation
1. Enable module as usual
2. Add the "Shopping cart (AJAX)" block if you want to use it.
3. You can check the Store->Settings->AJAX Cart (alt) configuration page for further settings and customizations on the refresh link.
Why I created another module?
I normally try to contribute to the module that's there and available, but this is a major rework, a completely different approach to the one taken by the existing module and contributing it there, even if it meant creating a new branch, would have been a pain for previous maintainers, myself and the users.
Contribute back
If you like the module, if you find it useful, and/or if you just want to contribute to this module development, please feel free to contribute to it. I will appreciate it.
I try to contribute as many modules as I can as soon as I need new functionality that can be re-used by others. A lot of times, doing the module for others means a lot more time than if I were to do it just quick and dirty, but I like both the challenge and the process. I also try to maintain them in my spare time as time gets available.
You can also support the Drupal project as well, information is in their project page.
Project information
- Project categories: E-commerce
159 sites report using this module
- Created by hanoii on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
