Toggle of payment card is broken with coupon application/removal when extra order fields enabled

Created on 24 March 2022, almost 3 years ago
Updated 23 October 2023, about 1 year ago

Problem/Motivation

When enabling the module, and using coupons, the credit card information fields don't toggle properly. When I disable the extra fields, the coupon behavior works properly.

Futher information: If the custom order fields are placed on the "order information" or "sidebar" panes, the coupon application misbehaves.

  1. On first page load, clicking the coupon apply/remove doesn't toggle the payment information.
  2. Subsequent clicks toggles the payment information, but it is "out of step" with what should be done
    • Removing the coupons to get a non-zero balance hides the payment card info
    • Adding a coupon to get a zero balance displays the payment card info

Modules used: Commerce Braintree, Commerce Webform Order

Steps to reproduce

  1. Enable the module
  2. Add custom field of type text(plain): /admin/commerce/config/order-types/default/edit/fields
  3. Enable order field display: /admin/commerce/config/order-types/default/edit/display
  4. Add custom field to the checkout flow: /admin/commerce/config/checkout-flows/manage/default

If the field is disabled from the checkout flow the proper coupon behavior is restored.

Things I tried

  • Changing to stock theme
  • Changing the wrapper element (container vs fieldset)
  • Changing the location on the checkout flow
πŸ› Bug report
Status

Active

Version

1.1

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States aajones

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024