How To Hide/Remove Additional Checkout Fields for Specific Products On Checkout
-
0
I have installed WooCommerce Checkout & Account Field Editor plugin on my WordPress website for adding additional fields to my checkout page. The purpose of installing this plugin is to add three additional fields like how_you_heard_about_our_store, user_membership_level and user_refferer_name to the checkout page for getting additional details from my users.
This is working fine and the user can provide the required information as needed during checkout. However, there is one product Gift Certificate that I need to exclude these additional fields on it when this product is on the checkout page.
The purpose is to hide these fields on this product only. I have 4 different variations of this product and I need these fields to be hidden for each of its variations.
I have tried my following techniques but this is actually for default WooCommerce fields.
Also, I have tried the following as well with no luck:
`function custom_override_checkout_fields( $fields ) {
unset($fields[‘order’][“how_heard”]);
unset($fields[‘order’][“member_level”]);return $fields;
}`Is there any specific action or filter for removing additional fields from my checkout page? Any help would highly be appreciated.
- The topic ‘How To Hide/Remove Additional Checkout Fields for Specific Products On Checkout’ is closed to new replies.