Repository navigation
fix: complete frontend customer account and site management #2086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
504de01
8d6823d
9c41c9d
46031b7
17390f5
0de65df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,7 +109,8 @@ | |
|
|
||
| const obj = {}; | ||
|
|
||
| obj[ field_slug ] = value; | ||
| // NumberControl emits strings; the block REST schema requires integers. | ||
| obj[ field_slug ] = field.type === 'number' ? Math.trunc(Number(value)) : value; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| props.setAttributes(obj); | ||
|
|
||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Match the toggle to the payment status accepted by the handler.
For an on-hold membership, this toggle appears when a failed or partially paid payment changes to completed.
handle_save()only confirms memberships when the original payment status is pending, so it saves the payment without activating the membership. Align the display condition and handler behavior.Do not renew the full term for an add-on payment.
Manual add-on and upgrade checkouts put the membership on hold. When this toggle is enabled,
handle_save()callsrenew()and incrementstimes_billed, even for a prorated upgrade or add-on purchase. That extends the membership by a full billing period without a renewal payment. Use the payment’s original cart type to distinguish activation from renewal. (raw.githubusercontent.com)