Skip Navigation

[Resolved] Custom Fields on Order Form

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 1 year, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2679995

Dear Toolset Support,

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?

Regards,

Aziz

#2679997

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

Here is the Doc that shows information how you can create forms for repeating field group.
- https://toolset.com/course-lesson/front-end-forms-for-repeatable-field-groups/

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.

Does this makes sense?

#2680456

Thank you for your response.

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?

Regards,

Aziz

#2680606

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

If you want to build a store - you will have to use Toolset Forms Commerce. That will work only with WooCommerce Product post type.

Please check the following Docs:
- https://toolset.com/course-lesson/charge-users-for-submitting-content/
- https://toolset.com/course-lesson/charge-users-for-registering-premium-accounts/