Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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

Activity

Total releases
3
First release
Dec 2025
Latest release
3 weeks ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.x-dev Dev Jun 20, 2026
2.0.1 Stable Jun 20, 2026
2.0.0 Stable Dec 21, 2025