Conflict with Ajax Add-to-Cart Module

Created on 23 June 2025, 9 days ago

Problem/Motivation

Upon installing this module in a D10 site that is also using the Commerce Ajax Add-To-Cart module, enabling the module failed with the following error:

  Invalid service "commerce_cart.cart_subscriber": method "Drupal\commerce_cart_flyout\EventSubscriber\CartEventSubscriber::setRequestStack()  
  " does not exist.

Initially, this did not prevent functionality of the module, as it successfully installed before it threw the error. However, it jammed up any drush commands, which would always fail on that error. After clearing the cache via the UI, all actions now fail with the above error, including viewing the frontend of the site.

Note that this issue does not reproduce if installing on a clean site using Commerce, but without the Ajax Add-To-Cart module.

Steps to reproduce

Install the module and activate on a D10 site that is also using Ajax Add-To-Cart.

Proposed resolution

I'm honestly not sure if this belongs here or in the other module's issue queue. However, I would think that these are two modules that are commonly used together in a Commerce instance, so interoperability would be important.

Remaining tasks

Determine if this issue belongs here or with the conflicting module, and address accordingly.

User interface changes

None

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Active

Version

1.12

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dbrownmt Boston, MA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024