HomeMy account

My account

Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.

Copyright: © 2024 The Trybe City Technology Limited . All Rights Reserved.

document.addEventListener("DOMContentLoaded", function() { // Get the billing fields container const billingFields = document.querySelector('fieldset#billing-fields.wc-block-checkout__billing-fields'); if (billingFields) { // Find all input fields within the billing fields container const inputFields = billingFields.querySelectorAll('input, select, textarea'); inputFields.forEach(field => { // Check if the field is not required if (!field.required) { // Remove the parent element of the field field.closest('.wc-block-components-address-form__field-wrapper').remove(); } }); } });