order notes
-
Hi, I’m trying to add a custom “Order Notes” field in the WooCommerce block-based checkout. I want it to:
- Save to order meta so it shows in admin.
- Display on the Thank You page and in customer order details.
- Be included in emails.
Has anyone successfully added a custom order notes field in the block-based checkout? Thanks!
Krzysiek
-
hey @krzysztof sorry about the late reply
this seems like a custom programming task you're trying to do. are you a developer?
as you may have seen, lay theme's checkout uses the checkout shortcode instead of the blocks
if you look at this step:
https://laytheme.com/documentation/shop-setup.html#preparationyou see that we replace the cart and checkout worpdress blocks with the shortcodes instead.
if you use blocks, i think blocks mayprovide you with action hooks or filters that you can use to insert your custom code. you may need to sift through any documentation you can find about this or the woocommerce code itself on their github.
you could either create a wordpress plugin for this or use the https://wordpress.org/plugins/code-snippets/
code snippets plugin to add your php code
Save to order meta so it shows in admin.
you'd need to custom code this
Display on the Thank You page and in customer order details.
this too
if you look at the thank you php:
lay\woocommerce\checkout\thankyou.php
lay\woocommerce\thankyou\thankyou_style1.phpyou may find some filters or action hooks to insert your code
if not, you would need to override the templates:
https://woocommerce.com/document/saved-addresses-for-woocommerce/how-to-override-templates/same for emails
I can do this custom development job for you but due to the complexity and time it would take me to do it, it would probably take like around 10 hours or 900€ plus taxes
or more, depending on your exact needsi see you also wrote me an email about this
sorry for replying late, was just super busy with coding some things for lay theme lately -
OR
you may be able to find a plugin that does what you want
cause now i see youre talking about order notes, which should theoretically be a feature many other people would also wanted or need with woocommerce shops
i was just more like looking at your points about thoughts on how to code this
but i bet theres a plugin for this if you can find it
or maybe even a standard feature that is shipped with woocommerce
https://wordpress.org/plugins/woo-order-notes/
how about this
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Our Web Development company: 100k.studio
Want to tip me? https://www.paypal.com/paypalme/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it