Skip Navigation

[Resolved] User Accounts and Child Users

This support ticket is created 6 years, 1 month 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1151421

Ian

I have a unique situation.

I am setting up a site for a childrens dance studio. I will be selling six month dance packages. Parents can buy six months for 1, 2, 3 or 4 children. This is all straight forward and I think I have it all figured out.

Where things get more difficult is around memberships. I am not selling memberships the parent or guardian, should become a member of the site when they buy a package, but unlike the dance package the membership does not expire. I do however need some way to indicate that the parent has children currently signed up to the program or not.

The parent should have an account page that shows their contact information etc, this will be editable by the parent and visible to the site admin.

Where this gets tricky I would like the parent to be able to create (or have created at signup) accounts for their children as well. This will be used when logged in to :
• Show a child information about current class and schedule
• Allow the child to fill out a number of forms, such as size information for costumes and T-shirts

However Parents should also be able to edit their Childs forms.

Should this be set up as different membership levels?
Should Children be set up as a separate post type so I can do post type relationships?

#1151723

Hi,

Yes, I agree with you, you can setup Children as a custom post type.

When the parent(WordPress user) log in your website, display a wordpress page, in this page, display below:
1) A post form for creating "Children" post, and charge them with payment:
https://toolset.com/documentation/user-guides/using-cred-commerce-to-add-payments-to-forms/
You can also setup the expiration date of "Children" post
https://toolset.com/documentation/user-guides/automatic-post-expiration/

2) A post view, query "Children" post, filter by post author is current logged-in user:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/#post-author-is-the-same-as-the-logged-in-user
Display related children information, and edit form link
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/