Filter the Additional Information Placeholder Text field in WooCommerce

remove order notes field woocommerce

You can filter the Additional Information placeholder text field in WooCommerce checkout page with the woocommerce_checkout_fields filter. Use it in functions.php like so… add_filter( ‘woocommerce_checkout_fields’ , ‘wpb_custom_additional_info’ ); // Change placeholder text in Additional Notes function wpb_custom_additional_info( $fields ) { $fields[‘order’][‘order_comments’][‘placeholder’] = ‘Add a Shipping address here if different from Billing Address, or any additional…

Read More

Remove the Additional Information and Order Notes fields in WooCommerce

remove order notes field woocommerce

You can remove the Additional Information and Order Notes fields in WooCommerce checkout page with 2 filters that you add to your themes functions.php file // Removes Order Notes Title – Additional Information & Notes Field add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’, 9999 ); // Remove Order Notes Field add_filter( ‘woocommerce_checkout_fields’ , ‘remove_order_notes’ ); function remove_order_notes( $fields ) {…

Read More

Filter WooCommerce Order Received Thank You Text

You can filter the text on a WooCommerce order received after checkout, by default the text reads ‘Thank you. Your order has been received’, but you may want to add some further instruction, which you can do using the filter woocommerce_thankyou_order_received_text <?php add_filter( ‘woocommerce_thankyou_order_received_text’, ‘wpb_thankyou’ ); function wpb_thankyou() { $added_text = ‘<p>You can access the PDF…

Read More