How to remove phone number prefix entered in checkout?
-
Basically I’m trying to remove the phone number prefix say +56 from the entered full number so that in the created / generated order it only includes the number without the prefix.
I have tried this, but didn’t work so far:
function remove_prefix_checkout_field_input_type_phone_number() { echo "<script>document.getElementById('billing_phone').pattern = '(^[\s\S]{0,3}]';</script>"; } add_action( 'woocommerce_after_checkout_form', 'remove_prefix_checkout_field_input_type_phone_number');
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to remove phone number prefix entered in checkout?’ is closed to new replies.