Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Commerce AddToCart Ajax

Security covered Under active development 52 sites

Part of the Commerce ecosystem · 487 projects

This module enhances the Drupal Commerce add-to-cart functionality by making the process asynchronous. Instead of reloading the page, items are added to the cart with visual feedback and status messages, and the cart block is updated automatically.

This module ajaxify the add to cart submit button provided by the commerce module.
By default, the add to cart button make a submission and reload the page.
Now :

  • Submission does not reload the page
  • An animated image show add to cart is processed.
  • Messages are displayed in status messages area
  • Cart block is reloaded

A configuration needs to be made in /admin/commerce/config/commerce-addtocart-ajax to define the selector to display status messages. This depends of your theme. By default, .status-messages is used.

This module has started as a fork of Ajax add to cart module for multiple reasons :

  • ajax_add_to_cart module seemed to not be maintained anymore and was buggy
  • The modal feature should not be required
  • Does not follow good practices
  • Keep it simple
Drupal 10–11

Ask your assistant about Commerce AddToCart Ajax

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Nov 2024
Latest release
3 months ago
Releases (12 mo)
3 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.x-dev Dev 10–11 Jun 20, 2026
2.0.1 Stable 10–11 Jun 20, 2026
2.0.0 Stable 9–11 Dec 21, 2025
8.x-1.0 Stable 9–10 Nov 28, 2024