Problem
After PR #737 (simple checkout form template) merged, inc/checkout/class-checkout.php has an uncommitted fix sitting on main.
The fix adds form_has_auto_generate_password() method and uses it in get_js_validation_rules() to strip password-related JS validation rules when the checkout form uses auto-generated passwords. Without this, the JS validator requires a password field that is never rendered, blocking form submission.
What to do
- Create a worktree from
main
- Implement the fix: add
form_has_auto_generate_password(): bool protected method that iterates form settings to detect password fields with auto_generate_password enabled
- In
get_js_validation_rules(), call this method and unset($raw_rules['password'], $raw_rules['password_conf'], $raw_rules['valid_password']) when true
- Commit and open a PR
Branch feature/738-simple-checkout-followup-fixes on origin has a similar implementation for reference.
Acceptance Criteria
aidevops.sh v3.5.718 plugin for OpenCode v1.3.0 with claude-sonnet-4-6 spent 6m and 11,460 tokens on this as a headless worker.
Problem
After PR #737 (simple checkout form template) merged,
inc/checkout/class-checkout.phphas an uncommitted fix sitting onmain.The fix adds
form_has_auto_generate_password()method and uses it inget_js_validation_rules()to strip password-related JS validation rules when the checkout form uses auto-generated passwords. Without this, the JS validator requires a password field that is never rendered, blocking form submission.What to do
mainform_has_auto_generate_password(): boolprotected method that iterates form settings to detect password fields withauto_generate_passwordenabledget_js_validation_rules(), call this method andunset($raw_rules['password'], $raw_rules['password_conf'], $raw_rules['valid_password'])when trueBranch
feature/738-simple-checkout-followup-fixeson origin has a similar implementation for reference.Acceptance Criteria
form_has_auto_generate_password()method exists inCheckoutclassget_js_validation_rules()strips password rules when auto-generate is enabledaidevops.sh v3.5.718 plugin for OpenCode v1.3.0 with claude-sonnet-4-6 spent 6m and 11,460 tokens on this as a headless worker.