Custom WooCommerce checkout fields in actions
-
Hey!
I’m using the WooCommerce trigger ‘A user purchases a product’ for my shop and the WordPress action to send them an email after the purchase.
I have this special promotion where the user has to register his/her friends. For each friend there’re 3 fields. Name, last name and email. I’ve added those fields dynamically with a plugin so those only show when the product is on the cart.
I need to send an email to those friends notifying them of the gift when it has been purchased. The amount of friends is unlimited, sort of. I’ve added up to 10 sets of fields of each (name, last name and email).
Since those fields aren’t really originally from WooCommerce, they’re not displaying on the WooCommerce dropdown. I’ve seen there’s a custom way to add fields with {{USERMETA:KEY}}. I was wondering how would i be able to get the data from my custom fields using those ids to add my custom fields inside your plugin.
I’d grateful for any help provided.
Regards
- The topic ‘Custom WooCommerce checkout fields in actions’ is closed to new replies.