feat(checkout): support partial-type checkout fields - #86
Merged
Conversation
Adds a generic includes/checkout/field-partial.blade.php so extensions can point a checkout field at an arbitrary blade view via 'type' => 'partial', 'path' => '...', matching the existing FormField $path + 'partial' convention used elsewhere in admin forms. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for rendering checkout fields via a custom Blade partial, enabling extensions to point a checkout field at an arbitrary view by using a partial-style field type with a path.
Changes:
- Added a new checkout field view (
field-partial) that includes a view specified by the field’spath. - Exposes
$fieldand$orderModelto the included partial.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+4
| @include($field->path, [ | ||
| 'field' => $field, | ||
| 'orderModel' => $orderModel, | ||
| ]) |
sampoyigi
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
includes/checkout/field-partial.blade.phpso extensions can point a checkout field at an arbitrary blade view via'type' => 'partial', 'path' => '...', matching the existingFormField$path+'partial'convention already used elsewhere in admin forms.igniterlabs/ti-ext-stripeterminal's new kiosk mode, which renders custom checkout fields (customer picker, mode toggle) this way.Test plan
'type' => 'partial', 'path' => 'some.view'renders that view with$fieldand$orderModelavailable.