Product review
To include a product review form on the product view, you should create an HTML form with its action attribute set to {{ global.current_url }}
Within this form you should have the following text fields:
customer_name
review
The user is allowed to submit a rating of values 1 - 5, usually displayed with a <select> list.
An example is shown below.
<form action="{{ global.current_url }}" method="post"> <input type="text" name="customer_name"> <textarea name="review"></textarea> <select name="rating"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> </select> <button type="submit">Place Review</button> </form>
The platform will not successfully allow the review form to post data unless the product reviews app is enabled.
Once the form is submitted, the current product page is refreshed.