Add custom field order checkout
-
Hi.
I followed this guide (https://lifterlms.com/docs/add-custom-fields-lifterlms-checkout-open-registration/) and added the code to my theme functions.php. The field Company Name appeared on the checkout page. How can I now see what was inputted on that order through the admin-panel? Nothing about a Company Name appears on the specific order. I have looked in my database and the custom field isnt actually saved in the usermeta table…
So this last part doesnt seem to work?
function save_custom_company_name( $person_id, $data , $screen ){ add_user_meta( $person_id, 'llms_company_name', $data['llms_company_name'], true); } add_action( 'lifterlms_user_registered', 'save_custom_company_name', 10, 3);
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Add custom field order checkout’ is closed to new replies.