Conversation
… user selects an address
…nges (#88) * fix(checkout): persist recomputed order total when payment method changes Selecting a new payment method only saved the payment code, so a stale pre-fee order_total (set earlier in the request) could be written to the database alongside it. * refactor(checkout): cache cart total once in onChoosePayment Avoids computing the cart total twice and guarantees the comparison and the persisted value are the same total.
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>
…tion is disabled (#87) Since a252f72 the delivery address check is skipped entirely when the "Reject Orders Outside Delivery Area" setting (location_order) is disabled. That setting ships disabled by default, so out of the box a delivery order can be placed with no address at all: address_id ends up NULL and the order is accepted, leaving the restaurant with an undeliverable order. The address fields are not part of the checkout form config, so nothing else validates them - the skipped after() callback was the only guard. Keep the intent of a252f72 (no geocoding or delivery-area enforcement when the restriction is off, so legitimate customers are not blocked by geocoder failures), but still require the address to be present.
- Add `field-select.blade.php` to render a floating-label `<select>` control with Livewire binding, validation state, and options loop - Include shared error component for consistent validation feedback display
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.
This release improves checkout form flexibility with new field type support and fixes several bugs related to address handling, order totals, and delivery validation.
Added
Fixed