Skip to content

Releases: danieledignani/raffaello-cf-piva-sdi-pec

Release 1.6.1

Choose a tag to compare

@github-actions github-actions released this 19 May 15:43
fix: doppio messaggio di errore (span.rcfpsp-error duplicato a span.e…

Release 1.6.0

Choose a tag to compare

@github-actions github-actions released this 19 May 15:29
feat: validazione client-side + supporto prefisso IT sulla P.IVA

Validazione step-by-step (UX Flux Checkout):
- assets/wcpicfi.js esegue regex CF, Luhn P.IVA, regex SDI, regex PEC
  direttamente al blur/change/input dei campi
- setCustomValidity() + classe woocommerce-invalid + messaggio inline rosso
- Blocca il passaggio di step (Flux Checkout invoca form.checkValidity)
- Event delegation per sopravvivere ai re-render AJAX di update_checkout
- L'omocodia CF resta server-side, qui solo regex strutturale

Prefisso IT sulla P.IVA (server-side):
- Nuovo helper strip_it_prefix() preg_replace('/^IT\s*/i', '', ...)
- check_piva() strip prima della regex/Luhn (accetta IT01835920669 e 01835920669)
- Filtro woocommerce_checkout_posted_data normalizza prima del save WC
- save_address() normalizza $_POST['billing_piva'] prima del save loop di WC
- Block Checkout sanitize_piva() esegue stesso strip
- DB stored: sempre 11 cifre nude (canonical form)

UI:
- billing_piva maxlength 11 → 13
- pattern '(IT)?[0-9]{11}'
- rimosso inputmode="numeric" (su mobile nasconde lettere, incompatibile con IT)
- title hint aggiornato

Release 1.5.1

Choose a tag to compare

@github-actions github-actions released this 19 May 14:50
remove: WP-CLI cleanup tool (over-engineered per il caso d'uso)

Il tool introdotto in 1.4.0 implementava swap/normalize/garbage-clear con
notifica email. Per i ~73 record sporchi una-tantum identificati, un approccio
SQL ad-hoc per-record è più semplice e preserva meglio i dati (es. salvare
P.IVA inserite nel campo CF invece di cancellarle).

Release 1.5.0

Choose a tag to compare

@github-actions github-actions released this 19 May 14:38
feat: supporto WooCommerce Block Checkout (Gutenberg) via API additio…

Release 1.4.0

Choose a tag to compare

@github-actions github-actions released this 19 May 14:30
feat: WP-CLI cleanup `wp raffaello cleanup` per ripulire user_meta it…

Release 1.3.0

Choose a tag to compare

@github-actions github-actions released this 19 May 13:19
fix: bug user_meta `_billing_*`, P.IVA Luhn, save_address hook, harde…

Release 1.2.1

Choose a tag to compare

@github-actions github-actions released this 19 May 11:12
Release 1.2.1 - input length limits + display truncation

Release 1.2.0

Choose a tag to compare

@github-actions github-actions released this 19 May 10:56
Release 1.2.0 - security fixes + refactor