콘텐츠로 건너뛰기 사이드바로 건너뛰기

태그: 

이 주제에는 다음이 포함되어 있습니다. 0 답변, 가지다 1목소리 .

최종 업데이트자: angeloD-14 1 년, 6 월 전에.

도움을 받은 사람: Paola Mendiburu.

작성자 게시물
7월 24, 2024 at 9:14 오전

angeloD-14

Contesto del problema:
Ho inserito una stringa in aspetto/ editor del tema/functions.php, dove deve mostrare un errore inserendo sotto 8 caratteri. La stringa è la seguente:

add_action( 'woocommerce_checkout_process', 'bbloomer_checkout_fields_custom_validation' );

function bbloomer_checkout_fields_custom_validation() {
if ( isset( $_POST['billing_fiscale'] ) && ! empty( $_POST['billing_fiscale'] ) ) {
if ( strlen( $_POST['billing_fiscale'] )