Skip to content

t524: feat(checkout): add simple checkout form template with auto-generated credentials #746

@superdav42

Description

@superdav42

Task ID: t524 | Status: open | Estimate: ~4h
Logged: 2026-04-03
Tags: enhancement auto-dispatch

Description

Re-implement the simple checkout form preset (originally in PR #740, closed due to merge conflicts with main).

What

Add a simple checkout form template where customers only enter their email address — username, password, site title, and site URL are all auto-generated server-side.

Why

PR #740 implemented this feature but was closed due to merge conflicts. The feature is valuable for reducing checkout friction. The branch feature/simple-checkout still exists and can be used as reference.

How

Reference PR #740 for the implementation approach:

  • inc/checkout/signup-fields/class-signup-field-password.php — add auto_generate_password toggle
  • inc/checkout/class-checkout.php — resolve password via wp_generate_password(16) when auto-generate is set; strip password validation rules
  • inc/models/class-checkout-form.php — add simple to template enum and use_template()
  • inc/apis/schemas/checkout-form-create.php + checkout-form-update.php — add simple to template field enum
  • Add unit tests for the new template and auto-generate behavior

Acceptance Criteria

  • simple template available in checkout form presets
  • Customer only needs to enter email address on simple checkout
  • Username, password, site title, site URL auto-generated server-side
  • Client-side JS validation does not block submission when auto-generate is enabled
  • All existing tests pass; new tests cover the auto-generate path
  • No merge conflicts with current main

Reference


aidevops.sh v3.5.906 plugin for OpenCode v1.3.0 with claude-sonnet-4-6

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions