I have created a customized popup, on list page for submitting review. Use of the popup,
- When user clicks on write review on list page, it generates a popup with form to submit the review.
- Here is my custom form for the popup, I want to add "rating box" in the form.
- I tried adding default rating table of "rwd"
review/form.phtml
but it's not working.
Suggest solution to add rating input:
<div class="p_content_list write_review">
<h2>Write A Review</h2>
<div class="close_box"><a href="#" class="p_close js__p_close" title="Close"></a></div>
<span class="border-bottom"></span>
<div class="col-main">
<form id="review-form" action="" method="post">
<?php echo $this->getBlockHtml('formkey'); ?>
<div class="fieldset wide">
<div class="wide">
<div class="left-form">
<label for="billing:street1">Title</label>
<div class="input-box">
<input type="text" name="title" title="Title" id="summary_field" class="input-text required-entry" value="" />
</div>
</div>
<div class="rate">
<p>Click To Rate</p>
**I WANT CODE FOR RATING ON THIS TAG**
</div>
</div>
<div class="wide">
<label for="billing:street1">Review</label>
<div class="input-box">
<textarea type="text" name="detail" id="review_field" class="input-text required-entry" value="" title="Review"></textarea>
</div>
</div>
<div class="buttons-set" id="billing-buttons-container">
<button type="submit" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Submit Review')) ?>" class="button color-border">Submit</button>
<button type="reset" title="Continue" class="button cancel">Cancel</button>
</div>
</div>
</form>
</div>
</div>