Problem with filter additional checkout fields
-
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]
- The topic ‘Problem with filter additional checkout fields’ is closed to new replies.