Dear Abundance Support,
On the checkout page is there a way that I can change the "Order Notes" title to my own title which I would ideally like to say "Delivery Date and Message".
Thanks,
Minnoe
Another Cart Question
6 posts from 3 voices-
Posted 9 months ago #
-
Try to add following code to functions.php (at the very bottom):
// Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); add_filter( 'woocommerce_billing_fields' , 'custom_override_billing_fields' ); function custom_override_checkout_fields( $fields ) { $fields['order']['order_comments']['placeholder'] = 'My new placeholder'; $fields['order']['order_comments']['label'] = 'My new label'; return $fields; } // Our hooked in function - $fields is passed via the filter! function custom_override_billing_fields( $fields ) { $fields['order']['order_comments']['placeholder'] = 'My new placeholder'; $fields['order']['order_comments']['label'] = 'My new label'; return $fields; }and replace "My new placeholder" (without "") and "My new label" (without "") with your custom text/message.
Posted 9 months ago # -
Because you asked how to edit the template directly - you need to use a ftp software like filezilla. Connect to your server and navigate to wp-content/plugins/woocommerce/classes/class-wc-checkout.php and search for following code:
$this->checkout_fields['order'] = array( 'order_comments' => array( 'type' => 'textarea', 'class' => array('notes'), 'label' => __('Order Notes', 'woocommerce'), 'placeholder' => _x('Notes about your order, e.g. special notes for delivery.', 'placeholder', 'woocommerce') ) );Posted 9 months ago # -
Hi,
I was about to answer this on another thread which is obviously the same here. Yes, that is correct, I think you are talking about the checkout page not the cart page.
Please stick on your post. :)
Cheers,
IsmaelPosted 9 months ago # -
Thank you,
MinnoePosted 9 months ago # -
Hi Minnoe,
Glad that this is resolved. :)
Cheers,
IsmaelPosted 9 months ago #
Topic Closed
This topic has been closed to new replies.














