“Learn as if you will live forever, live like you will die tomorrow.” — Mahatma Gandhi
Ever wanted to collect user information through a comment area but can't? Then this tutorial is for you.
I will briefly list the steps I followed to make this work from an already existing tutorial from WIX Examples.
Visited the WIX example and clicked on "Edit Now"
Navigated to the "Product Page" and copied all comment sections from the strip into my website's dynamic page as it is.
Enabled the "Dev Mode" on the example template and copied the code as it is.
Pasted the code from the example template into my website's dynamic page code section.
Opened the lightbox section (Review Box) from the example template and copied the box element to my website.
Opened the code panel section from the lightbox on the example template and copied the code to my lightbox code section.
Created two database collections with exactly the same fields and fieldkeys
review-states - To store number of ratings, recommendations
reviews - To store total number of reviews for each item
Connected all elements to dataset
Adjusted one line of code
FROM THIS
product = await $w('#productPage1').getProduct();
TO THIS
product = await $w('#dynamicDataset').getCurrentItem();
COPY CODE BELOW 👇🏽
Code
Leave a comment (1)
Thanks for leaving a comment🎉

kaan
Jun 4, 2023
wishlist and rating system
hello sir I try today 2 hours but not working if you want I pay money can you do this 2 ( wishlist and rating star) system please I send to you invaid
Reply
Admin

Waqas
Apr 16, 2023
Triggered Email Backend
Hi mate please can you send email by backend
Reply

Walter Odibi
Admin
Hi Waqas, there isn't a backend code for this tutorial. The emails will be sent from the client-side.

Ghan
Dec 29, 2022
Great Tutorial
Hi !
First of all, I want to thank you for your great tutorials, they helped us a lot with the coding.
But I still need your help, if you don't mind. I have based on Save Calculated Field using Wix Data Hooks Codes, to code my form . but the problem is I don't know why the code only reads the computation for "week2" computation and not the "weeks"
here is the code
I also did a separate column in the dataset where the chosen datas for both fields will be placed.
$w.onReady (() => {
$w("#Person").onChange(() => {
$w("#weeks").onChange(() => {
$w("#week2").onChange(() => {
let person = Number($w("#Person").value);
let weeks = Number($w("#weeks").value);
let week2 = Number($w("#week2").value);
$w("#totalLabel").show();
$w("#totalLabel").text = `"${String(weeks * Number(person))}페소"`; //DESIGN YOUR MESSAGE
$w("#totalLabel").text = `"${String(week2 * Number(person))}페소"`; //DESIGN YOUR MESSAGE
});
});
});
});
Reply

Walter Odibi
Admin
Hi there, thanks for your comment. I see why this is a problem. The onChange() function seems wrong in combination.
To combine onChangeFunctions use this method
$w("#Person, #weeks, #weeks2").onChange(() => {
//code here
});

Walter
Aug 8, 2022
More Details? Watch video
Hi, you can click here to watch the video https://www.youtube.com/watch?v=9bx7-nBeZ5c
Reply

Walter Odibi
Admin

Walter
Jul 11, 2022
For you
📺 WATCH THE VIDEO https://www.youtube.com/watch?v=AgPJEU8wpp0
Reply

Walter Odibi
Admin

Walter Odibi
Apr 18, 2022
Awesome Feature
This tutorial shows you how to display views on your Wix repeater.
📺WATCH VIDEO HERE https://www.youtube.com/watch?v=Iz7SdaCSdXg
Reply

Walter Odibi
Admin

Walter Odibi
Apr 18, 2022
Amazing tutorial
This amazing tutorial will show you how to a comment section to your WIX dynamic page.
📺WATCH VIDEO HERE https://www.youtube.com/watch?v=f8-vJQFNZ_c
Reply

Walter Odibi
Admin

Walter Odibi
Apr 10, 2022
Great Feature🎉
This amazing tutorial will show you how to add a visitor view counter to your WIX dynamic page.
🚩MORE TUTORIALS https://www.wixgenius.com/wix-tutorials
Reply

Walter Odibi
Admin