you can try it for address not required .
add_filter( 'woocommerce_billing_fields', 'wc_optional_billing_fields', 10, 1 );
function wc_optional_billing_fields( $address_fields ) {
$address_fields['billing_address_1']['required'] = false;
$address_fields['billing_address_2']['required'] = false;
return $address_fields;
}
Related Posts:
- help I changed one currency in woocommerce and everything is ruined [closed]
- wp_enqueue_script was called incorrectly
- Remove type attribute from script and style tags added by WordPress
- How to display custom field in woocommerce orders in admin panel?
- How to create a custom order status in woocommerce!
- How to show product SKU on product page
- How to get woocommerce inventory status [closed]
- Woocommerce add to simple product attribute programmatically [closed]
- In WooCommerce I need to modify the thankyou.php page [closed]
- How can I add an extra WooCommerce hook
- How to Acheive the custom woocommerce category template
- Remove Menu Page Giving Error
- Remove product description from product archive page
- Hide some items from Screen options in dashboard for products
- display 100 products per page on product category page [closed]
- Adding WooCommerce to a Custom Theme – not working [closed]
- Can you use admin pages functionality on the frontend of your site
- Creating loop within functions.php
- Override woocommerce wc-class function
- Display WooCommerce subscriptions for user [closed]
- Increment price for Woocommerce Minicart [closed]
- Change woocommerce products weight varation based its product category or tags? [closed]
- Why is my Gutenberg block returning an error after initial save?
- Pass parameters to function through an action
- Debugging with functions.php
- Woocommerce checkout field maxlength, make input number field only (postcode)
- change in form-checkout.php by using code in functions.php
- Set quantity of woocommerce product on page visit [closed]
- Selective Product Category for Carousel
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- How to display custom option field in woocommerce orders in admin panel?
- How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page
- How to auto refresh when user change postcode
- Remove the product category module block from the Woocommerce product page
- Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images
- woocommerce change currency per category [closed]
- Functions when woocommerce isn’t installed
- How to override woocommerce.css?
- Connecting to a 2nd DB gives me no results when querying
- debugging errors.. how to remedy?
- How can I use Woocommerce $product->get_attribute in functions.php? (if at all)
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- (Woocommerce) Order by price when entering specific category
- Functions Error: Impacting Galleries
- replace text in Sort Box
- Woocommerce checkout field
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- add referrer to woo
- Way to redirect all Product Sub Category to its Main category Page?
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Create a Woocommerce product widget with category filter
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- How add body_class from wp_termmeta
- Adding product to WooCommerce cart [closed]
- Change WooCommerce add_to_cart Button Text?
- WooCommerce -> wc_enqueue_js not working [closed]
- Use existing image sizes for WooCommerce
- Strange error from functions.php files (wp_register_script)
- Show errormessages on wrong username/password on custom loginform?
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to hide content on mobile in the functions.php file – woocommerce
- Woocommerce Default sorting product by product type
- How to hide WooCommerce product title and short description to non logged in users?
- localize_script but data changes dependent on product ID
- functions.php pharse error on complete new install
- Change class woocommerce on function.php
- Hide ‘add to cart’ when certain value in dropdown is selected
- removing description tabs – single product page – breaks footer
- Link product attribute value to a URL – woocommerce
- Remove text after a dot and a colon in Woocommerce product title
- price of product can’t return when get data of product in functions.php
- Woocommerce product price change
- Help with with my function for wordpress
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- Problems adding a new field to product in cart
- Variable function names
- Override plugin function to show invoices even if not logged in
- Woocommerce – Switching Price for Category
- how can I change the read more link destinations and direct all to the same page?
- Woocommerce custom calculation function
- button to toggle css styling / div visibility?
- add product thumbnail to checkout page only and include variation name
- Echo a String Based On Geolocation? [Woocommerce || ACF]
- Move product attributes after summary on single product page
- Which method is more correct for removing WooCommerce Extensions menu item?
- Show number of sold products but be first for less than 2
- I’m getting invalid taxonomy in init action
- Insert menu into theme location depending on user logged in/out status
- What is wrong with functions.php? Fills error log with same error
- Random text changing to weird icons in both admin & front end
- Why does modifying my functions.php file always result in a server error
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Get term count on a category page
- add variable to actions/functions across different files (woocommerce)
- reusing code in function and running it with loop
- Comment turned Invisible
- Logout redirect via page template without confirmation?
- woocommerce_sort_product_tabs() expects an array
- Is it possible to set the first image from a gallery as the product image, rather than the featured image?
- Copy and Modified WooCommerce function is_coupon_valid [closed]