• Resolved jonneman

    (@jonneman)


    Hi,

    I’ve been struggling for days now, but can’t seem to get rid of a built-in field inside a custom build shop-theme.
    They added an extra row to the standard billing info block, which is supplementary to the standard ‘order notes’ field.
    But after endless efforts of filtering this element out, the check-out page breaks or the element stays where it is.

    This is the current filter I added to the funtion.php inside child theme>woocommerce folder:

    //remove Additional Notes Theme Field
    add_filter( ‘woocommerce_additional fields’ , ‘remove_wpvmp_woofields’ );

    function remove_wpvmp_woofields( $fields ) {
    unset($fields[‘additional’][‘wpvmp_woofields’]);
    return $fields;
    }

    This filter being based on the standard filter to remove the complete order notes combined with the code referring to the ‘wpvmp_woofields’, which is the found when inspecting with Chrome under the insection tree additional fields and responsible for the field I want to remove.

    But also replaced the parent shipping.php and function.php from the parent and the main theme, but low and behold….it’s still there!

    So anyone who would like to dive into this and help me out is much appreciated!
    If you need more insight on how the page scripts are looking, just go to videoanimations.nl, go to the shop and select an item. When you then go to checkout, you can inspect the complete code by yourself.

    Cheers,

    Jon

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    Without knowing the full extent of the custom coding that has been made, the only thing I can think of is to make sure that the hook you’re using is the right one.

    To see a full list of all the hooks/filters that’s executed on any given page, you could install https://hookr.io/plugin

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @jonneman

    For advice around this, I would recommend reaching out to one of our vetted developers on the WooCommerce.com Customizations page or join the WooCommerce Slack Community.

    Googling for wpvmp_woofields I found this thread on Stack Overflow that might help.

    I’m going to mark this as “resolved” as it is not a core support query but is based on customization – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with filter additional checkout fields’ is closed to new replies.