Skip to content

feat(checkout): support partial-type checkout fields - #86

Merged
sampoyigi merged 1 commit into
4.xfrom
feat/checkout-partial-field-type
Aug 4, 2026
Merged

feat(checkout): support partial-type checkout fields#86
sampoyigi merged 1 commit into
4.xfrom
feat/checkout-partial-field-type

Conversation

@obinnaelviso

Copy link
Copy Markdown
Contributor

Summary

  • Adds 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 already used elsewhere in admin forms.
  • Needed by igniterlabs/ti-ext-stripeterminal's new kiosk mode, which renders custom checkout fields (customer picker, mode toggle) this way.

Test plan

  • Confirm existing checkout field types (text, email, checkbox, telephone, textarea, payments) still render unaffected.
  • Confirm a field with 'type' => 'partial', 'path' => 'some.view' renders that view with $field and $orderModel available.

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>
Copilot AI review requested due to automatic review settings July 31, 2026 00:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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’s path.
  • Exposes $field and $orderModel to 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
sampoyigi merged commit 9357930 into 4.x Aug 4, 2026
2 checks passed
@sampoyigi
sampoyigi deleted the feat/checkout-partial-field-type branch August 4, 2026 12:01
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.

3 participants