Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

dc_ajax_add_cart

1,103 sites Security covered
View on drupal.org

Using this module, you can ajaxify the add to cart operations. The updated cart will be displayed without a page refresh, and a popup message will be shown after you add an item to the cart.

Drupal 9.3 & 10 & 11 / Commerce Ajax Add to Cart 3.X

Features

  • Ajax add to cart form as a product variation display formatter
  • Ajax product removal from cart as a views field
  • Ajax update cart as a views field
  • Ajax confirmation popup on adding a product variation to cart. This is available as a product variation display

Installation and usage

  • Commerce Ajax Add to Cart 3.X should only be installed via Composer. The zip files on this page are provided for informative purposes only
  • Go to admin/commerce/config/product-types/default/edit/display,
    select Ajax add to cart form format for Variations
  • If you want the ability to remove product from cart ajax-ifically, enable dc_ajax_add_cart_views module. This is provided as a sub-module
  • Edit the cart view, add field Remove button (Ajax), for ajax removal of product from cart
  • If you want add to cart confirmation messages to appear in a modal popup, enable the dc_ajax_add_cart_popup module. This is provided as a sub-module. Go to admin/commerce/config/product-variation-types/default/edit/display, check Ajax add to cart popup under Custom Display Settings, and click Save.

Drupal 7.X / Commerce Ajax Add to Cart 7.x-2.11

Features

  • Shopping cart block (minified version of cart page), that updates every time you add a product to the cart.
  • Remove product from cart through AJAX
  • A popup message will appear showing the current item you have added to the cart.
  • Update product quantity in cart itself

Installation and usage

  • Install the module in a Drupal Commerce installation. Steps for installing module in Drupal can be found here.
  • Go to blocks page admin/structure/block and place the blocks called AJAX shopping cart and AJAX shopping cart teaser in desired regions. If you are working on Commerce Kickstart distribution and have "Commerce Kickstart Theme" as the default theme, then it would be best if you put block "AJAX shopping cart" in "Sidebar Second" region and AJAX Custom shopping cart teaser" in "User Bar Second" region. Remove the default block from "User Bar Second" region.
  • This module provides a popup message that the product item has been successfully added to the cart. By default Commerce Kickstart distribution also provides a similar kind of popup message that appears on page refresh. You can disable the default popup message if you disable this rule: "Kickstart Add to Cart message".
  • This module provides template files to provide further customizations. Copy the template files in the theme's templates directory and make desired changes.
  • Configuration of the module can be found on this page: admin/commerce/config/ajax-cart.

Activity

Total releases
3
First release
Aug 2025
Latest release
4 months ago
Release cadence
47 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
3.1.0 Stable Nov 21, 2025
3.0.0 Stable Sep 25, 2025
3.x-dev Dev Aug 19, 2025