V
V
vadbobkov2019-01-24 18:16:18
WooCommerce
vadbobkov, 2019-01-24 18:16:18

How to pull data from products to woocommerce orders?

Good afternoon. There was a task to pull arbitrary meta data of goods into Woocommerce orders. Specifically, when placing an order, there should be hidden fields, the values ​​\u200b\u200bof the meta data fields of the product are displayed there (I could do it).
It remains to make sure that these data are saved when the client clicks on the checkout button, and they were these values ​​in arbitrary meta data already in the order.
How can this be implemented if you go through the steps:
1) Fields with display: none; on the checkout page - Done
2) After clicking checkout, these fields are saved and displayed in custom meta fields in woocommerce orders

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question