Home Forums WoodMart support forum Checkout Field Editor (Checkout Manager) for WooCommerce / Validation Rules

Checkout Field Editor (Checkout Manager) for WooCommerce / Validation Rules

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #164731

    perelview
    Participant

    Dear Team,

    We are using Checkout Field Editor (Checkout Manager) for WooCommerce | By ThemeHigh
    https://wordpress.org/plugins/woo-checkout-field-editor-pro/

    We also found quite a few references to this tool in this forum.
    The problem we are facing is our goal is to remove “billing_country”, “billing_state” and “billing_postcode” fields from our checkout process entirely. When we did it (using the checkout field editor plugin) – We can see the fields were removed from the checkout page alright, but when the user submits the form – gets a validation error “Please enter your address to continue”.

    For now I have left it like this so you can see/experience it yourself (Private Content).

    I have checked this functionality against a vanilla wordpress and the checkout field editor is working alright – probably because the default woocommerce does not use ajax for validation as this is something developed by xtemos.

    Please advise how can we solve this and remove the unwanted fields and still successfully pass validation.

    Thank you very much!

    Attachments:
    You must be logged in to view attached files.
    #164794

    Hello,

    The Checkout Field Editor (Checkout Manager) for WooCommerce and Vanilla are the third party plugins. As you want to remove the “billing_country”, “billing_state” and “billing_postcode” fields from checkout. The default WooCommerce does not provide such an option. As soon as the checkout has been filled out and there are empty fields, WooCommerce shows the notice.

    Those fields are created as required by default WooCommerce functionality and also the functionality for validation is default WooCommerce, you can check with any default theme like twenty nineteen.

    If you set “I sell to only one country” in WooCommerce settings, that country will appear in checkout and the country field will be read only and then hide the state field by using below CSS code in global custom CSS area under theme settings >> custom CSS:

    You can hide it with some custom css:

    #billing_state_field {
      display: none;
    }

    To hide the postcode field you can use the below code in funtions.php

    function custom_override_checkout_fields( $fields )    
    {
    unset($fields['billing']['billing_postcode']);
    return $fields;
    }
    add_filter('woocommerce_checkout_fields','custom_override_checkout_fields');

    Best Regards.

    #164801

    perelview
    Participant

    Thank you very much guys! Awesome as usual!

    #164809

    Most Welcome :)

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Checkout Field Editor (Checkout Manager) for WooCommerce / Validation Rules’ is closed to new replies.