0

I have an EE 3.x site where I need to:

Allow a member to submit a "review" (form) related to an entry (product), and display that data on the front end.

Basically this is a custom "my reviews" area for members to be able to view their own/personal notes and ratings of products when they are logged in. Members can only see their own reviews.

I am using Cartthrob and Solspace User, as well as Freeform. But am not sure how to get them all to work together to accomplish this.

Here is a comp of the form the user will fill out on the left (where they have already selected the product), and then how it should display on the right:


enter image description here

My initial thought is to use Freeform, where the member can select a product (custom field that outputs channel entry values to select from), "rate" it (various custom value fields), and take notes (message field).

From there, how can I get that form data on the front-end (not referring to styling but just the data/values), where it is associated with the member who submitted it (by member id?), as well as display some of the product entry information (related entries? Needs title/photo/link)?

Or is there another way to do this that would work better?

  • Got it figured out! I can pass the member_id through an embed into the freeform author_id parameter - and that allows me to display only the submissions for the current user. I can also pass the product entry_id through the form field and use that to output the associated product data using another embed - e.g.: {embed="_embeds/_cart_product_image" entry_id="{entry_id}"} – ByteMyPixel Sep 11 '17 at 23:05
  • What about just using comments and then only show the logged in user’s comments? – Kokako Sep 26 '17 at 17:55
  • That might have worked, but native EE comments isn't flexible enough, I needed to have a bunch of custom fields and it doesn't support that. – ByteMyPixel Sep 27 '17 at 21:58

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.