validate-postcode in City fields
-
Hi
Somehow the plugin is adding postcode validation to City field and we got this message in Checkout.
City is not a valid Post Code.
This is the code for the City field. As can see in the source code, there is a class “validate-postcode”.
<p class="form-row form-row-wide wooccm-field wooccm-field-city wooccm-type-text address-field validate-postcode validate-required woocommerce-validated" id="billing_city_field" data-priority="70" data-o_class="form-row form-row-wide wooccm-field wooccm-field-city wooccm-type-text address-field validate-required validate-postcode"> <label for="billing_city" class="">City <abbr class="required" title="obligatorio">*</abbr></label> <span class="woocommerce-input-wrapper"> <input type="text" class="input-text wooccm-required-field" name="billing_city" id="billing_city" placeholder="City" value="Mos" data-required="1" autocomplete="address-level2"> </span> </p>
Since I’ve deactivated the plugin I get this without validate-postcode:
<p class="form-row address-field validate-required form-row-wide woocommerce-validated" id="billing_city_field" data-priority="70" data-o_class="form-row form-row-wide address-field validate-required"> <label for="billing_city" class="">Población <abbr class="required" title="obligatorio">*</abbr></label> <span class="woocommerce-input-wrapper"> <input type="text" class="input-text " name="billing_city" id="billing_city" placeholder="Ciudad / Población" value="Mos" autocomplete="address-level2"> </span> </p>
Is there any setting where define the type of data of each field ?
As I’v seen City is text type but I cannot see anything related to postcodesThanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘validate-postcode in City fields’ is closed to new replies.