Reset group add to cart form options to default when product attributes change

Created on 19 May 2025, 18 days ago

Problem/Motivation

When the "Vado group add to cart" form display is set to show the "Product variation attributes" widget, the group selected options don't reset after attribute selection change.

This is a problem, for example when unchecking the add on options and changing a product attribute, the price field displays the full calculated price, but the group options appear unselected.

Steps to reproduce

  1. Set the order item type "Vado group add to cart" form display "Purchased entity" to use the "Product variation attribution" widget.
  2. Add a group with checkboxes to the product variation.
  3. When changing the product attributes, the group options to not clear/reset.

Proposed resolution

There is already a "TODO" comment in the related group add to cart form code.
Implement that TODO.

Remaining tasks

MR patch incoming.

User interface changes

When using the group add to cart form and the product variation attributes widget, when changing the product attributes, the group selection will reset to the default configuration.

API changes

N/A

Data model changes

With thanks for the useful module!

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇳🇿New Zealand davidwhthomas

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024