Skip Navigation

[Resolved] Company reviews system

This support ticket is created 3 years, 10 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by jorgeB-3 3 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#2116169

Hi,

I'am trying to build an Amazon-like review system. So, I have two custom posts, Companies and Reviews with a many to many relationship.

Reviews have a radio custom field (1 to 5) in order to get the review value.

After a Company completes a service an email is sent to the customer to review the service quality. This email contains a link to the reviews page with some parameters. One of them is the companyid.

Then I need to create a form that shows the radio options and a hidden field for the companyid.

How can I create this form?

Thank you.

#2116647

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jorge,

Thank you for getting in touch.
Companies and Reviews with a many to many relationship.

Not sure why you would want the Companies and Reviews to be in a Many to Many relationship when a Review can only be tied to one company. Multiple companies wouldn't have the same review.

I would suggest building this as a One to Many.

For the forms I would suggest taking a look at our documentation below which covers how to setup the form and have the parent automatically selected.
https://toolset.com/course-lesson/selecting-parent-posts-when-using-forms-to-create-child-items/#creating-forms-when-a-parent-post-is-preselected

If there are any issues please let me know.
Thanks,
Shane

#2118575

My issue is resolved now. Thank you!