WP Rocket - WordPress Caching Plugin

How to create a matching homepage using WordPress! Plugin [HivePress] How to hide the address input field when making a WooCommerce payment

At HanamiWEB Online School,

●Ask questions in real-time in the virtual study room!

●Ask as many questions as you want via chat!

●E-learning materials that you can learn as much as you want, 24 hours a day!

All included for just 2,500 yen/month!

We explain HivePress, which allows you to create a matching site for services that are intangible products.

To generate payments, we added the paid extension MarketPlace and the free extension WooCommerce.

When users purchase a service, an address entry field appears.

Here's how to solve this.

Install the Code Snippts plugin

  • Plugin
  • New additions
  • Enter [Code Snippets] in the keywords
  • Install now
  • activation

To do.

Add code

The Code Snippets plugin is a great plugin that will safely add code to your function.php.

Click Add New and enter the following code:

add_filter( 'woocommerce_checkout_fields' , 'bbloomer_simplify_checkout_virtual' ); function bbloomer_simplify_checkout_virtual( $fields ) { $only_virtual = true; foreach( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { // Check if there are non-virtual products if ( ! $cart_item['data']->is_virtual() ) $only_virtual = false; } if( $only_virtual ) { unset($fields['billing']['billing_company']); unset($fields['billing']['billing_address_1']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_city']); unset($fields['billing']['billing_postcode']); unset($fields['billing']['billing_country']); unset($fields['billing']['billing_state']); unset($fields['billing']['billing_phone']); add_filter( 'woocommerce_enable_order_notes_field', '__return_false' ); } return $fields; }

Actually, I enter it like this:

After purchase, you will need to enter

  • Surname
  • given name
  • Email address

And it's that simple!

HanamiWEB

The person who wrote this article

Matsuura Misa

HanamiWEB Co., Ltd. / Web Production, SEO, and AI Search Engine Optimization Support

Based in Nerima Ward, Tokyo, we provide support for small and medium-sized businesses, including website creation, SEO measures, and site design that anticipates the era of AI search.
I specialize in practical improvement suggestions using WordPress and content design that focuses on customer acquisition funnels.
We also provide website maintenance and operation services.

We are available on weekends and holidays!

Please contact us if you have any problems with your website!

- Unable to log in to WordPress

Malware infection?

- The homepage suddenly stopped displaying!

- A PHP error is occurring.

We also offer support on weekends and holidays for those who need assistance.

If you are in a hurry, please call us now at 03-6694-7024.

Latest Articles

Timing and Process for Renewing Your Recruitment Website | Key Points to Review to Increase the Number of Applications
7 Key Points for Creating a Recruitment Website | How to Create a Recruitment Site That Job Seekers Will Choose
What is the average cost of a recruitment website? A thorough explanation of pricing by production method.
5 Benefits of Creating a Recruitment Website with WordPress | Explaining Why It's Easy for the Person in Charge to Update
en_USEnglish