Magento Expert Forum - Improve your Magento experience
-
how to disable validation ?
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.
View more threads in the same category:
-
-
don't like to bump, but BUMP.
Thank you.
-
-
Junior Member
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.
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks