I have following problem: orders page
I have a Contact Form 7 with 2 dropdown options for ordering tickets for an event, no user registration. This works fine but it doesn't save any form data in the "orders" page of woocommerce like the included image, which makes keeping track of orders difficult. In additional settings of the contact form I have following:
on_sent_ok: "switch(document.forms[0].elements["registration_type"].value){case "Normal Registration": location.replace('url/checkout-3/?clear-cart&add-to-cart=325&quantity=1');break;case "Presenter Registration": location.replace('url/checkout-3/?clear-cart&add-to-cart=327&quantity=1');break;};"
Which inserts the order in to Woocommerce but I need customer data like name adress and email too. Unfortunately I am not efficient with this type of code yet, can anyone bump me in the right direction?
Thanks in advance!
wpcf7_mail_sent
to save the form data in session then save them later in custom fields when order is created (usingwoocommerce_checkout_order_processed
action) and display them on the order page using meta boxes. If you don't know how to proceed I will ellaborate an answer. – vard