Skip to content

Include billing and shipping address conditions in Gateway edit form#4259

Merged
lukeholder merged 1 commit into
craftcms:5.xfrom
FosterCommerce:gateway-conditions
Mar 25, 2026
Merged

Include billing and shipping address conditions in Gateway edit form#4259
lukeholder merged 1 commit into
craftcms:5.xfrom
FosterCommerce:gateway-conditions

Conversation

@johnnynotsolucky

@johnnynotsolucky johnnynotsolucky commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Description

We have a need to include gateways on orders by address. The billing and shipping address conditions already exist on the Gateway class, they're just not being rendered in the edit form, or included in the save action.

This PR updates the edit form to show both condition inputs, and updates the save action so that they can be persisted correctly.

CleanShot 2026-03-20 at 13 57 32

Related issues

@johnnynotsolucky johnnynotsolucky requested a review from a team as a code owner March 20, 2026 11:57
lukeholder added a commit that referenced this pull request Mar 25, 2026
@lukeholder lukeholder merged commit 26d01d8 into craftcms:5.x Mar 25, 2026
11 checks passed
@lukeholder

Copy link
Copy Markdown
Member

Thankyou, we have included a fix like this this in the next release.

To get the fix early, change your craftcms/commerce requirement in composer.json to:

"require": {
  "craftcms/commerce": "5.x-dev#15ddcbde0e333d0b79bba0178bb8425275afbaca as 5.6.0",
  "...": "..."
}

Then run composer update.

We will update this PR once the release is out.

@lukeholder

Copy link
Copy Markdown
Member

Commerce 5.6.1 is now out with this!

@johnnynotsolucky johnnynotsolucky deleted the gateway-conditions branch March 25, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants