My website would be used in a way so that parents can register their kids for some activies/programs. They should be able to register one or more kid per program. I have added a repeating field group (name, age, gender) to the orders post type so that they can enter their kids details.
There are 2 things that I am trying to acheive here:
- Parents can either enter the kids details directly in the order form, or select kids from the customer post type "Kids" which would contain the same details entered seperatly by the parent through his account.
- If the parnet select Quantity for the program (which is number of seats in this case), he should be able to enter a maximum number of kinds equivelant to the quantity,
Can you please guide me to possible options to acheive this solution?
Hello. Thank you for contacting the Toolset support.
Repeating field group is treated as one to many post relationship internally between the post type parent (one) where you set to display the repeating field group and child post type (repeating-field-group-slug) is (many) repeating field group items.
In general, user should register first his order form with your order post type and then you should redirect user to another page where you can offer the repeating field group to add kids information.
Ok, I will build the logic as explained, but there is one thing that I have niticed, I needed the kids details to be linked per item in cart. So, for example, for item 1, the parent may need to add Alex and Sara, but for Item 2, the parent may add only Mark.
Would the repeating fields work here, or shall I use a custom post for this?