Autocomplete off
New property for “checkout fields”:
autocomplete = on/off
To be able to turn off autocomplete for certain fields as described here for other properties such as “placeholder”, etc.: https://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

8 comments
-
Anonymous commented
I'm using a jQuery snippet to disable this atm.
add_action('woocommerce_after_checkout_form', 'insert_my_js_uprs');
function insert_my_js_uprs() {
?>
<script>
jQuery(document).ready(function($){
jQuery(':input').live('focus',function($){
$(this).attr('autocomplete', 'off');
});
});
</script>
<?php
} -
Reid Burnett commented
Y'all, all you need to do is something along these lines...
```
function change_address_field_type( $fields ) {
$fields['billing']['billing_address_1']['attr']['autocomplete'] = 'off';
return $fields;
}
``` -
KoolPal commented
Ha ha ha! 3 years after "idea" was posted, it was updated as Needs Research. Obviously research will take another couple of years!
-
David commented
Definitely an issue.
-
Ricardo Araújo commented
totally agree! Please fix it asap! thanks
-
Rob Watson commented
4th. It's causing clients of mine to have to ship orders twice when address autofills go wrong. Please fix ASAP. I don't want to have fork the woocommerce templates or use functions.php intercepts to do this.
-
Nathan commented
3rd this especially as browsers will be displaying a not secure message under the form element if a proper ssl certificate is not present. Opera has already implemented this saying login not secure which can and will scare customers and is now very important to be be able to access this property.
-
Lasse Kristiansen commented
I second this. A way too large portion of our orders have the wrong address due to autocomplete, so a way to set autocomplete='off' on checkout fields would save our customers and ourselves a lot of headache (and money, no less).