Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

kadence theme unset woocommerce custom field

Home / Forums / Kadence Theme / kadence theme unset woocommerce custom field

This topic is: Awaiting Feedback
[Awaiting Feedback]
Posted in: Kadence Theme
August 1, 2023 at 8:06 pm

Hi team

I am using the woo extras kit to add some extra fields to checkout

I have created a new field called “helmet_size” (textarea) which is a required field.

However, with a staff login, I want to remove that field from the checkout – but I don’t know how to target it.

For example, in woocommerce standard fields e.g. phone, I can do this:

unset($fields[“billing”][“billing_postcode”]);

But how can I target the custom field ?

unset($fields[“billing”][“helmet_size”]);
unset($fields[“shipping”][“helmet_size”]);
unset($fields[“billing”][“helmet_size_field”]);
unset($fields[“billing”][“helmet_size”]);
unset($fields[‘order’][‘helmet_size_field’]);
unset($fields[‘order’][‘helmet_size’]);
unset($fields[‘kt_checkout_fields’][‘helmet_size’]);
unset($fields[‘kt_checkout_fields’][‘helmet_size_field’]);

I’ve tried all of the above but not working.

  • This topic was modified 2 years, 10 months ago by Anonymous 671.
  • The forum ‘Kadence Theme’ is closed to new topics and replies.