Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Hi,
For the website I develop for a student organization, it must be possible to register and buy a membership.
I am using your plugin for the account registration part. I have created a registration form, and when the user succesfully fills in all the necessary data (validation passed etc.), and presses register, 2 things must happen:
1. a product must be added to Woocommerce
2. a unique membership number must be generated
3. redirect to checkout page
I know what code i have to write for this, but my problem is basically. Where do I put this code logic? I want to do it in the most appropriate way, so I was searching for documented hooks and or filters on your site, but I couldn’t find. For redirect I can use the parameter for the shortcode
I’m still working on documentation.
You can use do_action(‘userpro_after_new_registration’, $user_id); to process actions after registrations.
Thank you, do you also know how i can extend the shortcode so i can put a woocommerce product id (membership product) so when the user is registering, the code will check and know that it must add that product to the cart also?
You must be logged in to reply to this topic.