Archived topic
Adding a serial code to an order
3 replies · Started by SLIM on January 4, 2022
This is not really a generatepress inquiry, but you guys always utilize the BEST plugins... without adding a huge plugin to woocommerce... I want to do this:
So we sell products, but the products thsemselves have serial numbers. However we can't automate the process, because the product in question comes out of a warehouse and until the product has been ordered we don't assign a serial number :)
I thought, maybe i could EDIT THE ORDER NUMBER and just make it the SERIAL NUMBER. However it doesn't seem to be possible to edit an order number after it's been generated. So.. we've just been ADDING the serial number to the ORDER NOTES. However... if we wanted to SEARCH which serial number belonged to WHICH order that's not possible :(
Could you recommend a plugin I could do this with :) ?
Hi there,
Woocommerce has a filter hook called: woocommerce_shop_order_search_fields which can be used to add search fields to the order admin screen - heres an example of it being used to search by custom field:
https://stackoverflow.com/a/36471585
So thats a possibility after you add the custom field to the order, which Woo offers a paid extension for:
https://woocommerce.com/document/woocommerce-admin-custom-order-fields/
You are too awesome. Works like a charm! - i even managed to do it without that plugin :P
Even better! Glad to be of help!