I'm trying to remove validation for the input box on the checkout/payment page(please see pic) whats the best way to achieve this ?
cheers.
mike.
Attachment 7761
Printable View
I'm trying to remove validation for the input box on the checkout/payment page(please see pic) whats the best way to achieve this ?
cheers.
mike.
Attachment 7761
don't like to bump, but BUMP.
Thank you.
Hi. I would be able to provide you the right solution if you provide me with the right question. Which platform you have used to create your site. I am currently working on WooCommerce so I can tell code for that only.
if( true ){ // pass conditional statement here
unset($fields['billing']['add_house_name']); // remove field
$fields['billing']['add_building_name']['required'] = false; // remove required validation
}
return $fields;
Hope it works for your store.
For woocommerce .
Hope this code work.
add_filter( 'woocommerce_checkout_fields', 'misha_remove_fields', 9999 );
function misha_remove_fields( $woo_checkout_fields_array )
{
unset( $woo_checkout_fields_array['billing']['billing_purchase_orderno'] );
return $woo_checkout_fields_array;
}
Snap Window > Preferences and select Validation in the left sheet.
To debilitate individual validators, clear the check boxes beside each validator that you need to impair.
Discretionary: You can likewise change the accompanying check box alternatives on this page:
Snap OK.