WooCommerce Conditional Product Fields at Checkout
The WooCommerce Conditional Product Fields at Checkout plugin allows you to display additional product fields at checkout! Fields can be dynamically displayed according to logic rules…and all are done using a nice visual editor!
HOW IT WORKS
Through a visual editor, the plugin allows the creation of extra product fields that will be shown on the Checkout page. Each field can have its own conditional rules by which the plugin determines if it has to be showed. Conditional rules can take into consideration other conditional field values or WooCommerce native checkout field values like:
- Billing fields
- Shipping fields
- Payment methods
Last but not least, each field can be shown just one time per order, one time per product, or one time for each product cart quantity.
For example, you can:
- Create a field that will be shown only if the Billing country is Italy and State/Province is Rome
- Create a field that will be showed only if the payment method is PayPal
- After creating a text field named “field1”, you can create a second field that will be shown only if “field1” contains the phrase “hello world,” and so on!
- After creating a data field “field1”, you can create a second field that will be showed only if the selected date for “field1” is greater than 25th December 2018
And so on!
CONDITIONAL LOGIC AND DYNAMICAL FIELD DISPLAY
Each field can have several “and/or” conditional rules that will make the field dynamically visible only if satisfied. A conditional rule can be related to other fields values or the native billing/shipping checkout fields.
Note: In the case of other custom field values, the logic rule can be created only for fields with the same Display policy and Position options.
The plugin will allow the shop admin to create the following field types:
- Country & state
For each field, you can configure its own options like CSS classes to assign to the input field, placeholder text, show on emails, show on the order details page, row size, etc.
NOTE: HTML field will be displayed ONLY on the checkout page. It can be used to visually organize other fields (for example, creating headings).
VISIBILITY ACCORDING TO PRODUCTS/CATEGORIES
A field can be displayed only for the selected products or categories. If none is selected, the plugin will display one field for each product in the cart. Selecting a category, the plugin will show one field for each product matching the selected categories.
By default, the plugin will show a field for each matching product. However, you can select choosing among the following options:
- Per product: the field will be shown just one time for matching products
- Per cart quantity: the field will be showed N times for matching products, where N is the cart quantity
- One time: just one time if at least one of the selected products/categories matches with the ones currently in the cart.
You can choose where the field will be displayed: after billing or shipping forms.
Note: In shipping form selection, the field will be shown only if the Ship to a different address option has been checked during the checkout. Otherwise, the shipping form won’t be shown by WooCommerce, and then the field will be invisible.
COUNTRY & STATE FIELD NOTE
Can be selected only the states/provinces for the allowed sell countries configured in the WooCommerce -> Settings -> General menu.
If WPML is detected, the plugin will automatically show multilanguage input fields for labels, placeholders, etc. In this way, you can enter different texts for each language.
Additional fields will be seamlessly integrated into (in case of “one-time” field type) or after (in case of “per product” or “per cart quantity” field type) the Billing/Shipping form if the associated conditional rules (if any) are satisfied. Note: In shipping form selection, the field will be shown only if the Ship to a different address option has been checked during the checkout. Otherwise, the shipping form won’t be shown by WooCommerce, and then the field will be invisible.
The plugin will also display some validation messages once the order is placed in mandatory fields, wrong email format, or numeric value in the preselected range.
Additional fields will be seamlessly integrated into the order details page according to the field type. One-time fields are reported under the customer billing/shipping details (according to the field position). The Product/Cart quantity field type is reported under each product they refer to.
NOTE ON ALTERED CHECKOUT FORMS
If you have altered checkout forms adding/removing/customizing fields using a 3rd party plugin, this may interfere with the plugin, causing it not to work properly.