• romeon

    (@romeon)


    When svea is activated i can’t remove the order notes field. Any solution? below is the code

    add_filter( 'woocommerce_enable_order_notes_field' , '__return_false' , 9999 );

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author The Generation

    (@thegeneration)

    Currently, our template does not use that filter but we have added support for it in the new version that’s coming in a few weeks.

    If you want the functionality right now before the new version is released, you can override the template file and remove the order notes field from there.

    Kind regards,
    The Generation

    Instead of the mentioned override of the template file, this might work better:

    add_filter( 'woocommerce_checkout_fields' , 'remove_order_notes_field', 20, 1 );
    function remove_order_notes_field( $fields ) {
    unset($fields['order']['order_comments']);
    return $fields;
    }

    For more info see: https://www.ads-software.com/support/topic/disable-order-note-field-in-checkout/#post-17987063

    Plugin Author The Generation

    (@thegeneration)

    Just wanted to follow up on this. Could you please try the latest version and see if your code works?

    We’ve tested it on our end but would like a confirmation from you as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.