Displaying Data from WooCommerce Additional Fields
-
Hey everybody,
I’m creating an e-learning course that, by the end of it, the student will get a certificate. This certificate will have a dynamic field.
When the user purchases this course at the checkout page, I put an additional field (via WooCommerce’s native Additional Fields feature) where they will have to input a five digit number. The certificate will have a dynamic field that will display this info.
What I think the strategy would be to accomplish this is to: create additional code that will be added to the theme’s php file. This code will have to pull this information from each order and display it on each certificate through shortcode.
How would I be able to call this data from a WooCommerce Additional Field (each user enters different values when they purchase the course) and display it through shortcode? I appreciate any help.
- The topic ‘Displaying Data from WooCommerce Additional Fields’ is closed to new replies.