I created a fee form. I need to know the order number WOOCommerce that has been paid or not, but attached to the form, how to do it?
I want to see the order number, for example, on the post page in admin mode.
While you are not able to get the order number for the specific form and if they have paid from the frontend. However you are still able to display the orders on the frontend with this method below.
Hello, Shane!
This is not exactly what I want.
I use Toolset forms for paid posts, not everyone completes the post with payment, sometimes I don’t see that the payment has been completed, and accordingly there is no way to find out what order and for what. Some orders are already without participation of paid forms. Comparing orders is very difficult, since there are a lot of them. How to attach an order number to a paid post?
We have an order complete hook that should be able to get this done for you. If you setup a field in Types to hold the order number then we can write a code like this.
Add this to your Toolset custom code section in Toolset -> Settings -> Custom Code and activate it. Please note that you will need to change 123 to the ID of your form and 'wpcf-order_num' to the slug of the custom field that you've created keeping the wpcf- prefix when you add the new slug to the code.
Please let me know if this code helps.
Thanks,
Shane