How to use Multiple Conditions

ACF For WooCommerce is a plugin that helps you add the custom fields to WooCommerce Checkout page or Single Product page, even My Account pages.

In some case, you might need to combine the multiple conditions to show the fields; some cases below will show you the examples:

  • Show custom fields on the checkout page if: user logged in & user role is “Loyal Customer,” show at “Before billing form.”
  • Show custom fields on the single product page if: current product category is “Product Cate A,” and show at “Before Add to cart button.”

So, this article will show you how to do this.

Show Custom Field on WooCommerce Single Product Page
Show Custom Field on WooCommerce Single Product Page

So, you see that image above? There’re two things you need to know:

  1. Conditions: You can add as many conditions as you want.
  2. Where to show: You must specify where the fields will be displayed.

If you do not select where to show, the fields will be showned all over the locations if it satisfy the conditions. So remember to select where to show the fields.

Was this article helpful?

Related Articles

Leave A Comment?

92 − 87 =