Switching Ajax mode on or off individually for product variation types that use the Product Variation Cat Form

Created on 30 July 2025, about 2 months ago

Commerce Ajax ATC has been running stably in our project for four years now. Thank you very much for this useful module.

We also use the Commerce Variation Cart Form plugin.
Now, after such a long time, we're adding another product variation type that also uses the Product Variation Cart Form.
However, we have some custom features/options in the Add To Cart form for this variation type that affect the unit price – and there's a problem:
If one of these products is (correctly!) added to the shopping cart and the customer then clicks the "Close Button" in the ATC modal window (i.e., stays on the product page), the price changes are no longer reflected correctly as soon as he adds another product to the shopping cart from this page. Seems like we urgently need a page refresh.

We've created many ECA models (Drupal ECA) for price calculations. This works very well so far, except for this one bug.
The simplest solution for us would be to disable the Ajax function for this product variation type. This would also best suit the purchasing behavior for these products.

Unfortunately, for the product variations types that use the Cart Form variation, I can't find the setting that's available for the product type: the checkbox that enables or disables the Ajax function. There's no gear wheel with the additional settings in Display Mode.

What would be the right approach for us?

Thanks for any advice!

💬 Support request
Status

Active

Version

1.0

Component

Commerce Variation Cart Form integration

Created by

🇩🇪Germany 4kant

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

Comments & Activities

Production build 0.71.5 2024