Rewrite AdjustmentDefaultWidget to use #ajax

Created on 30 December 2016, over 7 years ago
Updated 6 May 2024, about 2 months ago

Problem/Motivation

Use AJAX to add the adjustments for instead of state. This will eventually allow us to have different forms for different adjustment types. Right now it'll mean that the order form does not contain unnecessary fields.

Proposed resolution

Use AJAX to get adjustment form.

Remaining tasks

User interface changes

Not really

API changes

None

Data model changes

None

Original report

When an adjustment on an order is not set (to something besides '_none'), the order form does not pass validation but warns that an 'Amount' field is required (further, the amount field in question also happens to not be visible because of #states).

This is caused by the price field 'commerce_price' element requiring a 'number' value.

Not sure how to handle this.

📌 Task
Status

Needs review

Version

3.0

Component

Order

Created by

🇺🇸United States steveoliver

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.69.0 2024