Add new field on payment form and add it to the order result
-
Hello,
I’m building an e-commerce website. I need to create for each bought product a licence key. And i need to display this licence key in “my order” page.
More, at the buy action, when the licence key is created, i would push in my database, separate to the order scheme 3 things : “order ID”, “order licence key”, and “number”.To create new field on form i downloaded “flexibe checkout fields” but here’s my point. How can i handle the new created field to create : licence key (or token) and then push it into the order database scheme ? I tried to find the way woocommerce push data but didn’t found it.
Same for retrieving the new field created.
And for pushing in a new post type (order ID, licence and number) i think i can created custom post type and push it into.Do you think all of this is possible ?
(Sorry about my english, that’s not my native language).
Thank’s for all
- The topic ‘Add new field on payment form and add it to the order result’ is closed to new replies.