Can’t add custom fields to checkout form
-
Are you somehow blocking the addition of custom checkout fields? The following example code doesn’t work once a woofunnel checkout is used, but works for default WooCommerce:
function add_custom_checkout_field($fields){ $fields['billing']['test_field'] = array( 'label' => 'My Field', 'required' => false, 'type' => 'text' ); return $fields } add_filter('woocommerce_checkout_fields', 'add_custom_checkout_field');
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Can’t add custom fields to checkout form’ is closed to new replies.