Skip Navigation

[Resolved] I want to add users to a membership plan

This support ticket is created 6 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 6 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#741935

Tell us what you are trying to do?

I try to create a membership site. The users can register and the they are redirected to post form to create a CPT said SOCI. The users that has paid the SOCI payment they has the possibility to create more SOCIs and pay for new activities (INSCRIPCIONS A ACTIVItATs) for theses new SOCIs. So every USER can add and pay for more that one SOCI and the child CPT that is INSCRIPCIO. A SOCI is a member of the club.

There are some SOCIs that has done the payment through another method that is not he website. I know that I can add the SOCIs through the backend. But my question is how can I do to give the possibility that when a USER registers at the website they can said that he has paid through another method for a certain SOCI, or more than one SOCI. Is there a way to do this?

Thanks,

#745681

Hi, it depends if you want the new User to select the SOCI for himself, or if you want an admin in the backend of the site to select the SOCI.

If you want an admin to select the SOCI after the User registers, then you can add some custom User fields and allow the User to fill in any information that the admin needs to associate the new User with an existing SOCI. Maybe a checkbox that says "I already have a SOCI", and another text field that they can use to describe the SOCI.

If you want the new User to select the SOCI in the CRED form, this is pretty complex but you could accomplish it with generic CRED fields and the CRED API.
- Create 1 generic checkbox field "I already have SOCI". If the checkbox is checked, show the next field.
- 1 multiselect field that contains a list of all the SOCIs that are available. The User can pick their SOCI(s) here. You can use a View to populate the options of this field. Another ticket on the site discusses this approach: https://toolset.com/forums/topic/how-use-a-shortcode-instead-of-options-for-cred-forms
- Use the cred_save_data API to set the User as the author of those selected SOCI posts.