ā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();
šŗ WATCH THE VIDEO
COPY CODE BELOW šš½
PREVIOUS
NEXT

