Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0e6042d

Browse files
authored
Disable zipcode validation on checkout and shipping calculator on cart in WooCommerce Add
1 parent d294822 commit 0e6042d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"generator":"Code Snippets v2.14.3","date_created":"2021年12月23日 22:04","snippets":[{"name":"Disable zipcode validation on checkout and shipping calculator on cart in WooCommerce","desc":"https:\/\/stackoverflow.com\/questions\/51657296\/remove-postcode-from-woocommerce-cart-shipping-calculator\/\nhttps:\/\/njengah.com\/woocommerce-disable-postcodezip-validation-checkout\/","tags":["disable","postcode","zipcode","woocommerce","cart","shipping","calculator","checkout"],"scope":"global","code":"add_filter( 'woocommerce_shipping_calculator_enable_postcode', '__return_false' );\n\nadd_filter( 'woocommerce_default_address_fields' , 'wc_disable_postcode_validation' );\n \nfunction wc_disable_postcode_validation( $address_fields ) {\n $address_fields['postcode']['required'] = false;\n return $address_fields;\n}","priority":"10"}]}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /