Hey, I added a custom code to my functions.php and I can't find it on string translation.
I saw a thread that had the same issue and I tried to edit the code as suggested but it doesn't work well as it crashed my site.
This is the code:
add_action('woocommerce_checkout_process', 'wpsh_validate_phone');
function wpsh_validate_phone() {
if (isset($_POST['billing_phone'])) {
$phone = strlen(preg_replace('/[^0-9]/', '', $_POST['billing_phone']));
if ($phone < 6) {
wc_add_notice( __( 'Billing Phone must be at least 6 digits long.' ), 'error' );
}
}
}