Status “On hold”
-
Hello! How to make the “On HOLD” status send “Purchase note” which is specified in the “Additional” product card settings. Unfortunately, the note only comes when the status changes to “Done”
-
Hi @vengr7262525!
As you stated, WooCommerce sends the product purchase note after a customer makes the purchase. There is no option in WooCommerce core to send it with the On Hold status; it would require custom coding to achieve it.
Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.
For additional assistance on this topic, we recommend getting in touch with one of the customization experts listed on the WooCommerce Customizations Page.
Also, if you are into coding, you can visit the WooCommerce Facebook group or the
#developerschannel of the WooCommerce Community Slack, you could find help from the community of open-source developers for WooCommerce that hangs in there.Cheers!
thanks for the answer! I really hope someone can help. The issue is not resolved!
Hi @vengr7262525,
This would require some familiarity with custom code and customization.
You can start by overriding the
customer-on-hold-order.phpfile found in woocommerce/templates/emails/. To override that template follow the instructions on this page:https://woocommerce.com/document/template-structure/#how-to-edit-files
Once you’re editing the
customer-on-hold-order.phptemplate file of your child theme, copy/paste the following code (on line 28 for instance):<?php $items = $order -> get_items(); foreach ( $items as $item ) { $product = $order -> get_product_from_item( $item ); // copied from woocommerce/templates/emails/email-order-items.php $purchase_note = get_post_meta( $product -> id, '_purchase_note', true ); echo wpautop( do_shortcode( wp_kses_post( $purchase_note ) ) ); } ?>I borrowed the code from this Stack Overflow thread.
It’s working and tested on one of my staging sites. This is a screenshot of the purchase note being added to the
Order on-holdemail sent to the customer.
Image Link: https://snipboard.io/bESDut.jpgMake sure you have a full backup in place of your site and database before making any changes to your site. You could consider using a service like Jetpack or installing a plugin like UpdraftPlus. If something goes wrong it’s nice to know that you can restore your site to the previous state.
Hope this points you in the right direction.
everything worked thank you very much! It turns out that after you have done this operation, you need to go to the product settings and there click update the product or update the note to it in the product settings.
@rainfallnixfig I have one more question, how to display on the page “Your order is accepted. Thank you.”
note information? screenshot attached
https://i2.paste.pics/53f8b6d6a0d8b4794ce5f37f804a74ee.png
-
This reply was modified 4 years ago by
vengr7262525.
-
This reply was modified 4 years ago by
vengr7262525.
-
This reply was modified 4 years ago by
vengr7262525.
Just to be sure, do you want to add this without any conditional, is that correct?
If so, you can add this as a Purchase note, since the code is pulling data from that field!
Let me know if this is not exactly what you’re looking for!
All the best,
Now we have implemented so that a “purchase note” comes to the mail. It got done. Now the task is to show the information “purchase note” with all the other data as in the screenshot on the site page, after placing the order.
To display purchase note information under any row
https://i2.paste.pics/53f8b6d6a0d8b4794ce5f37f804a74ee.png
-
This reply was modified 4 years ago by
vengr7262525.
Hi @vengr7262525,
everything worked thank you very much!
Great! Happy to hear it worked for you 👍
how to display on the page “Your order is accepted. Thank you.”
If you mean to display the purchase note on the thank you page after an order is submitted take a look at the snippets provided in these threads that might also work for you.
* https://wordpress.org/support/topic/purchase-note-placement/
* https://wordpress.org/support/topic/add-purchase-note-to-order-details/If you require more help with customizations, we’d highly recommend hiring a developer or one of the customization experts listed at https://woocommerce.com/customizations/.
Cheers!
-
This reply was modified 4 years ago by
Mirko P..
https://wordpress.org/support/topic/purchase-note-placement/
This helped me!
@rainfallnixfig oh it’s good that you exist. I solved all my problems! THANK YOU VERY MUCH!
-
This reply was modified 4 years ago by
The topic ‘Status “On hold”’ is closed to new replies.